Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassSetting the prototype of a window to itself via setPrototypeOf
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     Object.setPrototypeOf(window, window);   }", "Setting the prototype should throw")
    at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:9:3)
PassSetting the prototype of a window to itself via __proto__
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     window.__proto__ = window;   }", "Setting the prototype should throw")
    at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:15:3)
PassSetting the prototype of a window to something that has the window on its proto chain via setPrototypeOf
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     Object.setPrototypeOf(window, Object.create(window));   }", "Setting the prototype should throw")
    at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:21:3)
PassSetting the prototype of a window to something that has the window on its proto chain via __proto__
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     window.__proto__ = Object.create(window);   }", "Setting the prototype should throw")
    at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:28:3)