[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.24
[framework/web/webkit-efl.git] / LayoutTests / fast / harness / page-cache-crash-on-data-urls.html
1 <html>
2 <script>
3 window.finish = function()
4 {
5     if (layoutTestController)
6         layoutTestController.notifyDone();
7 }
8
9 window.log = function(message) {
10      document.getElementById("result").innerHTML += message + "<br>";
11 }
12
13 window.failure = function(message) {
14     log("FAIL: " + message);
15     finish();
16 }
17
18 function test()
19 {
20     if (window.layoutTestController) {
21         layoutTestController.dumpAsText();
22         layoutTestController.waitUntilDone();
23         layoutTestController.setCanOpenWindows();
24         layoutTestController.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
25     }
26     log("open page with data urls");
27     window.open("resources/cached-page-with-data-urls.html");
28 }
29 </script>
30
31 <body onload="test()">
32 <p>This tests that going back in history with page cache enabled is
33 not going to crash/ASSERT when the previous page has data:// URLs.</p>
34 <div id="result"></div>
35 </body>
36 </html>