OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8" /> | 4 <meta charset="utf-8" /> |
5 <title>window.performance attribute exists in an object</title> | 5 <title>window.performance attribute exists in an object</title> |
6 <link rel="author" title="Google" href="http://www.google.com/" /> | 6 <link rel="author" title="Google" href="http://www.google.com/" /> |
7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-windo
w.performance-attribute"/> | 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-windo
w.performance-attribute"/> |
8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/common/performance-timeline-utils.js"></script> |
10 <script src="resources/webperftestharness.js"></script> | 11 <script src="resources/webperftestharness.js"></script> |
11 <script> | 12 <script> |
12 function onload_test() { | 13 function onload_test() { |
13 var objWindow = | 14 var objWindow = |
14 document.getElementById("objectContext").contentDocument.default
View; | 15 document.getElementById("objectContext").contentDocument.default
View; |
15 performanceNamespace = objWindow.performance; | 16 performanceNamespace = objWindow.performance; |
16 test_namespace('timing'); | 17 test_namespace('timing'); |
17 test_namespace('navigation', true); | 18 test_namespace('navigation', true); |
18 } | 19 } |
19 </script> | 20 </script> |
20 </head> | 21 </head> |
21 <body> | 22 <body> |
22 <h1>Description</h1> | 23 <h1>Description</h1> |
23 <p>This test validates that the window.performance object exists in an | 24 <p>This test validates that the window.performance object exists in an |
24 object element (but does not validate that their values are correct).</p
> | 25 object element (but does not validate that their values are correct).</p
> |
25 <object id="objectContext" onload="onload_test();" data="resources/blank
_page_green.html"></object> | 26 <object id="objectContext" onload="onload_test();" data="resources/blank
_page_green.html"></object> |
26 <div id="log"></div> | 27 <div id="log"></div> |
27 </body> | 28 </body> |
28 </html> | 29 </html> |
OLD | NEW |