Case insensitive filepath

This commit is contained in:
Eric Brumer 2017-02-16 09:17:37 -08:00
parent d97585d06d
commit 7cb101b566

View file

@ -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')
}