OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>Navigation Timing 2 IDL tests</title> |
| 6 <link rel="author" title="Google" href="http://www.google.com/" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/navigation-timing-2/#sec-Performance
NavigationTiming"/> |
| 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="/resources/WebIDLParser.js"></script> |
| 11 <script src="/resources/idlharness.js"></script> |
| 12 </head> |
| 13 <body> |
| 14 |
| 15 <pre id='untested_idl' style='display:none'> |
| 16 |
| 17 interface PerformanceResourceTiming : PerformanceEntry { |
| 18 readonly attribute DOMString initiatorType; |
| 19 readonly attribute DOMHighResTimeStamp workerStart; |
| 20 readonly attribute DOMHighResTimeStamp redirectStart; |
| 21 readonly attribute DOMHighResTimeStamp redirectEnd; |
| 22 readonly attribute DOMHighResTimeStamp fetchStart; |
| 23 readonly attribute DOMHighResTimeStamp domainLookupStart; |
| 24 readonly attribute DOMHighResTimeStamp domainLookupEnd; |
| 25 readonly attribute DOMHighResTimeStamp connectStart; |
| 26 readonly attribute DOMHighResTimeStamp connectEnd; |
| 27 readonly attribute DOMHighResTimeStamp secureConnectionStart; |
| 28 readonly attribute DOMHighResTimeStamp requestStart; |
| 29 readonly attribute DOMHighResTimeStamp responseStart; |
| 30 readonly attribute DOMHighResTimeStamp responseEnd; |
| 31 [MeasureAs=PerformanceResourceTimingSizes] readonly attribute unsigned long
long transferSize; |
| 32 [MeasureAs=PerformanceResourceTimingSizes] readonly attribute unsigned long
long encodedBodySize; |
| 33 [MeasureAs=PerformanceResourceTimingSizes] readonly attribute unsigned long
long decodedBodySize; |
| 34 }; |
| 35 </pre> |
| 36 |
| 37 <pre id='idl'> |
| 38 enum NavigationType { |
| 39 "navigate", |
| 40 "reload", |
| 41 "back_forward", |
| 42 "prerender" |
| 43 }; |
| 44 |
| 45 interface PerformanceNavigationTiming : PerformanceResourceTiming { |
| 46 readonly attribute DOMHighResTimeStamp unloadEventStart; |
| 47 readonly attribute DOMHighResTimeStamp unloadEventEnd; |
| 48 readonly attribute DOMHighResTimeStamp domInteractive; |
| 49 readonly attribute DOMHighResTimeStamp domContentLoadedEventStart; |
| 50 readonly attribute DOMHighResTimeStamp domContentLoadedEventEnd; |
| 51 readonly attribute DOMHighResTimeStamp domComplete; |
| 52 readonly attribute DOMHighResTimeStamp loadEventStart; |
| 53 readonly attribute DOMHighResTimeStamp loadEventEnd; |
| 54 readonly attribute NavigationType type; |
| 55 readonly attribute unsigned short redirectCount; |
| 56 }; |
| 57 </pre> |
| 58 |
| 59 <script> |
| 60 function test_idl() { |
| 61 var idl_array = new IdlArray(); |
| 62 |
| 63 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten
t); |
| 64 idl_array.add_idls(document.getElementById("idl").textContent); |
| 65 |
| 66 idl_array.test(); |
| 67 } |
| 68 test_idl(); |
| 69 </script> |
| 70 </body> |
| 71 </html> |
OLD | NEW |