| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>HTML Test: The embed element represents a document</title> | 3 <title>HTML Test: The embed element represents a document</title> |
| 4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <meta name="assert" content="Check if the embed element is ignored when used ins
ide a media element"> | 6 <meta name="assert" content="Check if the embed element is ignored when used ins
ide a media element"> |
| 7 <script type="application/javascript"> | 7 <script type="application/javascript"> |
| 8 window.childLoaded = false; | 8 var nestingTest = async_test("Test embed being ignored inside media element"); |
| 9 async_test(function() { | 9 onload = nestingTest.step_func_done(function() { |
| 10 addEventListener("load", this.step_func_done(function() { | 10 assert_true(true, "We got to a load event without loading things we should n
ot load"); |
| 11 assert_false(window.childLoaded); | 11 }); |
| 12 })); | |
| 13 }, "Test embed being ignored inside media element"); | |
| 14 </script> | 12 </script> |
| 15 <body> | 13 <body> |
| 16 <video> | 14 <video> |
| 17 <embed type="text/html" src="embed-iframe.html" /> | 15 <embed type="text/html" src="../resources/should-not-load.html" |
| 16 test-description="<embed> in <video>"> |
| 18 </video> | 17 </video> |
| 19 <audio> | 18 <audio> |
| 20 <embed type="text/html" src="embed-iframe.html" /> | 19 <embed type="text/html" src="../resources/should-not-load.html" |
| 20 test-description="<embed> in <audio>"> |
| 21 </audio> | 21 </audio> |
| 22 </body> | 22 </body> |
| OLD | NEW |