[webkit-changes] cvs commit: LayoutTests/editing/selection
selection-actions-expected.checksum
selection-actions-expected.png selection-actions-expected.txt
selection-actions.html
Justin
justing at opensource.apple.com
Tue Dec 20 16:23:53 PST 2005
justing 05/12/20 16:23:53
Modified: . ChangeLog
Added: editing/selection selection-actions-expected.checksum
selection-actions-expected.png
selection-actions-expected.txt
selection-actions.html
Log:
Reviewed by darin
Layout test for:
<rdar://problem/4103393> Frequent Safari crash on lexisnexus.com (khtml::Selection::xPosForVerticalArrowNavigation)
<rdar://problem/4330451> CrashTracer: [REGRESSION] 2235 crashes in Safari at com.apple.WebCore: khtml::Selection::xPosForVerticalArrowNavigation const 436
* editing/selection/selection-actions-expected.checksum: Added.
* editing/selection/selection-actions-expected.png: Added.
* editing/selection/selection-actions-expected.txt: Added.
* editing/selection/selection-actions.html: Added.
Revision Changes Path
1.174 +13 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -r1.173 -r1.174
--- ChangeLog 20 Dec 2005 18:34:28 -0000 1.173
+++ ChangeLog 21 Dec 2005 00:23:51 -0000 1.174
@@ -1,3 +1,16 @@
+2005-12-20 Justin Garcia <justin.garcia at apple.com>
+
+ Reviewed by darin
+
+ Layout test for:
+ <rdar://problem/4103393> Frequent Safari crash on lexisnexus.com (khtml::Selection::xPosForVerticalArrowNavigation)
+ <rdar://problem/4330451> CrashTracer: [REGRESSION] 2235 crashes in Safari at com.apple.WebCore: khtml::Selection::xPosForVerticalArrowNavigation const 436
+
+ * editing/selection/selection-actions-expected.checksum: Added.
+ * editing/selection/selection-actions-expected.png: Added.
+ * editing/selection/selection-actions-expected.txt: Added.
+ * editing/selection/selection-actions.html: Added.
+
2005-12-19 Geoffrey Garen <ggaren at apple.com>
Layout test for <rdar://problem/4370397> Missing return statement in
1.1 LayoutTests/editing/selection/selection-actions-expected.checksum
Index: selection-actions-expected.checksum
===================================================================
25c8290e426700fd0bfcde1074f411a3
1.1 LayoutTests/editing/selection/selection-actions-expected.png
<<Binary file>>
1.1 LayoutTests/editing/selection/selection-actions-expected.txt
Index: selection-actions-expected.txt
===================================================================
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 15 of #text > BODY > HTML > #document to 15 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > BODY > HTML > #document to 15 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 4 of #text > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > BODY > HTML > #document to 4 of #text > BODY > HTML > #document toDOMRange:range from 11 of #text > BODY > HTML > #document to 8 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
layer at (0,0) size 800x600
RenderCanvas 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
RenderText {TEXT} at (0,0) size 772x36
text run at (0,0) width 772: "This tests whether certain NSResponder methods that should only operate on editable regions modify a selection that is not"
text run at (0,18) width 132: "in an editable region."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,36) size 84x18
text run at (0,36) width 84: "This is a para"
RenderInline {SPAN} at (0,0) size 8x18 [color=#0000FF]
RenderText {TEXT} at (84,36) size 8x18
text run at (84,36) width 8: "g"
RenderText {TEXT} at (92,36) size 32x18
text run at (92,36) width 32: "raph."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,54) size 63x18
text run at (0,54) width 63: "Some text"
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,72) size 63x18
text run at (0,72) width 63: "Some text"
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,90) size 63x18
text run at (0,90) width 63: "Some text"
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,108) size 63x18
text run at (0,108) width 63: "Some text"
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,126) size 124x18
text run at (0,126) width 124: "This is a paragraph."
RenderText {TEXT} at (0,0) size 0x0
RenderText {TEXT} at (0,0) size 0x0
selection start: position 11 of child 2 {TEXT} of child 1 {BODY} of child 0 {HTML} of document
selection end: position 1 of child 7 {BR} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/selection/selection-actions.html
Index: selection-actions.html
===================================================================
<html>
<head>
<script>
function editingTest() {
var start = document.getElementById("start");
x = start.offsetLeft + 10;
y = start.offsetTop + 10;
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseUp();
eventSender.mouseDown();
y = y + 30;
eventSender.mouseMoveTo(x, y);
eventSender.mouseUp();
textInputController.doCommand("moveBackward:");
textInputController.doCommand("moveBackwardAndModifySelection:");
textInputController.doCommand("moveDown:");
textInputController.doCommand("moveDownandModifySelection:");
textInputController.doCommand("moveForward:");
textInputController.doCommand("moveForwardAndModifySelection:");
textInputController.doCommand("moveLeft:");
textInputController.doCommand("moveLeftAndModifySelection:");
textInputController.doCommand("moveRight:");
textInputController.doCommand("moveRightAndModifySelection:");
textInputController.doCommand("moveToBeginningOfDocument:");
textInputController.doCommand("moveToBeginningOfLine:");
textInputController.doCommand("moveToBeginningOfParagraph:");
textInputController.doCommand("moveToEndOfDocument:");
textInputController.doCommand("moveToEndOfLine:");
textInputController.doCommand("moveToEndOfParagraph:");
textInputController.doCommand("moveUp:");
textInputController.doCommand("moveUpAndModifySelection:");
textInputController.doCommand("moveWordBackward:");
textInputController.doCommand("moveWordBackwardModifySelection:");
textInputController.doCommand("moveWordForward:");
textInputController.doCommand("moveWordForwardAndModifySelection:");
textInputController.doCommand("moveWordLeft:");
textInputController.doCommand("moveWordRight:");
textInputController.doCommand("moveWordRightAndModifySelection:");
textInputController.doCommand("moveWordLeftAndModifySelection:");
textInputController.doCommand("pageDown:");
textInputController.doCommand("pageUp:");
textInputController.doCommand("selectLine:");
textInputController.doCommand("selectParagraph:");
textInputController.doCommand("selectWord:");
}
</script>
</head>
<body style="overflow:hidden">
This tests whether certain NSResponder methods that should only operate on editable regions modify a selection that is not in an editable region.<br>
This is a para<span style="color:blue;" id="start">g</span>raph.<br>
Some text<br>
Some text<br>
Some text<br>
Some text<br>
This is a paragraph.
<script>
editingTest();
</script>
</html>
More information about the webkit-changes
mailing list