Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html

Issue 494343003: Eliminate globalFlag usage from http security layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistify Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html
diff --git a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html
index daf89a5a8afba5a5653b2ff6d0d58402188b46e4..84259d029f661976a62cc491fb772683f79319f7 100644
--- a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html
+++ b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html
@@ -5,20 +5,7 @@
window.onload = function()
{
document.getElementsByTagName('h4')[0].innerHTML = document.domain;
- if (window.testRunner) {
- setTimeout(pollForTest, 1);
- } else {
- log("Click the link to run the test.");
- }
- }
-
- pollForTest = function()
- {
- if (!testRunner.globalFlag) {
- setTimeout(pollForTest, 1);
- return;
- }
- runTest();
+ window.addEventListener('message', runTest);
}
runTest = function()

Powered by Google App Engine
This is Rietveld 408576698