mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Update web-platform-tests to revision ea3cae9746c39e8192b91181044144c60d9388e8
This commit is contained in:
parent
9513544e91
commit
b3f94b4330
194 changed files with 22476 additions and 15435 deletions
|
@ -13,6 +13,7 @@
|
|||
<iframe name="baz"></iframe>
|
||||
<iframe name="baz"></iframe>
|
||||
<iframe name="constructor"></iframe>
|
||||
<iframe id="quux"></iframe>
|
||||
<script>
|
||||
function assert_data_propdesc(pd, Writable, Enumerable, Configurable) {
|
||||
assert_equals(typeof pd, "object");
|
||||
|
@ -25,6 +26,13 @@ test(function() {
|
|||
assert_equals(window["bar"],
|
||||
document.getElementsByTagName("iframe")[0].contentWindow);
|
||||
}, "Static name");
|
||||
|
||||
test(function() {
|
||||
assert_true("quux" in window, "quux not in window");
|
||||
assert_equals(window["quux"],
|
||||
document.getElementsByTagName("iframe")[4]);
|
||||
}, "Static id");
|
||||
|
||||
test(function() {
|
||||
assert_true("bar" in Window.prototype, "bar in Window.prototype");
|
||||
assert_false(Window.prototype.hasOwnProperty("bar"), "Window.prototype.hasOwnProperty(\"bar\")");
|
Loading…
Add table
Add a link
Reference in a new issue