Bug 1262184 - Web Platform test for embed load skipping in media nodes; r=bz, a=testonly
authorKyle Machulis <kyle@nonpolynomial.com>
Thu, 14 Apr 2016 13:53:19 -0700
changeset 325861 4633816cde73beee6ed194e571c3a2ba14b15069
parent 325860 73965b0ca49cbeae82ab392a3e12bc2c4024efc5
child 325862 c7b83c2dddd33aba3f11294e0af9f3297a1aae94
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, testonly
bugs1262184
milestone47.0a2
Bug 1262184 - Web Platform test for embed load skipping in media nodes; r=bz, a=testonly
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
@@ -34729,16 +34729,24 @@
     "items": {
       "manual": {
         "html/browsers/history/the-location-interface/non-automated/manual_click_replace_during_load-manual.html": [
           {
             "path": "html/browsers/history/the-location-interface/non-automated/manual_click_replace_during_load-manual.html",
             "url": "/html/browsers/history/the-location-interface/non-automated/manual_click_replace_during_load-manual.html"
           }
         ]
+      },
+      "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"
+          }
+        ]
       }
     },
     "reftest_nodes": {}
   },
   "reftest_nodes": {
     "2dcontext/building-paths/canvas_complexshapes_arcto_001.htm": [
       {
         "path": "2dcontext/building-paths/canvas_complexshapes_arcto_001.htm",
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>