Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/read-media/pageload-video.html

Issue 1160513003: W3C Test: Import web-platform-tests/html/browsers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, bug links Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media documents: video</title>
5 <link rel="author" title="Michael Ventnor" href="mailto:mventnor@mozilla.com">
6 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#read-media">
8 <script src="../../../../../../resources/testharness.js"></script>
9 <script src="../../../../../../resources/testharnessreport.js"></script>
10
11 <script>
12 var t = async_test("The document for a standalone media file should have one c hild in the body.");
13
14 function frameLoaded() {
15 var testframe = document.getElementById('testframe');
16 var testframeChildren = testframe.contentDocument.body.childNodes;
17 assert_equals(testframeChildren.length, 1, "Body of image document has 1 chi ld");
18 assert_equals(testframeChildren[0].nodeName, "VIDEO", "Only child of body mu st be an <video> element");
19 assert_equals(testframeChildren[0].namespaceURI, "http://www.w3.org/1999/xht ml",
20 "Only child of body must be an HTML element");
21 t.done();
22 }
23 </script>
24 </head>
25 <body>
26 <div id="log"></div>
27 <iframe id="testframe" onload="t.step(frameLoaded)"
28 src="data:video/webm,"></iframe>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698