Case insensitive filepath
This commit is contained in:
parent
d97585d06d
commit
7cb101b566
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ describe('<webview> tag', function () {
|
||||||
webview.addEventListener('page-favicon-updated', function (e) {
|
webview.addEventListener('page-favicon-updated', function (e) {
|
||||||
assert.equal(e.favicons.length, 2)
|
assert.equal(e.favicons.length, 2)
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
assert(/^file:\/\/\/[a-zA-Z]:\/favicon.png$/.test(e.favicons[0]))
|
assert(/^file:\/\/\/[a-zA-Z]:\/favicon.png$/i.test(e.favicons[0]))
|
||||||
} else {
|
} else {
|
||||||
assert.equal(e.favicons[0], 'file:///favicon.png')
|
assert.equal(e.favicons[0], 'file:///favicon.png')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue