Update web-platform-tests to revision 7a767a52741f628430ffbbed46e7f3df68ba3534

Fixes #15648.
This commit is contained in:
Ms2ger 2017-02-20 11:44:42 +01:00
parent a1e4c547f0
commit 4fadf9b0b6
1184 changed files with 22551 additions and 9856 deletions

View file

@ -5,18 +5,18 @@
<script src="/resources/testharnessreport.js"></script>
<meta name="assert" content="Check if the embed element is ignored when used inside a media element">
<script type="application/javascript">
window.childLoaded = false;
async_test(function() {
addEventListener("load", this.step_func_done(function() {
assert_false(window.childLoaded);
}));
}, "Test embed being ignored inside media element");
var nestingTest = async_test("Test embed being ignored inside media element");
onload = nestingTest.step_func_done(function() {
assert_true(true, "We got to a load event without loading things we should not load");
});
</script>
<body>
<video>
<embed type="text/html" src="embed-iframe.html" />
<embed type="text/html" src="../resources/should-not-load.html"
test-description="<embed> in <video>">
</video>
<audio>
<embed type="text/html" src="embed-iframe.html" />
<embed type="text/html" src="../resources/should-not-load.html"
test-description="<embed> in <audio>">
</audio>
</body>

View file

@ -0,0 +1,56 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title></title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
var loadedCount = 0;
var nestingTest = async_test("Test <embed> nesting inside <object>");
onload = nestingTest.step_func_done(function() {
assert_equals(loadedCount, 12, "Should have loaded all should-load elements");
});
</script>
<style>
object, embed { display: none }
</style>
</head>
<body>
<object data="../resources/should-load.html" style="width: 100px; height: 100px">
<embed type="text/html" src="../resources/should-not-load.html"
test-description="<embed> inside <object>">
</object>
<object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
<embed type="text/html" src="../resources/should-load.html" />
</object>
<object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
<div></div>
<embed type="text/html" src="../resources/should-load.html" />
</object>
<object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
<div>
<embed type="text/html" src="../resources/should-load.html" />
</div>
</object>
<object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
<embed type="text/html" src="../resources/should-load.html" />
<embed type="text/html" src="../resources/should-load.html" />
<object data="../resources/should-load.html">
<embed type="text/html" src="../resources/should-not-load.html"
test-description="<embed> inside loaded <object> inside non-loaded <object>">
</object>
<object data="data:application/x-does-not-exist,test">
<embed type="text/html" src="../resources/should-load.html" />
</object>
</object>
<div>
<object data="../resources/should-load.html" style="width: 100px; height: 100px"></object>
<embed type="text/html" src="../resources/should-load.html" />
</div>
<div>
<embed type="text/html" src="../resources/should-load.html" />
<object data="../resources/should-load.html" style="width: 100px; height: 100px"></object>
</div>
</body>
</html>