Commit f5e0935a authored by Dmitry Gozman's avatar Dmitry Gozman Committed by Commit Bot

Unflake console-cross-origin-iframe-logging.js

It does timeout sometimes on Win.

Bug: 667560
Change-Id: I2047340ce939414ce19b1ddc61d4423d35e12e2d
Reviewed-on: https://chromium-review.googlesource.com/904771Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534809}
parent e20737d1
...@@ -2,5 +2,5 @@ Tests that cross origin errors are logged with source url and line number. ...@@ -2,5 +2,5 @@ Tests that cross origin errors are logged with source url and line number.
console-cross-origin…frame-logging.js:25 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://127.0.0.1:8000') does not match the recipient window's origin ('http://localhost:8000'). console-cross-origin…frame-logging.js:25 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://127.0.0.1:8000') does not match the recipient window's origin ('http://localhost:8000').
accessFrame @ console-cross-origin…frame-logging.js:25 accessFrame @ console-cross-origin…frame-logging.js:25
(anonymous) @ console-cross-origin…frame-logging.js:32 (anonymous) @ console-cross-origin…frame-logging.js:31
...@@ -26,16 +26,11 @@ ...@@ -26,16 +26,11 @@
} }
`); `);
var finishAttemptsLeft = 2; ConsoleTestRunner.addConsoleSniffer(finish);
ConsoleTestRunner.addConsoleSniffer(maybeFinish, true);
Common.settingForTest('monitoringXHREnabled').set(true); Common.settingForTest('monitoringXHREnabled').set(true);
TestRunner.evaluateInPage('accessFrame()', maybeFinish); TestRunner.evaluateInPage('accessFrame()');
function maybeFinish() {
--finishAttemptsLeft;
if (finishAttemptsLeft)
return;
function finish() {
Common.settingForTest('monitoringXHREnabled').set(false); Common.settingForTest('monitoringXHREnabled').set(false);
ConsoleTestRunner.dumpConsoleMessages(); ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest(); TestRunner.completeTest();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment