Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / misc / willCacheResponse-delegate-callback.html
1 <html>
2 <script>
3     if (window.testRunner) {
4         testRunner.dumpAsText();
5         testRunner.waitUntilDone();
6     }
7
8     function runTest() {
9         testRunner.dumpResourceLoadCallbacks();
10         testRunner.dumpWillCacheResponse();
11
12         var f = document.createElement('iframe');
13         f.src = "resources/willCacheResponse-success.html";
14         f.onload = function() { if (window.testRunner) testRunner.notifyDone(); }
15         document.body.appendChild(f);    
16     }
17 </script>
18 <body onLoad="setTimeout(runTest, 10);">
19 This tests for the willCacheResponse resource delegate callback as added for radar 5008925.<br>
20 The test is only meaningful if you are running it under DumpRenderTree<br>
21 </body>
22 </html>