mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 7ec633bbfbc01de4972e65f81f593983d9cdc17d
This commit is contained in:
parent
24674687ac
commit
36e52003a7
107 changed files with 1452 additions and 646 deletions
|
@ -6,26 +6,26 @@
|
|||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
Object.setPrototypeOf(window, window);
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to itself via setPrototypeOf");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
window.__proto__ = window;
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to itself via __proto__");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
Object.setPrototypeOf(window, Object.create(window));
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to something that has the window on " +
|
||||
"its proto chain via setPrototypeOf");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
window.__proto__ = Object.create(window);
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to something that has the window on " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue