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

Unified Diff: LayoutTests/http/tests/security/cross-origin-appcache-allowed.html

Issue 704413010: Deflake LayoutTests/http/tests/security/cross-origin-appcache-allowed.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/cross-origin-appcache-allowed.html
diff --git a/LayoutTests/http/tests/security/cross-origin-appcache-allowed.html b/LayoutTests/http/tests/security/cross-origin-appcache-allowed.html
index 65a63fe938ad9f940bbbdea8ca59fdd3a7514812..54b9318340b93d0d7fc2df8381e655876c8a0720 100644
--- a/LayoutTests/http/tests/security/cross-origin-appcache-allowed.html
+++ b/LayoutTests/http/tests/security/cross-origin-appcache-allowed.html
@@ -2,22 +2,27 @@
<head>
<script>
var frames = 2;
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpChildFramesAsText();
- testRunner.waitUntilDone();
-}
-window.onmessage = function(message) {
- --frames;
- if (frames <= 0 && window.testRunner)
- testRunner.notifyDone();
+function runTest()
+{
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.waitUntilDone();
+ }
+ window.onmessage = function(message) {
+ --frames;
+ if (frames <= 0 && window.testRunner)
+ testRunner.notifyDone();
+ }
+ document.getElementById('frame1').src = "http://localhost:8000/security/resources/cross-origin-iframe-for-appcache-allowed.html";
+ document.getElementById('frame2').src = "http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-appcache-allowed.html";
}
</script>
</head>
-<body>
+<body onload="runTest()">
<p>This iframe should have a cache:</p>
-<iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-appcache-allowed.html"></iframe>
+<iframe id="frame1"></iframe>
<p>This iframe should have a cache:</p>
-<iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-appcache-allowed.html"></iframe>
+<iframe id="frame2"></iframe>
</body>
</html>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698