dump-as-markup conversion: editing/deleting/delete-to-end-of-paragraph.html
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 06:55:34 +0000 (06:55 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 06:55:34 +0000 (06:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68865

Reviewed by Kent Tamura.

Converted the test.

* editing/deleting/delete-to-end-of-paragraph-expected.txt: Added.
* editing/deleting/delete-to-end-of-paragraph.html:
* platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
* platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
* platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
* platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
* platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
* platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
* platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
* platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96076 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-to-end-of-paragraph-expected.txt [moved from LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt with 72% similarity]
LayoutTests/editing/deleting/delete-to-end-of-paragraph.html
LayoutTests/platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png [deleted file]
LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png [deleted file]
LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.txt [deleted file]
LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt [deleted file]
LayoutTests/platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png [deleted file]
LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png [deleted file]
LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png [deleted file]
LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.txt [deleted file]

index d309741..2f0b084 100644 (file)
@@ -1,3 +1,24 @@
+2011-09-26  Ryosuke Niwa  <rniwa@webkit.org>
+
+        dump-as-markup conversion: editing/deleting/delete-to-end-of-paragraph.html
+        https://bugs.webkit.org/show_bug.cgi?id=68865
+
+        Reviewed by Kent Tamura.
+
+        Converted the test.
+
+        * editing/deleting/delete-to-end-of-paragraph-expected.txt: Added.
+        * editing/deleting/delete-to-end-of-paragraph.html:
+        * platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
+        * platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
+        * platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
+        * platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
+        * platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
+        * platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
+        * platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
+        * platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
+        * platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
+
 2011-09-26  Renata Hodovan  <reni@webkit.org>
 
         [Qt] Skip two tests because they are failing after r96070.
@@ -1,4 +1,4 @@
-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
+EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 7 of BODY > HTML > #document
 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document
@@ -11,13 +11,8 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-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 {DIV} at (0,0) size 600x18
-        RenderInline {SPAN} at (0,0) size 76x18
-          RenderText {#text} at (0,0) size 76x18
-            text run at (0,0) width 76: "four five six"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+| <span>
+|   style="font-size: medium; "
+|   "<#selection-caret>four five six"
+| <br>
index 3406921..98f3e8a 100644 (file)
@@ -1,41 +1,31 @@
+<!DOCTYPE html>
 <html>
 <head>
-
 <style>
 .editing { 
     font-size: 24px; 
     width: 600px; 
 }
 </style>
-<script src="../editing.js" language="JavaScript" type="text/JavaScript" ></script>
-
-<script>
-
-function editingTest() {
-    if (window.layoutTestController) {
-        
-        try {
-            // test for 4570218 by using double deleteToEndOfParagraph
-            layoutTestController.execCommand("DeleteToEndOfParagraph");    
-            layoutTestController.execCommand("DeleteToEndOfParagraph");    
-
-        } catch (ex) {
-            document.write("Exception: " + ex.description);
-        }
-    } else {
-        document.write("(cannot run interactively)");
-    }
-}
-
-</script>
-
 <title>Editing Test</title> 
 </head> 
 <body contenteditable id="root">
 <div id="test" class="editing">one two three</div><div>four five six</div>
+<script src="../../resources/dump-as-markup.js"></script>
 <script>
-runEditingTest();
-</script>
 
+if (!window.layoutTestController)
+    document.write("(cannot run interactively)");
+else {
+    layoutTestController.dumpEditingCallbacks();
+
+    getSelection().setPosition(document.getElementById('test'), 0);
+    // test for 4570218 by using double deleteToEndOfParagraph
+    layoutTestController.execCommand("DeleteToEndOfParagraph");
+    layoutTestController.execCommand("DeleteToEndOfParagraph");
+    Markup.dump('test');
+}
+
+</script>
 </body>
 </html>
diff --git a/LayoutTests/platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png b/LayoutTests/platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png
deleted file mode 100644 (file)
index 8ef8205..0000000
Binary files a/LayoutTests/platform/chromium-linux/editing/deleting/delete-to-end-of-paragraph-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png b/LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png
deleted file mode 100644 (file)
index 93b1b46..0000000
Binary files a/LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.txt b/LayoutTests/platform/chromium-win/editing/deleting/delete-to-end-of-paragraph-expected.txt
deleted file mode 100644 (file)
index 98a7015..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
-EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-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 {DIV} at (0,0) size 600x20
-        RenderInline {SPAN} at (0,0) size 69x19
-          RenderText {#text} at (0,0) size 69x19
-            text run at (0,0) width 69: "four five six"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt b/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt
deleted file mode 100644 (file)
index 13a604f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
-EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-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 {DIV} at (0,0) size 600x19
-        RenderInline {SPAN} at (0,0) size 76x19
-          RenderText {#text} at (0,0) size 76x19
-            text run at (0,0) width 76: "four five six"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body
diff --git a/LayoutTests/platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png b/LayoutTests/platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png
deleted file mode 100644 (file)
index e9bace2..0000000
Binary files a/LayoutTests/platform/mac-leopard/editing/deleting/delete-to-end-of-paragraph-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png b/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png
deleted file mode 100644 (file)
index d1ec95b..0000000
Binary files a/LayoutTests/platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png b/LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png
deleted file mode 100644 (file)
index 7819cf9..0000000
Binary files a/LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.txt b/LayoutTests/platform/qt/editing/deleting/delete-to-end-of-paragraph-expected.txt
deleted file mode 100644 (file)
index 8157a5a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document
-EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-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 {DIV} at (0,0) size 600x22
-        RenderInline {SPAN} at (0,0) size 79x22
-          RenderText {#text} at (0,0) size 79x22
-            text run at (0,0) width 79: "four five six"
-caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body