Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3

This commit is contained in:
WPT Sync Bot 2019-05-15 10:40:54 -04:00 committed by Josh Matthews
parent 6f8bb4dd40
commit edff458e23
791 changed files with 17647 additions and 10322 deletions

View file

@ -12,4 +12,22 @@ test(function() {
elm();
});
}, 'object legacycaller should not be supported');
test(() => {
const obj = document.createElement("object");
assert_false("typeMustMatch" in obj);
}, "object's typeMustMatch IDL attribute should not be supported");
async_test(t => {
const obj = document.createElement("object");
t.add_cleanup(() => obj.remove());
obj.setAttribute("data", "/common/blank.html");
obj.setAttribute("type", "text/plain");
obj.setAttribute("typemustmatch", "");
obj.onload = t.step_func_done(() => {
assert_not_equals(obj.contentDocument, null, "/common/blank.html should be loaded");
});
obj.onerror = t.unreached_func();
document.body.appendChild(obj);
}, "object's typemustmatch content attribute should not be supported");
</script>

View file

@ -1,41 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: display fallback content</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
var t1 = async_test("the typemustmatch attribute is specified");
var t2 = async_test("the typemustmatch attribute is not specified");
</script>
<body onload="t1.done(); t2.done()">
<object id="obj"></object>
<div id="log"></div>
<script>
t1.step(function() {
var obj1 = document.createElement("object");
obj1.setAttribute("data", "/images/blue.png");
obj1.setAttribute("type", "text/plain");
obj1.setAttribute("typemustmatch", "");
obj1.onload = t1.step_func(function () {
assert_true("typeMustMatch" in obj1, "typeMustMatch is not supported.");
assert_unreached("The image of the first object should not be loaded.");
});
document.getElementById("obj").appendChild(obj1);
});
t2.step(function () {
var obj2 = document.createElement("object");
obj2.setAttribute("data", "test2.html");
obj2.setAttribute("type", "text/plain");
obj2.onload = t2.step_func( function () {
assert_not_equals(obj2.contentDocument, null, "The test2.html should be loaded.");
});
document.getElementById("obj").appendChild(obj2);
});
</script>
</body>

View file

@ -1,4 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: object - fallback</title>
<link rel="author" title="Intel" href="http://www.intel.com">