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 | |
11 <script> | |
12 | |
13 function onload_test() | |
14 { | |
15 var iframe_performance = document.getElementById("frameContext")
.contentWindow.performance; | |
16 assert_equals(iframe_performance.getEntriesByType("navigation").
length, 0, "Expected there is no navigation timing instance"); | |
17 done(); | |
18 } | |
19 </script> | |
20 | |
21 </head> | |
22 <body> | |
23 <h1>Description</h1> | |
24 <p>This test validates there does not exist a navigation timing instance
when opening internal pages like about:blank.</p> | |
25 | |
26 <iframe id="frameContext" onload="onload_test();" src="about:blank" styl
e="width: 250px; height: 250px;"></iframe> | |
27 </body> | |
28 </html> | |
OLD | NEW |