Title: [89092] trunk/LayoutTests
Revision
89092
Author
[email protected]
Date
2011-06-16 17:29:41 -0700 (Thu, 16 Jun 2011)

Log Message

2011-06-16  Wyatt Carss  <[email protected]>

        Reviewed by Ryosuke Niwa.

        markup-dump conversion + rename: editing/deleting/5408255.html
        https://bugs.webkit.org/show_bug.cgi?id=62680

        Tests if the UI delete button works while '-webkit-user-select: none' is applied.
        There should be no visible content in the dumped markup. Holding off on rename.

        * editing/deleting/5408255.html:
        * editing/deleting/5408255-expected.txt:
        * platform/chromium-linux/editing/deleting/5408255-expected.png: Removed.
        * platform/chromium-mac-leopard/editing/deleting/5408255-expected.png: Removed.
        * platform/chromium-mac/editing/deleting/5408255-expected.png: Removed.
        * platform/chromium-win/editing/deleting/5408255-expected.png: Removed.
        * platform/chromium-win/editing/deleting/5408255-expected.txt: Removed.
        * platform/gtk/editing/deleting/5408255-expected.png: Removed.
        * platform/gtk/editing/deleting/5408255-expected.txt: Removed.
        * platform/mac/editing/deleting/5408255-expected.png: Removed.
        * platform/mac/editing/deleting/5408255-expected.txt: Removed.
        * platform/qt/editing/deleting/5408255-expected.txt: Removed.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (89091 => 89092)


--- trunk/LayoutTests/ChangeLog	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/ChangeLog	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,3 +1,26 @@
+2011-06-16  Wyatt Carss  <[email protected]>
+
+        Reviewed by Ryosuke Niwa.
+
+        markup-dump conversion + rename: editing/deleting/5408255.html
+        https://bugs.webkit.org/show_bug.cgi?id=62680
+
+        Tests if the UI delete button works while '-webkit-user-select: none' is applied. 
+        There should be no visible content in the dumped markup. Holding off on rename.
+
+        * editing/deleting/5408255.html:
+        * editing/deleting/5408255-expected.txt:
+        * platform/chromium-linux/editing/deleting/5408255-expected.png: Removed.
+        * platform/chromium-mac-leopard/editing/deleting/5408255-expected.png: Removed.
+        * platform/chromium-mac/editing/deleting/5408255-expected.png: Removed.
+        * platform/chromium-win/editing/deleting/5408255-expected.png: Removed.
+        * platform/chromium-win/editing/deleting/5408255-expected.txt: Removed.
+        * platform/gtk/editing/deleting/5408255-expected.png: Removed.
+        * platform/gtk/editing/deleting/5408255-expected.txt: Removed.
+        * platform/mac/editing/deleting/5408255-expected.png: Removed.
+        * platform/mac/editing/deleting/5408255-expected.txt: Removed.
+        * platform/qt/editing/deleting/5408255-expected.txt: Removed.
+
 2011-06-16  Ryosuke Niwa  <[email protected]>
 
         Reviewed by Darin Adler.

Added: trunk/LayoutTests/editing/deleting/5408255-expected.txt (0 => 89092)


--- trunk/LayoutTests/editing/deleting/5408255-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/editing/deleting/5408255-expected.txt	2011-06-17 00:29:41 UTC (rev 89092)
@@ -0,0 +1,5 @@
+There should be no visible content in the markup below. This test is for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-select:ignore.
+| "
+"
+| "
+"

Modified: trunk/LayoutTests/editing/deleting/5408255.html (89091 => 89092)


--- trunk/LayoutTests/editing/deleting/5408255.html	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/editing/deleting/5408255.html	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,10 +1,12 @@
+<!DOCTYPE html>
+<html>
 <body>
 
-<p>This tests for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-select:ignore.  The list should be removed, the editable region below should be empty.</p>
-<div contenteditable="true" style="padding: 1em;">
+<div id="test" contenteditable="true" style="padding: 1em;">
 <ul class="needsDeletionUI"><li>1</li><li id="li">2</li></ul>
 </div>
 
+<script src=""
 <script>
 
 sel = window.getSelection();
@@ -15,12 +17,17 @@
     deleteButton = document.getElementById("WebKit-Editing-Delete-Button");
     x = deleteButton.offsetParent.offsetLeft + deleteButton.offsetParent.offsetParent.offsetLeft + deleteButton.offsetLeft + deleteButton.offsetWidth / 2;
     y = deleteButton.offsetParent.offsetTop + deleteButton.offsetParent.offsetParent.offsetTop + deleteButton.offsetTop + deleteButton.offsetHeight / 2;
