OLD | NEW |
1 | 1 |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <meta charset="UTF-8" /> | 5 <meta charset="UTF-8" /> |
6 <title>window.performance User Timing measure() method is working proper
ly</title> | 6 <title>window.performance User Timing measure() method is working proper
ly</title> |
7 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> | 7 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
8 <link rel="help" href="https://w3c.github.io/user-timing/#dom-performanc
e-measure"/> | 8 <link rel="help" href="https://w3c.github.io/user-timing/#dom-performanc
e-measure"/> |
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 | 13 |
13 <script> | 14 <script> |
14 // test data | 15 // test data |
15 var startMarkName = "mark_start"; | 16 var startMarkName = "mark_start"; |
16 var startMarkValue; | 17 var startMarkValue; |
17 var endMarkName = "mark_end"; | 18 var endMarkName = "mark_end"; |
18 var endMarkValue; | 19 var endMarkValue; |
19 var measures; | 20 var measures; |
20 var testThreshold = 20; | 21 var testThreshold = 20; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 <li>"measure_no_start_no_end": duplicate of the first measure, u
sed to confirm names can be re-used</li> | 321 <li>"measure_no_start_no_end": duplicate of the first measure, u
sed to confirm names can be re-used</li> |
321 </ul> | 322 </ul> |
322 After creating each measure, the existence of these measures is valid
ated by calling | 323 After creating each measure, the existence of these measures is valid
ated by calling |
323 performance.getEntriesByName() (both with and without the entryType p
arameter provided), | 324 performance.getEntriesByName() (both with and without the entryType p
arameter provided), |
324 performance.getEntriesByType(), and performance.getEntries() | 325 performance.getEntriesByType(), and performance.getEntries() |
325 </p> | 326 </p> |
326 | 327 |
327 <div id="log"></div> | 328 <div id="log"></div> |
328 </body> | 329 </body> |
329 </html> | 330 </html> |
OLD | NEW |