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

Unified Diff: LayoutTests/http/tests/security/resources/localhost-accesssor.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/resources/localhost-accesssor.html
diff --git a/LayoutTests/http/tests/security/resources/localhost-accesssor.html b/LayoutTests/http/tests/security/resources/localhost-accesssor.html
index 9f49c372c6a76d7805b9685be17d2f3fb233b418..144f8208f0b5baefe2aab54039379dd3891da12b 100644
--- a/LayoutTests/http/tests/security/resources/localhost-accesssor.html
+++ b/LayoutTests/http/tests/security/resources/localhost-accesssor.html
@@ -4,18 +4,7 @@
<script>
function loaded()
{
- if (window.testRunner) {
- function waitForFlag() {
- if (!testRunner.globalFlag) {
- setTimeout(waitForFlag, 1);
- return;
- }
- performTest();
- }
- setTimeout(waitForFlag, 1);
- } else {
- log("Click the button when all the subframes have finished loading.");
- }
+ window.addEventListener('message', performTest);
}
function performTest()
@@ -33,7 +22,6 @@
</head>
<body onload="loaded();">
<p>Other inner iframe.</p>
- <button onclick="performTest();">Test</button>
<pre id='console'></pre>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698