| 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.now exists</title> | 5 <title>window.performance.now exists</title> |
| 6 <link rel="author" title="W3C" href="http://www.w3.org/" /> | 6 <link rel="author" title="W3C" href="http://www.w3.org/" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance
-interface"/> | 7 <link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance
-interface"/> |
| 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> | 10 <script> |
| 11 test(function() { | 11 test(function() { |
| 12 assert_equals(typeof window.performance, "object"); | 12 assert_equals(typeof window.performance, "object"); |
| 13 }, "window.performance is defined", {assert: "The window.performance attribute p
rovides a hosting area for performance related attributes."}); | 13 }, "window.performance is defined", {assert: "The window.performance attribute p
rovides a hosting area for performance related attributes."}); |
| 14 | 14 |
| 15 test(function() { | 15 test(function() { |
| 16 assert_not_equals(window.performance.now, undefined, 'window.performance.now i
s defined'); | 16 assert_not_equals(window.performance.now, undefined, 'window.performance.now i
s defined'); |
| 17 }, "High Resolution Time extension to the Performance interface", {assert: "wind
ow.performance.now exists"}); | 17 }, "High Resolution Time extension to the Performance interface", {assert: "wind
ow.performance.now exists"}); |
| 18 | 18 |
| 19 test(function() { | 19 test(function() { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 </script> | 38 </script> |
| 39 </head> | 39 </head> |
| 40 <body> | 40 <body> |
| 41 <h1>Description</h1> | 41 <h1>Description</h1> |
| 42 <p>This test validates that window.performance.now() exist and is a function.</p
> | 42 <p>This test validates that window.performance.now() exist and is a function.</p
> |
| 43 | 43 |
| 44 <div id="log"></div> | 44 <div id="log"></div> |
| 45 | 45 |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |