Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / pageshow-pagehide-on-back-uncached.html
blob48ec392824fa4593cdb140bcc58d31a4b645bec9
1 <p>Test pageshow/pagehide event behavior when navigating back to an uncached page.</p>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 window.onload = function(evt) {
9 alert("window.onload");
10 if (window.name == 'pageshow/pagehide') {
11 // Returned back.
12 window.name = "";
13 window.onpagehide = null;
14 setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 10);
15 } else {
16 window.name = "pageshow/pagehide";
17 setTimeout('window.location = "data:text/html,<script>history.back();</scr" + "ipt>"', 0);
21 window.onunload = function() {} // prevent caching
23 window.onpageshow = function(evt) {
24 alert("window.onpageshow" + ", target = " + evt.target + ", persisted = " + evt.persisted);
27 window.onpagehide = function(evt) {
28 alert("window.onpagehide" + ", target = " + evt.target + ", persisted = " + evt.persisted);
31 </script>