Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: LayoutTests/editing/deleting/smart-delete-004-expected.txt

Issue 428353004: Convert two pixel tests, editing/deleting/smart-delete-00{3,4}.html to JS test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-08-01T10:51:21 Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/editing/deleting/smart-delete-004-expected.txt
diff --git a/LayoutTests/editing/deleting/smart-delete-004-expected.txt b/LayoutTests/editing/deleting/smart-delete-004-expected.txt
index 5eac9f6db67a85646ddec82d7c717c85ee983ef8..25732ca28b8a9779f00b5826bb238759e3058e3f 100644
--- a/LayoutTests/editing/deleting/smart-delete-004-expected.txt
+++ b/LayoutTests/editing/deleting/smart-delete-004-expected.txt
@@ -1,22 +1,24 @@
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-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 {P} at (0,0) size 784x36
- RenderText {#text} at (0,0) size 745x36
- text run at (0,0) width 392: "This tests deleting a selection created with a word granularity. "
- text run at (392,0) width 353: "To run it manually, double click on 'bar' and hit forward"
- text run at (0,18) width 45: "delete. "
- text run at (45,18) width 159: "You should see 'foo baz'."
- RenderBlock {DIV} at (0,52) size 784x18
- RenderText {#text} at (0,0) size 21x18
- text run at (0,0) width 21: "foo"
- RenderText {#text} at (21,0) size 26x18
- text run at (21,0) width 26: " baz"
-caret: position 3 of child 0 {#text} of child 2 {DIV} of body
+Test for smart delete forward on double click selected word.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+includeSpace
+PASS sample.innerText is "foo baz"
+PASS getSelection().rangeCount is 1
+PASS getSelection().focusNode is sample.firstChild
+PASS getSelection().focusOffset is 4
+notIncludeSpace
+PASS sample.innerText is "foo baz"
+PASS getSelection().rangeCount is 1
+PASS getSelection().focusNode is sample.firstChild
+PASS getSelection().focusOffset is 3
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Please tun this test with DRT.
+
+To run it manually, double click on 'bar' and hit delete. You should see 'foo baz'.
+
+foo baz
+foo baz

Powered by Google App Engine
This is Rietveld 408576698