3 <title>Document::nodesFromRect shadow content access - bug 80847 </title>
4 <style type="text/css" media="screen">
9 <script src=media-file.js></script>
10 <script src=media-controls.js></script>
11 <script src="../fast/js/resources/js-test-pre.js"></script>
12 <script src="../fast/dom/nodesFromRect/resources/nodesFromRect.js"></script>
13 <script type="text/javascript" charset="utf-8">
18 // Set up shortcut access to elements
19 e['html'] = document.getElementsByTagName("html")[0];
20 ['v1', 'body'].forEach(function(a) {
21 e[a] = document.getElementById(a);
24 window.scrollTo(0, 0);
28 playCoords = mediaControlsButtonCoordinates(video, "play-button");
30 failTest(exception.description);
33 var clickX = playCoords[0];
34 var clickY = playCoords[1];
36 check(clickX, clickY, 10, 10, 20, 20, [e.v1, e.body]);
38 var shadow =['-webkit-media-controls-timeline-container', '-webkit-media-controls-play-button', '-webkit-media-controls-panel', '-webkit-media-controls'];
39 checkShadowContent(clickX, clickY, 10, 10, 20, 20, shadow);
44 <video id="v1" controls></video>
45 <p>This test only runs in DRT!</p>
46 <script src=video-test.js></script>
48 testExpected("video.controls", null, '!=');
49 waitForEvent('canplaythrough', function () {
53 video.src = findMediaFile("video", "content/test");