| 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>
|
|
|