Title: [113371] trunk/LayoutTests
Revision
113371
Author
toniki...@webkit.org
Date
2012-04-05 13:34:07 -0700 (Thu, 05 Apr 2012)

Log Message

2012-04-05  Antonio Gomes  <ago...@rim.com>

        Move nodesFromRect-shadowContent test from fast/dom to media, where the
        helper .js files are able to work properly.
        https://bugs.webkit.org/show_bug.cgi?id=80847 (PART III)

        Reviewed by Eric Carlson.

        * media/nodesFromRect-shadowContent-expected.txt: Renamed from LayoutTests/fast/dom/nodesFromRect-shadowContent-expected.txt.
        * media/nodesFromRect-shadowContent.html: Renamed from LayoutTests/fast/dom/nodesFromRect-shadowContent.html.

Added Paths

Removed Paths

Diff

Deleted: trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent-expected.txt (113370 => 113371)


--- trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent-expected.txt	2012-04-05 20:32:05 UTC (rev 113370)
+++ trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent-expected.txt	2012-04-05 20:34:07 UTC (rev 113371)
@@ -1,6 +0,0 @@
-PASS All correct nodes found for rect
-PASS All correct nodes found for rect
-This test only runs in DRT!
-
-EXPECTED (video.controls != 'null') OK
-

Deleted: trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent.html (113370 => 113371)


--- trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent.html	2012-04-05 20:32:05 UTC (rev 113370)
+++ trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent.html	2012-04-05 20:34:07 UTC (rev 113371)
@@ -1,62 +0,0 @@
-<html>
-<head>
-  <title>Document::nodesFromRect shadow content access - bug 80847 </title>
-  <style type="text/css" media="screen">
-    video {
-      margin: 50px;
-    }
-  </style>
-  <script src=""
-  <script src=""
-  <script src=""
-  <script src=""
-  <script type="text/_javascript_" charset="utf-8">
-    function runTest()
-    {
-      if (window.layoutTestController) {
-        layoutTestController.dumpAsText();
-        layoutTestController.waitUntilDone();
-      }
-
-      var e = {};
-
-      // Set up shortcut access to elements
-      e['html'] = document.getElementsByTagName("html")[0];
-      ['v1', 'body'].forEach(function(a) {
-        e[a] = document.getElementById(a);
-      });
-
-      window.scrollTo(0, 0);
-
-      var playCoords;
-      try {
-          playCoords = mediaControlsButtonCoordinates(video, "play-button");
-      } catch (exception) {
-          failTest(exception.description);
-          return;
-      }
-      var clickX = playCoords[0];
-      var clickY = playCoords[1];
-
-      check(clickX, clickY, 10, 10, 20, 20, [e.v1, e.body]);
-
-      var shadow =['-webkit-media-controls-timeline-container', '-webkit-media-controls-play-button', '-webkit-media-controls-panel', '-webkit-media-controls'];
-      checkShadowContent(clickX, clickY, 10, 10, 20, 20, shadow);
-
-      if (window.layoutTestController)
-        layoutTestController.notifyDone();
-    }
-
-    window._onload_ = runTest;
-  </script>
-</head>
-<body id="body">
-    <video id="v1" controls></video>
-    <p>This test only runs in DRT!</p>
-    <script src=""
-    <script>
-        testExpected("video.controls", null, '!=');
-        video.src = "" "content/test");
-    </script>
-</body>
-</html>

Copied: trunk/LayoutTests/media/nodesFromRect-shadowContent-expected.txt (from rev 113368, trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent-expected.txt) (0 => 113371)


--- trunk/LayoutTests/media/nodesFromRect-shadowContent-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/media/nodesFromRect-shadowContent-expected.txt	2012-04-05 20:34:07 UTC (rev 113371)
@@ -0,0 +1,6 @@
+PASS All correct nodes found for rect
+PASS All correct nodes found for rect
+This test only runs in DRT!
+
+EXPECTED (video.controls != 'null') OK
+

Copied: trunk/LayoutTests/media/nodesFromRect-shadowContent.html (from rev 113368, trunk/LayoutTests/fast/dom/nodesFromRect-shadowContent.html) (0 => 113371)


--- trunk/LayoutTests/media/nodesFromRect-shadowContent.html	                        (rev 0)
+++ trunk/LayoutTests/media/nodesFromRect-shadowContent.html	2012-04-05 20:34:07 UTC (rev 113371)
@@ -0,0 +1,65 @@
+<html>
+<head>
+  <title>Document::nodesFromRect shadow content access - bug 80847 </title>
+  <style type="text/css" media="screen">
+    video {
+      margin: 50px;
+    }
+  </style>
+  <script src=""
+  <script src=""
+  <script src=""
+  <script src=""
+  <script type="text/_javascript_" charset="utf-8">
+    function runTest()
+    {
+      if (window.layoutTestController) {
+        layoutTestController.dumpAsText();
+        layoutTestController.waitUntilDone();
+      }
+
+      var e = {};
+
+      // Set up shortcut access to elements
+      e['html'] = document.getElementsByTagName("html")[0];
+      ['v1', 'body'].forEach(function(a) {
+        e[a] = document.getElementById(a);
+      });
+
+      window.scrollTo(0, 0);
+
+      var playCoords;
+      try {
+          playCoords = mediaControlsButtonCoordinates(video, "play-button");
+      } catch (exception) {
+          failTest(exception.description);
+          return;
+      }
+      var clickX = playCoords[0];
+      var clickY = playCoords[1];
+
+      check(clickX, clickY, 10, 10, 20, 20, [e.v1, e.body]);
+
+      var shadow =['-webkit-media-controls-timeline-container', '-webkit-media-controls-play-button', '-webkit-media-controls-panel', '-webkit-media-controls'];
+      checkShadowContent(clickX, clickY, 10, 10, 20, 20, shadow);
+
+      if (window.layoutTestController)
+        layoutTestController.notifyDone();
+    }
+
+    window._onload_ = runTest;
+  </script>
+</head>
+<body id="body">
+    <video id="v1" controls></video>
+    <p>This test only runs in DRT!</p>
+    <script src=""
+    <script>
+        testExpected("video.controls", null, '!=');
+        waitForEvent('canplaythrough', function () {
+            runTest();
+        } );
+        video.src = "" "content/test");
+    </script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to