Update web-platform-tests to revision ea3cae9746c39e8192b91181044144c60d9388e8

This commit is contained in:
WPT Sync Bot 2019-03-12 21:33:06 -04:00
parent 9513544e91
commit b3f94b4330
194 changed files with 22476 additions and 15435 deletions

View file

@ -13,18 +13,7 @@
var t = async_test("The document for a standalone media file should have one child in the body.");
var imgwin = window.open('/images/blue.png');
// imgwin.onload doesn't work, check popup's URL to see if the loading of
// the image and creation of image document is finished.
function checkURL() {
if (imgwin.location.href.indexOf('blue.png') == -1) {
step_timeout(checkURL, 100);
return;
}
t.step(frameLoaded);
}
checkURL();
function frameLoaded() {
imgwin.onload = t.step_func_done(function() {
assert_equals(imgwin.opener, window);
assert_equals(imgwin.document.contentType, "image/png");
var imgwinChildren = imgwin.document.body.childNodes;
@ -33,8 +22,7 @@
assert_equals(imgwinChildren[0].namespaceURI, "http://www.w3.org/1999/xhtml",
"Only child of body must be an HTML element");
imgwin.close();
t.done();
}
});
</script>
</head>
<body>

View file

@ -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\")");