-    alert(x);
-    alert(y);
     eventSender.mouseMoveTo(x, y);
     eventSender.mouseDown();
     eventSender.mouseUp();
+    deleteButton = document.getElementById("WebKit-Editing-Delete-Button");
+    testContainer = document.getElementById("test");
+    Markup.description("There should be no visible content in the markup below. This test is for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-select:ignore.");
+    if (deleteButton)
+        testContainer.innerHTML += "FAIL";
+    Markup.dump("test");
 }
 
 </script>
 </body>
+</html>

Deleted: trunk/LayoutTests/platform/chromium-linux/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/chromium-mac/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/chromium-mac-leopard/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/chromium-win/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/chromium-win/editing/deleting/5408255-expected.txt (89091 => 89092)


--- trunk/LayoutTests/platform/chromium-win/editing/deleting/5408255-expected.txt	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/platform/chromium-win/editing/deleting/5408255-expected.txt	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,14 +0,0 @@
-ALERT: 22
-ALERT: 96
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x40
-        RenderText {#text} at (0,0) size 744x39
-          text run at (0,0) width 744: "This tests for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-"
-          text run at (0,20) width 82: "select:ignore. "
-          text run at (82,20) width 428: "The list should be removed, the editable region below should be empty."
-      RenderBlock {DIV} at (0,56) size 784x52
-caret: position 0 of child 3 {DIV} of body

Deleted: trunk/LayoutTests/platform/gtk/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/gtk/editing/deleting/5408255-expected.txt (89091 => 89092)


--- trunk/LayoutTests/platform/gtk/editing/deleting/5408255-expected.txt	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/platform/gtk/editing/deleting/5408255-expected.txt	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,22 +0,0 @@
-CONSOLE MESSAGE: line 16: TypeError: 'null' is not an object (evaluating 'deleteButton.offsetParent')
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x38
-        RenderText {#text} at (0,0) size 771x38
-          text run at (0,0) width 771: "This tests for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-"
-          text run at (0,19) width 87: "select:ignore. "
-          text run at (87,19) width 450: "The list should be removed, the editable region below should be empty."
-      RenderBlock {DIV} at (0,54) size 784x102
-        RenderBlock {UL} at (16,32) size 752x38
-          RenderListItem {LI} at (40,0) size 712x19
-            RenderListMarker at (-18,0) size 7x19: bullet
-            RenderText {#text} at (0,0) size 8x19
-              text run at (0,0) width 8: "1"
-          RenderListItem {LI} at (40,19) size 712x19
-            RenderListMarker at (-18,0) size 7x19: bullet
-            RenderText {#text} at (0,0) size 8x19
-              text run at (0,0) width 8: "2"
-caret: position 0 of child 0 {#text} of child 1 {LI} of child 1 {UL} of child 3 {DIV} of body

Deleted: trunk/LayoutTests/platform/mac/editing/deleting/5408255-expected.png


(Binary files differ)

Deleted: trunk/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt (89091 => 89092)


--- trunk/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/platform/mac/editing/deleting/5408255-expected.txt	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,14 +0,0 @@
-ALERT: 22
-ALERT: 92
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x36
-        RenderText {#text} at (0,0) size 771x36
-          text run at (0,0) width 771: "This tests for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -webkit-user-"
-          text run at (0,18) width 87: "select:ignore. "
-          text run at (87,18) width 450: "The list should be removed, the editable region below should be empty."
-      RenderBlock {DIV} at (0,52) size 784x50
-caret: position 0 of child 3 {DIV} of body

Deleted: trunk/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt (89091 => 89092)


--- trunk/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt	2011-06-17 00:25:42 UTC (rev 89091)
+++ trunk/LayoutTests/platform/qt/editing/deleting/5408255-expected.txt	2011-06-17 00:29:41 UTC (rev 89092)
@@ -1,14 +0,0 @@
-ALERT: 22
-ALERT: 100
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x44
-        RenderText {#text} at (0,0) size 742x44
-          text run at (0,0) width 742: "This tests for a bug where the delete button wouldn't work because it had -webkit-user-select:none instead of -"
-          text run at (0,22) width 177: "webkit-user-select:ignore. "
-          text run at (177,22) width 478: "The list should be removed, the editable region below should be empty."
-      RenderBlock {DIV} at (0,60) size 784x54
-caret: position 0 of child 3 {DIV} of body
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to