diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 7d58bee37471..e0bdd1861d55 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -401,7 +401,7 @@ describe('chromium feature', function () { webview = new WebView() webview.addEventListener('console-message', function (e) { webview.remove() - assert.equal(e.message, location.href) + assert.equal(e.message, webview.src) done() }) webview.setAttribute('allowpopups', 'on')