Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: LayoutTests/fast/loader/stateobjects/state-attribute-popstate-event.html

Issue 54473004: Make js-test-post a noop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add mac NeedsRebaselines Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head/> 5 </head/>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Check that PopStateEvent.state always has a correct value."); 8 description("Check that PopStateEvent.state always has a correct value.");
9 9
10 window.jsTestIsAsync = true; 10 window.jsTestIsAsync = true;
(...skipping 14 matching lines...) Expand all
25 window.onpopstate = function(e) { 25 window.onpopstate = function(e) {
26 popStateEvent = e; 26 popStateEvent = e;
27 shouldEvaluateTo("popStateEvent.state", 1); 27 shouldEvaluateTo("popStateEvent.state", 1);
28 shouldEvaluateTo("history.state", 1); 28 shouldEvaluateTo("history.state", 1);
29 29
30 debug("Push state 3"); 30 debug("Push state 3");
31 history.pushState(3, "", ""); 31 history.pushState(3, "", "");
32 shouldEvaluateTo("popStateEvent.state", 1); 32 shouldEvaluateTo("popStateEvent.state", 1);
33 shouldEvaluateTo("history.state", 3); 33 shouldEvaluateTo("history.state", 3);
34 34
35 var s = document.createElement("script");
36 s.src = "../../js/resources/js-test-post.js";
37 document.body.appendChild(s);
38 setTimeout(finishJSTest, 0); 35 setTimeout(finishJSTest, 0);
39 } 36 }
40 37
41 debug("Go back"); 38 debug("Go back");
42 history.back(); 39 history.back();
43 </script> 40 </script>
44 </body> 41 </body>
45 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698