| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8" /> | 4 <meta charset="utf-8" /> |
| 5 <title>window.navigation.type for back and forward navigations</title> | 5 <title>window.navigation.type for back and forward navigations</title> |
| 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> | 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navig
ation-info-interface"/> | 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navig
ation-info-interface"/> |
| 8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/common/performance-timeline-utils.js"></script> |
| 10 <script src="resources/webperftestharness.js"></script> | 11 <script src="resources/webperftestharness.js"></script> |
| 11 <script> | 12 <script> |
| 12 setup({explicit_done: true}); | 13 setup({explicit_done: true}); |
| 13 | 14 |
| 14 // explicitly test the namespace before we start testing | 15 // explicitly test the namespace before we start testing |
| 15 test_namespace('navigation'); | 16 test_namespace('navigation'); |
| 16 | 17 |
| 17 function onload_test() | 18 function onload_test() |
| 18 { | 19 { |
| 19 if (performanceNamespace === undefined) | 20 if (performanceNamespace === undefined) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 <p>Along the navigation timeline the frame.window.performance.type is ch
ecked for TYPE_BACK_FORWARD.</p> | 87 <p>Along the navigation timeline the frame.window.performance.type is ch
ecked for TYPE_BACK_FORWARD.</p> |
| 87 | 88 |
| 88 <p>This test passes if all of the checks to the navigation.type are corr
ect throughout the navigation | 89 <p>This test passes if all of the checks to the navigation.type are corr
ect throughout the navigation |
| 89 scenario and the frame below ends with a green background. Otherwis
e, this test fails.</p> | 90 scenario and the frame below ends with a green background. Otherwis
e, this test fails.</p> |
| 90 | 91 |
| 91 <div id="log"></div> | 92 <div id="log"></div> |
| 92 <br /> | 93 <br /> |
| 93 <iframe id="frameContext" onload="onload_test();" src="resources/blank_p
age_yellow_with_onunload.html" style="width: 250px; height: 250px;"></iframe> | 94 <iframe id="frameContext" onload="onload_test();" src="resources/blank_p
age_yellow_with_onunload.html" style="width: 250px; height: 250px;"></iframe> |
| 94 </body> | 95 </body> |
| 95 </html> | 96 </html> |
| OLD | NEW |