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 </head> |
| 11 <body> |
| 12 <h1>Description</h1> |
| 13 <p>This test validates there does not exist a navigation timing instance
when opening a data uri. This data uri is equivalent to nav2_data_uri.html.</p> |
| 14 |
| 15 <script> |
| 16 async_test(function(t) { |
| 17 var gotEvent = false; |
| 18 window.addEventListener("message", t.step_func(function() { |
| 19 assert_unreached("A navigation timing instance existed"); |
| 20 })); |
| 21 window.addEventListener("load", t.step_func(function() { |
| 22 t.step_timeout(function() { t.done(); }, 2000); |
| 23 })); |
| 24 }, "Navigation timing instance existence"); |
| 25 </script> |
| 26 |
| 27 <iframe src="data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%
3Ctitle%3Edata%20URL%20source%20for%20navigation-timing%2Fnav2_test_open_data_ur
i.html%3C%2Ftitle%3E%0D%0A%3C%21--%20NB%3A%20this%20file%20isn%27t%20actually%20
used%20any%20where%21%20--%3E%0D%0A%3Clink%20rel%3D%22author%22%20title%3D%22Goo
gle%22%20href%3D%22http%3A%2F%2Fwww.google.com%2F%22%20%2F%3E%0D%0A%3Cscript%3E%
0D%0Avar%20observer%20%3D%20new%20PerformanceObserver%28%0D%0A%20%20%20%20functi
on%20%28entryList%29%20%7B%0D%0A%20%20%20%20%20%20%20%20parent.postMessage%28%22
observed%22%2C%20%22%2A%22%29%3B%0D%0A%20%20%20%20%20%20%20%20observer.disconnec
t%28%29%3B%0D%0A%20%20%20%20%7D%29%3B%0D%0Aobserver.observe%28%7BentryTypes%3A%2
0%5B%22navigation%22%5D%7D%29%3B%0D%0A%3C%2Fscript%3E%0D%0A"></iframe> |
| 28 <!-- NB: see nav2_data_uri.html for the source of that data URI --> |
| 29 </body> |
| 30 </html> |
OLD | NEW |