Bug 1235986 - Web Platform Test for Document Embedding; r=bz

This commit is contained in:
Kyle Machulis 2016-01-21 12:58:41 -08:00
parent f4d83becca
commit c5916ac016
3 changed files with 32 additions and 1 deletions

View File

@ -33304,7 +33304,16 @@
},
"local_changes": {
"deleted": [],
"items": {},
"items": {
"testharness": {
"html/semantics/embedded-content/the-embed-element/embed-document.html": [
{
"path": "html/semantics/embedded-content/the-embed-element/embed-document.html",
"url": "/html/semantics/embedded-content/the-embed-element/embed-document.html"
}
]
}
},
"reftest_nodes": {}
},
"reftest_nodes": {

View File

@ -0,0 +1,15 @@
<!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>
<link rel="stylesheet" href="/resources/testharness.css">
<meta name="assert" content="Check if the embed element represents a document when a text/html resource source is used">
<body>
<script type="application/javascript">
var childLoaded = false;
t = async_test("Test document type embedding");
addEventListener("load", t.step_func_done(function() { assert_true(childLoaded); }));
</script>
<embed src="embed-iframe.html">
</body>

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script type="application/javascript">
parent.childLoaded = true;
</script>
</body>