Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="/js-test-resources/js-test.js"></script> | |
| 3 <iframe id="frame" src="resources/frame-initial-url.html"></iframe> | |
| 4 <script> | |
| 5 description('Tests that iframe restored from history does not report resource ti ming.'); | |
| 6 window.jsTestIsAsync = true; | |
| 7 | |
| 8 function runTest() { | |
| 9 if (!sessionStorage.didNav) { | |
| 10 sessionStorage.didNav = true; | |
| 11 // Navigate a timeout to make sure we generate a history entry that we c an go back to. | |
| 12 setTimeout(function() { | |
| 13 location.href = 'data:text/html,<script>alert("Going back.");history .back();</' + 'script>'; | |
| 14 }, 0); | |
| 15 } else { | |
| 16 delete sessionStorage.didNav; | |
| 17 shouldBe("performance.getEntriesByName('http://127.0.0.1:8000/misc/resou rces/frame-final-url.html').length", '0'); | |
|
Mike West
2015/07/27 12:38:17
Can you verify that the correct entry is in the li
Kunihiko Sakamoto
2015/07/28 03:17:01
Done.
| |
| 18 if (window.testRunner) | |
| 19 finishJSTest(); | |
| 20 } | |
| 21 } | |
| 22 </script> | |
| OLD | NEW |