Add specs for resolving attribute URLs
This commit is contained in:
parent
1dbaf4987e
commit
bfd48fe2ad
1 changed files with 10 additions and 0 deletions
|
@ -76,6 +76,11 @@ describe('<webview> tag', function () {
|
|||
document.body.appendChild(webview)
|
||||
})
|
||||
|
||||
it('resolves relative URLs', function () {
|
||||
webview.preload = '../fixtures/test.js'
|
||||
assert.equal(webview.preload, 'file://' + fixtures + '/test.js')
|
||||
})
|
||||
|
||||
it('ignores empty values', function () {
|
||||
assert.equal(webview.src, '')
|
||||
webview.src = ''
|
||||
|
@ -209,6 +214,11 @@ describe('<webview> tag', function () {
|
|||
document.body.appendChild(webview)
|
||||
})
|
||||
|
||||
it('resolves relative URLs', function () {
|
||||
webview.src = '../fixtures/test.html'
|
||||
assert.equal(webview.src, 'file://' + fixtures + '/test.html')
|
||||
})
|
||||
|
||||
it('ignores empty values', function () {
|
||||
assert.equal(webview.preload, '')
|
||||
webview.preload = ''
|
||||
|
|
Loading…
Reference in a new issue