mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Case insensitive filepath
This commit is contained in:
@@ -524,7 +524,7 @@ describe('<webview> tag', function () {
|
||||
webview.addEventListener('page-favicon-updated', function (e) {
|
||||
assert.equal(e.favicons.length, 2)
|
||||
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 {
|
||||
assert.equal(e.favicons[0], 'file:///favicon.png')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user