| OLD | NEW |
| 1 idlharness test | 1 This is a testharness.js-based test. |
| 2 | |
| 3 This test validates the WebIDL included in the Navigation Timing specification. | |
| 4 | |
| 5 interface PerformanceTiming { | |
| 6 readonly attribute unsigned long long navigationStart; | |
| 7 readonly attribute unsigned long long unloadEventStart; | |
| 8 readonly attribute unsigned long long unloadEventEnd; | |
| 9 readonly attribute unsigned long long redirectStart; | |
| 10 readonly attribute unsigned long long redirectEnd; | |
| 11 readonly attribute unsigned long long fetchStart; | |
| 12 readonly attribute unsigned long long domainLookupStart; | |
| 13 readonly attribute unsigned long long domainLookupEnd; | |
| 14 readonly attribute unsigned long long connectStart; | |
| 15 readonly attribute unsigned long long connectEnd; | |
| 16 readonly attribute unsigned long long secureConnectionStart; | |
| 17 readonly attribute unsigned long long requestStart; | |
| 18 readonly attribute unsigned long long responseStart; | |
| 19 readonly attribute unsigned long long responseEnd; | |
| 20 readonly attribute unsigned long long domLoading; | |
| 21 readonly attribute unsigned long long domInteractive; | |
| 22 readonly attribute unsigned long long domContentLoadedEventStart; | |
| 23 readonly attribute unsigned long long domContentLoadedEventEnd; | |
| 24 readonly attribute unsigned long long domComplete; | |
| 25 readonly attribute unsigned long long loadEventStart; | |
| 26 readonly attribute unsigned long long loadEventEnd; | |
| 27 }; | |
| 28 | |
| 29 interface PerformanceNavigation { | |
| 30 const unsigned short TYPE_NAVIGATE = 0; | |
| 31 const unsigned short TYPE_RELOAD = 1; | |
| 32 const unsigned short TYPE_BACK_FORWARD = 2; | |
| 33 const unsigned short TYPE_RESERVED = 255; | |
| 34 readonly attribute unsigned short type; | |
| 35 readonly attribute unsigned short redirectCount; | |
| 36 }; | |
| 37 | |
| 38 interface Performance { | |
| 39 readonly attribute PerformanceTiming timing; | |
| 40 readonly attribute PerformanceNavigation navigation; | |
| 41 }; | |
| 42 | |
| 43 partial interface Window { | |
| 44 [Replaceable] readonly attribute Performance performance; | |
| 45 }; | |
| 46 | |
| 47 FAIL Window interface: attribute performance assert_true: The prototype object m
ust have a property "performance" expected true got false | 2 FAIL Window interface: attribute performance assert_true: The prototype object m
ust have a property "performance" expected true got false |
| 48 PASS Window must be primary interface of window | 3 PASS Window must be primary interface of window |
| 49 FAIL Stringification of window assert_equals: class string of window expected "[
object Window]" but got "[object global]" | 4 FAIL Stringification of window assert_equals: class string of window expected "[
object Window]" but got "[object global]" |
| 50 FAIL Window interface: window must inherit property "performance" with the prope
r type (0) assert_inherits: property "performance" found on object expected in p
rototype chain | 5 FAIL Window interface: window must inherit property "performance" with the prope
r type (0) assert_inherits: property "performance" found on object expected in p
rototype chain |
| 51 PASS PerformanceTiming interface: existence and properties of interface object | 6 PASS PerformanceTiming interface: existence and properties of interface object |
| 52 PASS PerformanceTiming interface object length | 7 PASS PerformanceTiming interface object length |
| 53 FAIL PerformanceTiming interface: existence and properties of interface prototyp
e object assert_equals: class string of PerformanceTiming.prototype expected "[o
bject PerformanceTimingPrototype]" but got "[object Object]" | 8 FAIL PerformanceTiming interface: existence and properties of interface prototyp
e object assert_equals: class string of PerformanceTiming.prototype expected "[o
bject PerformanceTimingPrototype]" but got "[object Object]" |
| 54 PASS PerformanceTiming interface: existence and properties of interface prototyp
e object's "constructor" property | 9 PASS PerformanceTiming interface: existence and properties of interface prototyp
e object's "constructor" property |
| 55 PASS PerformanceTiming interface: attribute navigationStart | 10 PASS PerformanceTiming interface: attribute navigationStart |
| 56 PASS PerformanceTiming interface: attribute unloadEventStart | 11 PASS PerformanceTiming interface: attribute unloadEventStart |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 FAIL Performance interface: existence and properties of interface object assert_
equals: prototype of self's property "Performance" is not Function.prototype exp
ected function "function () {}" but got function "function EventTarget() { [nati
ve code] }" | 76 FAIL Performance interface: existence and properties of interface object assert_
equals: prototype of self's property "Performance" is not Function.prototype exp
ected function "function () {}" but got function "function EventTarget() { [nati
ve code] }" |
| 122 PASS Performance interface object length | 77 PASS Performance interface object length |
| 123 FAIL Performance interface: existence and properties of interface prototype obje
ct assert_equals: prototype of Performance.prototype is not Object.prototype exp
ected object "[object Object]" but got object "[object Object]" | 78 FAIL Performance interface: existence and properties of interface prototype obje
ct assert_equals: prototype of Performance.prototype is not Object.prototype exp
ected object "[object Object]" but got object "[object Object]" |
| 124 PASS Performance interface: existence and properties of interface prototype obje
ct's "constructor" property | 79 PASS Performance interface: existence and properties of interface prototype obje
ct's "constructor" property |
| 125 PASS Performance interface: attribute timing | 80 PASS Performance interface: attribute timing |
| 126 PASS Performance interface: attribute navigation | 81 PASS Performance interface: attribute navigation |
| 127 PASS Performance must be primary interface of window.performance | 82 PASS Performance must be primary interface of window.performance |
| 128 PASS Stringification of window.performance | 83 PASS Stringification of window.performance |
| 129 PASS Performance interface: window.performance must inherit property "timing" wi
th the proper type (0) | 84 PASS Performance interface: window.performance must inherit property "timing" wi
th the proper type (0) |
| 130 PASS Performance interface: window.performance must inherit property "navigation
" with the proper type (1) | 85 PASS Performance interface: window.performance must inherit property "navigation
" with the proper type (1) |
| 86 Harness: the test ran to completion. |
| 131 | 87 |
| OLD | NEW |