Add specs for resolving attribute URLs

This commit is contained in:
Kevin Sawicki 2016-09-08 16:56:29 -07:00
parent 1dbaf4987e
commit bfd48fe2ad

View file

@ -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 = ''