Smaller regex now that it's case insensitive
This commit is contained in:
parent
7cb101b566
commit
87e606627c
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$/i.test(e.favicons[0]))
|
assert(/^file:\/\/\/[A-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…
Reference in a new issue