Bug 1262184 - Web Platform test for embed load skipping in media nodes; r=bz
authorKyle Machulis <kyle@nonpolynomial.com>
Tue, 12 Apr 2016 16:10:29 -0700
changeset 316882 6fcbec37ca271ac92d10d5603ea8099d30ca9e35
parent 316881 f95bb4a2a46ddc64770060ce2967e7ba7695fd9f
child 316883 9e2f69811b5251adee36d18b55cebe50c2977d2f
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1262184
milestone48.0a1
Bug 1262184 - Web Platform test for embed load skipping in media nodes; r=bz
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -35118,16 +35118,22 @@
       }
     ],
     "wdspec": []
   },
   "local_changes": {
     "deleted": [],
     "items": {
       "testharness": {
+        "html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html": [
+          {
+            "path": "html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html",
+            "url": "/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html"
+          }
+        ],
         "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html": [
           {
             "path": "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html",
             "url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html"
           }
         ],
         "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html": [
           {
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>HTML Test: The embed element represents a document</title>
+<script src="/resources/testharness.js"></script>
+<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");
+</script>
+<body>
+  <video>
+    <embed type="text/html" src="embed-iframe.html" />
+  </video>
+  <audio>
+    <embed type="text/html" src="embed-iframe.html" />
+  </audio>
+</body>