From 129cdb768064ec0803f73da5d02aaad712ffe06f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 29 Apr 2015 17:31:56 +0800 Subject: [PATCH] spec,win: Fix page-favicon-updated event spec --- spec/webview-spec.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/webview-spec.coffee b/spec/webview-spec.coffee index ea50f632b31c..51058ad695e9 100644 --- a/spec/webview-spec.coffee +++ b/spec/webview-spec.coffee @@ -169,7 +169,12 @@ describe ' tag', -> it 'emits when favicon urls are received', (done) -> webview.addEventListener 'page-favicon-updated', (e) -> assert.equal e.favicons.length, 2 - assert.equal e.favicons[0], 'file:///favicon.png' + url = + if process.platform is 'win32' + 'file:///C:/favicon.png' + else + 'file:///favicon.png' + assert.equal e.favicons[0], url done() webview.src = "file://#{fixtures}/pages/a.html" document.body.appendChild webview