OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8" /> |
| 5 <title>Each window object has a unique performance object</title> |
| 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-windo
w.performance-attribute" /> |
| 8 <meta name="assert" content="Each browsing context must have a unique wi
ndow.performance.timing attribute."/> |
| 9 <script src="/resources/testharness.js"></script> |
| 10 <script src="/resources/testharnessreport.js"></script> |
| 11 <script src="resources/webperftestharness.js"></script> |
| 12 </head> |
| 13 <body> |
| 14 <h1>Description</h1> |
| 15 <p>This test validates that each window has a unique window.performance
object.</p> |
| 16 <iframe id="frameContext" src="resources/blank_page_green.html" style="d
isplay:none;";></iframe> |
| 17 <div id="log"></div> |
| 18 <script> |
| 19 test_namespace('timing'); |
| 20 |
| 21 if (performanceNamespace !== undefined) |
| 22 { |
| 23 test_not_equals(performanceNamespace.timing, |
| 24 document.getElementById("frameContext").contentW
indow.performance.timing, |
| 25 "Different window objects have unique performanc
e objects"); |
| 26 } |
| 27 </script> |
| 28 </body> |
| 29 </html> |
OLD | NEW |