3 <script src=
"media-file.js"></script>
4 <script src=
"video-test.js"></script>
6 function iframeLoad() {
7 var iframe
= document
.querySelector("iframe");
8 var iframeBody
= iframe
.contentDocument
.querySelector("body");
10 // Required to be global for testExpected() to work properly.
11 iframeBodyStyle
= iframe
.contentDocument
.defaultView
.getComputedStyle(iframeBody
, null);
12 testExpected("iframeBodyStyle.backgroundColor", "rgb(0, 0, 0)");
17 var iframe
= document
.querySelector("iframe");
18 iframe
.onload
= iframeLoad
;
19 iframe
.src
= findMediaFile("video", "content/counting");
24 <body onload=
"load()">
25 <p>Test that video media documents have a black background.
</p>
26 <iframe style=
"width: 200px; height: 200px;"></iframe>