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 async_test(function (t) { |
| 12 var observer = new PerformanceObserver( |
| 13 t.step_func(function (entryList) { |
| 14 assert_equals(entryList.getEntries()[0].type, "navigate"
, "Expected navigation type to be navigate."); |
| 15 observer.disconnect(); |
| 16 t.done(); |
| 17 }) |
| 18 ); |
| 19 observer.observe({entryTypes: ["navigation"]}); |
| 20 |
| 21 }, "Navigation type to be navigate."); |
| 22 </script> |
| 23 |
| 24 </head> |
| 25 <body> |
| 26 <h1> |
| 27 Description</h1> |
| 28 <p> |
| 29 This test validates the value of window.performance.getEntriesByType
("navigation")[0].type to be navigate.</p> |
| 30 |
| 31 </body> |
| 32 </html> |
OLD | NEW |