OLD | NEW |
---|---|
(Empty) | |
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-navig ation-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("nav igation")[0]; | |
14 document.getElementById("frameContext").remove(); | |
15 assert_equals(pnt.type, "navigate"); | |
Nate Chapin
2017/03/27 23:52:20
By the way, is this behavior actually in the spec?
panicker
2017/03/28 00:21:27
This seems like the right default based on descrip
| |
16 }); | |
17 } | |
18 </script> | |
19 </head> | |
20 <body> | |
21 <h1> | |
22 Description</h1> | |
23 <p> | |
24 This test validates that PerformanceNavigationTiming::type()'s defua lt value is navigate </p> | |
25 <iframe id="frameContext" onload="onload_test();" src="resources/blank_p age_yellow_with_onunload.html" style="width: 250px; height: 250px;"></iframe> | |
26 </body> | |
27 </html> | |
OLD | NEW |