Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / plugin-document-back-forward.html
blob615794561b14460bb31a6a0f4009d01deab0a9c6
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.waitUntilDone();
5 testRunner.dumpAsText();
8 state = "initial";
10 function next() {
11 switch (state) {
12 case "initial":
13 state = "loading-plugin";
14 var frame = document.getElementsByTagName("iframe")[0]
15 frame.addEventListener("load", next, false);
16 frame.src = "data:application/x-webkit-test-netscape,alertwhenloaded";
17 break;
18 case "loading-plugin":
19 state = "moving-backward";
20 history.back();
21 break;
22 case "moving-backward":
23 state = "moving-forward";
24 history.forward();
25 break;
26 case "moving-forward":
27 state = "done";
28 testRunner.notifyDone();
29 break;
30 default:
31 alert('FAIL');
32 break;
36 window.onload = function() {
37 // We need to wait for after the load event so that we get a new history
38 // entry when navigating the frame.
39 setTimeout(next, 0);
41 </script>
42 <iframe src="data:text/html,Waiting..."></iframe>
43 </html>