| Jeff Carpenter | 9aa2361 | 2017-04-06 18:51:04 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <title>Navigation Timing 2 WPT</title> |
| 6 | <link rel="author" title="Google" href="http://www.google.com/" /> |
| 7 | <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/> |
| 8 | <script src="/resources/testharness.js"></script> |
| 9 | <script src="/resources/testharnessreport.js"></script> |
| 10 | <script> |
| 11 | function onload_test() |
| 12 | { test(function() { |
| 13 | var pnt = window.frames[0].performance.getEntriesByType("navigation")[0]; |
| 14 | document.getElementById("frameContext").remove(); |
| 15 | assert_equals(pnt.type, "navigate"); |
| 16 | }); |
| 17 | } |
| 18 | </script> |
| 19 | </head> |
| 20 | <body> |
| 21 | <h1> |
| 22 | Description</h1> |
| 23 | <p> |
| 24 | This test validates that PerformanceNavigationTiming::type()'s default value is navigate </p> |
| 25 | <iframe id="frameContext" onload="onload_test();" src="resources/blank_page_yellow_with_onunload.html" style="width: 250px; height: 250px;"></iframe> |
| 26 | </body> |
| 27 | </html> |