Loading testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html +8 −8 Original line number Diff line number Diff line Loading @@ -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"> 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"); }); window.childLoaded = false; async_test(function() { addEventListener("load", this.step_func_done(function() { assert_false(window.childLoaded); })); }, "Test embed being ignored inside media element"); </script> <body> <video> <embed type="text/html" src="../resources/should-not-load.html" test-description="<embed> in <video>"> <embed type="text/html" src="embed-iframe.html" /> </video> <audio> <embed type="text/html" src="../resources/should-not-load.html" test-description="<embed> in <audio>"> <embed type="text/html" src="embed-iframe.html" /> </audio> </body> Loading
testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html +8 −8 Original line number Diff line number Diff line Loading @@ -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"> 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"); }); window.childLoaded = false; async_test(function() { addEventListener("load", this.step_func_done(function() { assert_false(window.childLoaded); })); }, "Test embed being ignored inside media element"); </script> <body> <video> <embed type="text/html" src="../resources/should-not-load.html" test-description="<embed> in <video>"> <embed type="text/html" src="embed-iframe.html" /> </video> <audio> <embed type="text/html" src="../resources/should-not-load.html" test-description="<embed> in <audio>"> <embed type="text/html" src="embed-iframe.html" /> </audio> </body>