Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_unique_performance_objects.html

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>Each window object has a unique performance object</title> 5 <title>Each window object has a unique performance object</title>
6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 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" /> 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."/> 8 <meta name="assert" content="Each browsing context must have a unique wi ndow.performance.timing attribute."/>
9 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharness.js"></script>
10 <script src="/resources/testharnessreport.js"></script> 10 <script src="/resources/testharnessreport.js"></script>
11 <script src="/common/performance-timeline-utils.js"></script>
11 <script src="resources/webperftestharness.js"></script> 12 <script src="resources/webperftestharness.js"></script>
12 </head> 13 </head>
13 <body> 14 <body>
14 <h1>Description</h1> 15 <h1>Description</h1>
15 <p>This test validates that each window has a unique window.performance object.</p> 16 <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 <iframe id="frameContext" src="resources/blank_page_green.html" style="d isplay:none;";></iframe>
17 <div id="log"></div> 18 <div id="log"></div>
18 <script> 19 <script>
19 test_namespace('timing'); 20 test_namespace('timing');
20 21
21 if (performanceNamespace !== undefined) 22 if (performanceNamespace !== undefined)
22 { 23 {
23 test_not_equals(performanceNamespace.timing, 24 test_not_equals(performanceNamespace.timing,
24 document.getElementById("frameContext").contentW indow.performance.timing, 25 document.getElementById("frameContext").contentW indow.performance.timing,
25 "Different window objects have unique performanc e objects"); 26 "Different window objects have unique performanc e objects");
26 } 27 }
27 </script> 28 </script>
28 </body> 29 </body>
29 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698