Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
Pass[[SetPrototypeOf]] and [[GetPrototypeOf]]
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { Object.setPrototypeOf(wp, {}); }")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:26:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { wp.__proto__ = null; }")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:27:5)
Pass
assert_false(false)
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:28:5)
Pass
assert_equals(object "[object EventTarget]", object "[object EventTarget]")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:30:5)
Pass[[PreventExtensions]] and [[IsExtensible]]
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { Object.preventExtensions(wp); }")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:36:5)
Pass
assert_false(false)
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:37:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:39:5)
Pass[[GetOwnProperty]]
Asserts run
Pass
assert_equals("object", "object", "supported non-index property name typeof desc")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:262:5)
Pass
assert_equals(Element node <div id="a"></div>, Element node <div id="a"></div>, "supported non-index property name [[Value]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:263:5)
Pass
assert_true(true, "supported non-index property name [[Writable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:264:5)
Pass
assert_false(false, "supported non-index property name [[Enumerable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:265:5)
Pass
assert_true(true, "supported non-index property name [[Configurable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:266:5)
Pass
assert_equals("object", "object", "supported indexed property name typeof desc")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:262:5)
Pass
assert_equals(object "[object Window]", object "[object Window]", "supported indexed property name [[Value]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:263:5)
Pass
assert_true(true, "supported indexed property name [[Writable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:264:5)
Pass
assert_false(false, "supported indexed property name [[Enumerable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:265:5)
Pass
assert_true(true, "supported indexed property name [[Configurable]]")
    at assert_prop_desc ( /webidl/ecmascript-binding/window-named-properties-object.html:266:5)
Pass
assert_equals(undefined, undefined, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:50:5)
Pass
assert_equals(undefined, undefined, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:51:5)
Pass[[GetOwnProperty]] (named property visibility algorithm)
Asserts run
Pass
assert_equals(undefined, undefined, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:66:5)
Pass
assert_equals(undefined, undefined, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:67:5)
Pass
assert_equals(undefined, undefined, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:68:5)
Pass
assert_equals(undefined, undefined, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:69:5)
Fail[[DefineOwnProperty]]assert_false: supported non-index property name expected false got true
    at assert_define_own_property_fails (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:271:5)
    at Test.<anonymous> (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:78:5)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:72:1
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { Object.defineProperty(object, key, desc); }", "supported non-index property name")
    at assert_define_own_property_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:270:5)
Fail
assert_false(true, "supported non-index property name")
    at assert_define_own_property_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:271:5)
Pass[[HasProperty]]
Asserts run
Pass
assert_true(true, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:92:5)
Pass
assert_true(true, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:93:5)
Pass
assert_true(true, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:94:5)
Pass
assert_true(true, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:95:5)
Pass
assert_false(false, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:97:5)
Pass
assert_false(false, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:98:5)
Pass[[Get]]
Asserts run
Pass
assert_equals(Element node <form name="a"></form>, Element node <form name="a"></form>, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:106:5)
Pass
assert_equals(object "[object Window]", object "[object Window]", "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:107:5)
Pass
assert_equals("WindowProperties", "WindowProperties", "existing symbol property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:108:5)
Pass
assert_equals(undefined, undefined, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:110:5)
Pass
assert_equals(undefined, undefined, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:111:5)
Pass
assert_equals(undefined, undefined, "non-existing symbol property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:112:5)
Fail[[Get]] (named property visibility algorithm)assert_equals: supported indexed property name expected (number) 20 but got (object) Element node <div id="0"></div>
    at Test.<anonymous> (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:130:5)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:115:1
Asserts run
Pass
assert_equals(function "function isPrototypeOf() { [native code] }", function "function isPrototypeOf() { [native code] }", "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:127:5)
Pass
assert_equals(function "function dispatchEvent() { [native code] }", function "function dispatchEvent() { [native code] }", "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:128:5)
Pass
assert_equals(10, 10, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:129:5)
Fail
assert_equals(Element node <div id="0"></div>, 20, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:130:5)
Fail[[Set]] (direct)assert_false: expected false got true
    at assert_set_fails (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:277:5)
    at Test.<anonymous> (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:138:5)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:133:1
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { object[key] = value; }", undefined)
    at assert_set_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:276:5)
Fail
assert_false(true, undefined)
    at assert_set_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:277:5)
Pass[[Set]] (prototype chain)
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { receiver.b = {}; }", "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:163:5)
Pass
assert_equals(10, 10, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:167:5)
Pass
assert_equals(20, 20, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:168:5)
Pass
assert_false(false, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:169:5)
Pass
assert_false(false, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:170:5)
Pass
assert_equals(object "[object WindowProperties]", object "[object WindowProperties]", "setter |this| value is receiver")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:171:5)
Pass[[Set]] (Reflect.set)
Asserts run
Pass
assert_true(true, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:185:5)
Pass
assert_true(true, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:186:5)
Pass
assert_true(true, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:187:5)
Pass
assert_false(false, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:188:5)
Pass
assert_equals(10, 10, "supported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:190:5)
Pass
assert_equals(20, 20, "supported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:191:5)
Pass
assert_false(false, "unsupported non-index property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:192:5)
Pass
assert_equals(object "[object Object]", object "[object Object]", "setter |this| value is receiver")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:193:5)
Pass
assert_false(false, "unsupported indexed property name")
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:194:5)
Fail[[Delete]]assert_throws_js: existing symbol property name function "() => { delete object[key]; }" did not throw
    at assert_delete_fails (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:281:5)
    at Test.<anonymous> (https://www1.wpt.live/webidl/ecmascript-binding/window-named-properties-object.html:206:5)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { delete object[key]; }", "supported non-index property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:281:5)
Pass
assert_false(false, "supported non-index property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:282:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { delete object[key]; }", "supported indexed property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:281:5)
Pass
assert_false(false, "supported indexed property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:282:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { delete object[key]; }", "unsupported non-index property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:281:5)
Pass
assert_false(false, "unsupported non-index property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:282:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { delete object[key]; }", "unsupported indexed property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:281:5)
Pass
assert_false(false, "unsupported indexed property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:282:5)
Fail
assert_throws_js(function "function TypeError() { [native code] }", function "() => { delete object[key]; }", "existing symbol property name")
    at assert_delete_fails ( /webidl/ecmascript-binding/window-named-properties-object.html:281:5)
Pass[[OwnPropertyKeys]]
Asserts run
Pass
assert_array_equals(["addEventListener", "dispatchEvent", "removeEventListener"], ["addEventListener", "dispatchEvent", "removeEventListener"])
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:225:5)
Pass
assert_array_equals([], [])
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:226:5)
Pass
assert_array_equals([symbol "Symbol(Symbol.toStringTag)"], [symbol "Symbol(Symbol.toStringTag)"])
    at Test.<anonymous> ( /webidl/ecmascript-binding/window-named-properties-object.html:227:5)