LayoutTests:
Updated expected results for this change:
<rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
* editing/selection/anchor-focus1-expected.txt:
* editing/selection/anchor-focus2-expected.txt:
* editing/selection/anchor-focus3-expected.txt:
* editing/selection/move-begin-end-expected.txt:
* fast/dom/Element/onclick-case-expected.txt:
* fast/dom/HTMLInputElement/size-as-number-expected.txt:
* fast/dom/document-all-input-expected.txt:
* fast/dom/option-properties-expected.txt:
* fast/events/objc-keyboard-event-creation-expected.txt:
* fast/events/onsubmit-bubbling-expected.txt:
* fast/forms/access-key-expected.txt:
* fast/forms/activate-and-disabled-elements-expected.txt:
* fast/forms/button-in-forms-collection-expected.txt:
* fast/forms/check-box-enter-key-expected.txt:
* fast/forms/cursor-position-expected.txt:
* fast/forms/display-none-in-onchange-keyboard-expected.txt:
* fast/forms/domstring-replace-crash-expected.txt:
* fast/forms/double-focus-expected.txt:
* fast/forms/element-by-name-expected.txt:
* fast/forms/empty-get-expected.txt:
* fast/forms/focus-expected.txt:
* fast/forms/form-get-multipart-expected.txt:
* fast/forms/form-get-multipart2-expected.txt:
* fast/forms/form-get-multipart3-expected.txt:
* fast/forms/form-post-urlencoded-expected.txt:
* fast/forms/input-appearance-elementFromPoint-expected.txt:
* fast/forms/input-appearance-maxlength-expected.txt:
* fast/forms/input-changing-value-expected.txt:
* fast/forms/input-delete-expected.txt:
* fast/forms/input-selection-hidden-expected.txt:
* fast/forms/input-selection-restore-expected.txt:
* fast/forms/input-text-enter-expected.txt:
* fast/forms/input-truncate-newline-expected.txt:
* fast/forms/legend-access-key-expected.txt:
* fast/forms/onchange-enter-submit-expected.txt:
* fast/forms/onselect-textarea-expected.txt:
* fast/forms/onselect-textfield-expected.txt:
* fast/forms/paste-into-textarea-expected.txt:
* fast/forms/plaintext-mode-1-expected.txt:
* fast/forms/select-remove-option-expected.txt:
* fast/forms/select-replace-option-expected.txt:
* fast/forms/select-reset-expected.txt:
* fast/forms/selection-functions-expected.txt:
* fast/forms/text-field-setvalue-crash-expected.txt:
* fast/forms/textarea-crlf-expected.txt:
* fast/forms/textarea-scrolled-endline-caret-expected.txt:
* fast/forms/textarea-setvalue-submit-expected.txt:
* fast/forms/textfield-focus-out-expected.txt:
WebCore:
Reinstate r15966 because layout test changes are correct.
<rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
* editing/TextIterator.cpp:
(WebCore::TextIterator::advance):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index be217f4..76e2be0 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,58 @@
+2006-08-24 David Harrison <harrison@apple.com>
+
+ Updated expected results for this change:
+
+ <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
+
+ * editing/selection/anchor-focus1-expected.txt:
+ * editing/selection/anchor-focus2-expected.txt:
+ * editing/selection/anchor-focus3-expected.txt:
+ * editing/selection/move-begin-end-expected.txt:
+ * fast/dom/Element/onclick-case-expected.txt:
+ * fast/dom/HTMLInputElement/size-as-number-expected.txt:
+ * fast/dom/document-all-input-expected.txt:
+ * fast/dom/option-properties-expected.txt:
+ * fast/events/objc-keyboard-event-creation-expected.txt:
+ * fast/events/onsubmit-bubbling-expected.txt:
+ * fast/forms/access-key-expected.txt:
+ * fast/forms/activate-and-disabled-elements-expected.txt:
+ * fast/forms/button-in-forms-collection-expected.txt:
+ * fast/forms/check-box-enter-key-expected.txt:
+ * fast/forms/cursor-position-expected.txt:
+ * fast/forms/display-none-in-onchange-keyboard-expected.txt:
+ * fast/forms/domstring-replace-crash-expected.txt:
+ * fast/forms/double-focus-expected.txt:
+ * fast/forms/element-by-name-expected.txt:
+ * fast/forms/empty-get-expected.txt:
+ * fast/forms/focus-expected.txt:
+ * fast/forms/form-get-multipart-expected.txt:
+ * fast/forms/form-get-multipart2-expected.txt:
+ * fast/forms/form-get-multipart3-expected.txt:
+ * fast/forms/form-post-urlencoded-expected.txt:
+ * fast/forms/input-appearance-elementFromPoint-expected.txt:
+ * fast/forms/input-appearance-maxlength-expected.txt:
+ * fast/forms/input-changing-value-expected.txt:
+ * fast/forms/input-delete-expected.txt:
+ * fast/forms/input-selection-hidden-expected.txt:
+ * fast/forms/input-selection-restore-expected.txt:
+ * fast/forms/input-text-enter-expected.txt:
+ * fast/forms/input-truncate-newline-expected.txt:
+ * fast/forms/legend-access-key-expected.txt:
+ * fast/forms/onchange-enter-submit-expected.txt:
+ * fast/forms/onselect-textarea-expected.txt:
+ * fast/forms/onselect-textfield-expected.txt:
+ * fast/forms/paste-into-textarea-expected.txt:
+ * fast/forms/plaintext-mode-1-expected.txt:
+ * fast/forms/select-remove-option-expected.txt:
+ * fast/forms/select-replace-option-expected.txt:
+ * fast/forms/select-reset-expected.txt:
+ * fast/forms/selection-functions-expected.txt:
+ * fast/forms/text-field-setvalue-crash-expected.txt:
+ * fast/forms/textarea-crlf-expected.txt:
+ * fast/forms/textarea-scrolled-endline-caret-expected.txt:
+ * fast/forms/textarea-setvalue-submit-expected.txt:
+ * fast/forms/textfield-focus-out-expected.txt:
+
2006-08-24 Rob Buis <buis@kde.org>
Reviewed by Darin.
diff --git a/LayoutTests/editing/selection/anchor-focus1-expected.txt b/LayoutTests/editing/selection/anchor-focus1-expected.txt
index 187545c..6301bba 100644
--- a/LayoutTests/editing/selection/anchor-focus1-expected.txt
+++ b/LayoutTests/editing/selection/anchor-focus1-expected.txt
@@ -4,6 +4,7 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
text
Anchor ([object Text], 0) is correct.
Focus ([object Text], 4) is correct.
diff --git a/LayoutTests/editing/selection/anchor-focus2-expected.txt b/LayoutTests/editing/selection/anchor-focus2-expected.txt
index 950b6ca..c691cd8 100644
--- a/LayoutTests/editing/selection/anchor-focus2-expected.txt
+++ b/LayoutTests/editing/selection/anchor-focus2-expected.txt
@@ -5,6 +5,7 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
text
Anchor ([object Text], 0) is correct.
Focus ([object Text], 4) is correct.
diff --git a/LayoutTests/editing/selection/anchor-focus3-expected.txt b/LayoutTests/editing/selection/anchor-focus3-expected.txt
index 0694c4b..688efe8 100644
--- a/LayoutTests/editing/selection/anchor-focus3-expected.txt
+++ b/LayoutTests/editing/selection/anchor-focus3-expected.txt
@@ -5,6 +5,7 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
This tests the anchorNode, anchorOffset, focusNode and focusOffset properties of the Selection object. These properties are part of Mozilla's Selection object API, and so their values should be consistent in both browsers.
+
text
Anchor ([object Text], 4) is correct.
Focus ([object Text], 0) is correct.
diff --git a/LayoutTests/editing/selection/move-begin-end-expected.txt b/LayoutTests/editing/selection/move-begin-end-expected.txt
index b9a42d0..c5539fa 100644
--- a/LayoutTests/editing/selection/move-begin-end-expected.txt
+++ b/LayoutTests/editing/selection/move-begin-end-expected.txt
@@ -11,6 +11,7 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV to 9 of #text > DIV toDOMRange:range from 0 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
This tests that moving the caret and selecting using Command+Left/Right arrows work correctly. If this text is successful, the text "SUCCESS" will be shown below.
SUCCESS
diff --git a/LayoutTests/fast/dom/Element/onclick-case-expected.txt b/LayoutTests/fast/dom/Element/onclick-case-expected.txt
index 3c538b9..4de8bab 100644
--- a/LayoutTests/fast/dom/Element/onclick-case-expected.txt
+++ b/LayoutTests/fast/dom/Element/onclick-case-expected.txt
@@ -1,5 +1,6 @@
This tests whether an element's onclick attribute can be a function named "OnClick". Some older versions of WebKit had a bug in the DOM binding for Element that would prevent the function from being called because we have an attribute of the same name.
+
Hooray! All is well!
diff --git a/LayoutTests/fast/dom/HTMLInputElement/size-as-number-expected.txt b/LayoutTests/fast/dom/HTMLInputElement/size-as-number-expected.txt
index 2b69097..a5af62f 100644
--- a/LayoutTests/fast/dom/HTMLInputElement/size-as-number-expected.txt
+++ b/LayoutTests/fast/dom/HTMLInputElement/size-as-number-expected.txt
@@ -1,3 +1,4 @@
+
This tests to make sure that HTMLInputElement::size returns a number, not a string. This is in violation of the DOM Level 1 spec, but is what FireFox does, so we match.
You should see 2 lines with "SUCCESS" below:
diff --git a/LayoutTests/fast/dom/document-all-input-expected.txt b/LayoutTests/fast/dom/document-all-input-expected.txt
index 2606504..57b455f 100644
--- a/LayoutTests/fast/dom/document-all-input-expected.txt
+++ b/LayoutTests/fast/dom/document-all-input-expected.txt
@@ -1,4 +1,5 @@
This tests setting inputs using document.all. If successful, the input should show PASS.
+
PASS
diff --git a/LayoutTests/fast/dom/option-properties-expected.txt b/LayoutTests/fast/dom/option-properties-expected.txt
index 13bf0fe..f956d95 100644
--- a/LayoutTests/fast/dom/option-properties-expected.txt
+++ b/LayoutTests/fast/dom/option-properties-expected.txt
@@ -6,3 +6,4 @@
PASS: document.getElementById('sel').options[1].selected should be true and is.
PASS: document.getElementById('sel').options[1].text should be PASS and is.
+
diff --git a/LayoutTests/fast/events/objc-keyboard-event-creation-expected.txt b/LayoutTests/fast/events/objc-keyboard-event-creation-expected.txt
index a8f18e5..27c9b01 100644
--- a/LayoutTests/fast/events/objc-keyboard-event-creation-expected.txt
+++ b/LayoutTests/fast/events/objc-keyboard-event-creation-expected.txt
@@ -1,3 +1,4 @@
+
This tests that DOMKeyboardEvents are created correctly in the ObjC API. See bug 9736.
keydown - key: U+000041@0 (keyCode/charCode: 0/0) modifiers: true,false,false,false
diff --git a/LayoutTests/fast/events/onsubmit-bubbling-expected.txt b/LayoutTests/fast/events/onsubmit-bubbling-expected.txt
index 1385dc0..85c3222 100644
--- a/LayoutTests/fast/events/onsubmit-bubbling-expected.txt
+++ b/LayoutTests/fast/events/onsubmit-bubbling-expected.txt
@@ -3,3 +3,4 @@
PASS: containing element div2 caught submit event
PASS: containing element div1 caught submit event
+
diff --git a/LayoutTests/fast/forms/access-key-expected.txt b/LayoutTests/fast/forms/access-key-expected.txt
index 68d9d93..0f85012 100644
--- a/LayoutTests/fast/forms/access-key-expected.txt
+++ b/LayoutTests/fast/forms/access-key-expected.txt
@@ -11,6 +11,7 @@
+
1 button clicked
2 input type button focussed
diff --git a/LayoutTests/fast/forms/activate-and-disabled-elements-expected.txt b/LayoutTests/fast/forms/activate-and-disabled-elements-expected.txt
index dc7823b..d6e4a0a 100644
--- a/LayoutTests/fast/forms/activate-and-disabled-elements-expected.txt
+++ b/LayoutTests/fast/forms/activate-and-disabled-elements-expected.txt
@@ -1,4 +1,4 @@
-Disabled button
+Disabled button
This tests that disabled form elements don't call submit when they receive a DOMActivate event. If this test is successful, the text "SUCCESS" should be shown below.
SUCCESS
diff --git a/LayoutTests/fast/forms/button-in-forms-collection-expected.txt b/LayoutTests/fast/forms/button-in-forms-collection-expected.txt
index 315c126..164ee3c 100644
--- a/LayoutTests/fast/forms/button-in-forms-collection-expected.txt
+++ b/LayoutTests/fast/forms/button-in-forms-collection-expected.txt
@@ -1,6 +1,6 @@
The following tests for regression against 4405: <button> not listed in form collections. You should see a series of lines starting with PASS.
- Button2
+ Button2
PASS document.test.elements.length is 2
PASS document.test.elements[0].name is "foo"
diff --git a/LayoutTests/fast/forms/check-box-enter-key-expected.txt b/LayoutTests/fast/forms/check-box-enter-key-expected.txt
index a2ec8cd..bc37659 100644
--- a/LayoutTests/fast/forms/check-box-enter-key-expected.txt
+++ b/LayoutTests/fast/forms/check-box-enter-key-expected.txt
@@ -2,6 +2,7 @@
If the test passes, the text below should say both "tried to submit form" and "check box is not checked".
+
Tried to submit form.
Check box is not checked.
diff --git a/LayoutTests/fast/forms/cursor-position-expected.txt b/LayoutTests/fast/forms/cursor-position-expected.txt
index b7e4e6d..8be9083 100644
--- a/LayoutTests/fast/forms/cursor-position-expected.txt
+++ b/LayoutTests/fast/forms/cursor-position-expected.txt
@@ -6,6 +6,7 @@
If this test succeeded, you should see 2 lines saying "10, 10" below.
+
10, 10
10, 10
diff --git a/LayoutTests/fast/forms/display-none-in-onchange-keyboard-expected.txt b/LayoutTests/fast/forms/display-none-in-onchange-keyboard-expected.txt
index ee86170..d49a564 100644
--- a/LayoutTests/fast/forms/display-none-in-onchange-keyboard-expected.txt
+++ b/LayoutTests/fast/forms/display-none-in-onchange-keyboard-expected.txt
@@ -5,6 +5,7 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
This tests that setting display to 'none' for an element that's about to get focus doesn't crash.
SUCCESS - Didn't crash
diff --git a/LayoutTests/fast/forms/domstring-replace-crash-expected.txt b/LayoutTests/fast/forms/domstring-replace-crash-expected.txt
index 30d4b19..45c9242 100644
--- a/LayoutTests/fast/forms/domstring-replace-crash-expected.txt
+++ b/LayoutTests/fast/forms/domstring-replace-crash-expected.txt
@@ -2,3 +2,4 @@
No crash = test PASS.
+
diff --git a/LayoutTests/fast/forms/double-focus-expected.txt b/LayoutTests/fast/forms/double-focus-expected.txt
index 021137e..10a7a4e 100644
--- a/LayoutTests/fast/forms/double-focus-expected.txt
+++ b/LayoutTests/fast/forms/double-focus-expected.txt
@@ -16,3 +16,5 @@
+
+
diff --git a/LayoutTests/fast/forms/element-by-name-expected.txt b/LayoutTests/fast/forms/element-by-name-expected.txt
index 083bdf1..3b558c6e 100644
--- a/LayoutTests/fast/forms/element-by-name-expected.txt
+++ b/LayoutTests/fast/forms/element-by-name-expected.txt
@@ -4,6 +4,7 @@
If the test succeeds, there will be a line below that says "form element was found".
+
Form element was found.
diff --git a/LayoutTests/fast/forms/empty-get-expected.txt b/LayoutTests/fast/forms/empty-get-expected.txt
index 2f973c2..b0b86d9 100644
--- a/LayoutTests/fast/forms/empty-get-expected.txt
+++ b/LayoutTests/fast/forms/empty-get-expected.txt
@@ -1,5 +1,6 @@
Test for bug 8051: Empty forms are submitted incorrectly.
+
Success
diff --git a/LayoutTests/fast/forms/focus-expected.txt b/LayoutTests/fast/forms/focus-expected.txt
index 1470c27..e5c1687 100644
--- a/LayoutTests/fast/forms/focus-expected.txt
+++ b/LayoutTests/fast/forms/focus-expected.txt
@@ -9,6 +9,7 @@
Legend
+
Label2 Label3
focused 1
diff --git a/LayoutTests/fast/forms/form-get-multipart-expected.txt b/LayoutTests/fast/forms/form-get-multipart-expected.txt
index 2b9eab5..662eb14 100644
--- a/LayoutTests/fast/forms/form-get-multipart-expected.txt
+++ b/LayoutTests/fast/forms/form-get-multipart-expected.txt
@@ -1,3 +1,4 @@
+
Success
diff --git a/LayoutTests/fast/forms/form-get-multipart2-expected.txt b/LayoutTests/fast/forms/form-get-multipart2-expected.txt
index 2b9eab5..662eb14 100644
--- a/LayoutTests/fast/forms/form-get-multipart2-expected.txt
+++ b/LayoutTests/fast/forms/form-get-multipart2-expected.txt
@@ -1,3 +1,4 @@
+
Success
diff --git a/LayoutTests/fast/forms/form-get-multipart3-expected.txt b/LayoutTests/fast/forms/form-get-multipart3-expected.txt
index 2b9eab5..662eb14 100644
--- a/LayoutTests/fast/forms/form-get-multipart3-expected.txt
+++ b/LayoutTests/fast/forms/form-get-multipart3-expected.txt
@@ -1,3 +1,4 @@
+
Success
diff --git a/LayoutTests/fast/forms/form-post-urlencoded-expected.txt b/LayoutTests/fast/forms/form-post-urlencoded-expected.txt
index 2b9eab5..662eb14 100644
--- a/LayoutTests/fast/forms/form-post-urlencoded-expected.txt
+++ b/LayoutTests/fast/forms/form-post-urlencoded-expected.txt
@@ -1,3 +1,4 @@
+
Success
diff --git a/LayoutTests/fast/forms/input-appearance-elementFromPoint-expected.txt b/LayoutTests/fast/forms/input-appearance-elementFromPoint-expected.txt
index 75dcf86..e2c9620 100644
--- a/LayoutTests/fast/forms/input-appearance-elementFromPoint-expected.txt
+++ b/LayoutTests/fast/forms/input-appearance-elementFromPoint-expected.txt
@@ -1,3 +1,3 @@
-This tests that elementFromPoint will get the input element.
+This tests that elementFromPoint will get the input element.
Test Passed
diff --git a/LayoutTests/fast/forms/input-appearance-maxlength-expected.txt b/LayoutTests/fast/forms/input-appearance-maxlength-expected.txt
index 39eb6a7..00b1674 100644
--- a/LayoutTests/fast/forms/input-appearance-maxlength-expected.txt
+++ b/LayoutTests/fast/forms/input-appearance-maxlength-expected.txt
@@ -7,5 +7,6 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
This test changes the value of the text field by simulating typing, and then gets the value.
+
Test 1 Passed. Maxlength works for default value. Test 2 Passed. Maxlength works for inserted text.
diff --git a/LayoutTests/fast/forms/input-changing-value-expected.txt b/LayoutTests/fast/forms/input-changing-value-expected.txt
index 760d33c..0723578 100644
--- a/LayoutTests/fast/forms/input-changing-value-expected.txt
+++ b/LayoutTests/fast/forms/input-changing-value-expected.txt
@@ -4,5 +4,6 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
This test changes the value of the text field by simulating typing, and then gets the value.
+
Passed
diff --git a/LayoutTests/fast/forms/input-delete-expected.txt b/LayoutTests/fast/forms/input-delete-expected.txt
index dec6d3a..81d8e5e 100644
--- a/LayoutTests/fast/forms/input-delete-expected.txt
+++ b/LayoutTests/fast/forms/input-delete-expected.txt
@@ -5,5 +5,6 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
This tests that calling setSelectionRange on a text field will correctly close the typing command. If the test fails, the deleteCommand that happens after the setSelectionRange will fail, and the text field will say "Test Failed".
+
Passed
diff --git a/LayoutTests/fast/forms/input-selection-hidden-expected.txt b/LayoutTests/fast/forms/input-selection-hidden-expected.txt
index 2f84a62..6a234a0 100644
--- a/LayoutTests/fast/forms/input-selection-hidden-expected.txt
+++ b/LayoutTests/fast/forms/input-selection-hidden-expected.txt
@@ -1,5 +1,6 @@
This tests the selection methods on the new text field when it is hidden and then made visible.
+
setSelectionRange(3, 12)
Passed.
diff --git a/LayoutTests/fast/forms/input-selection-restore-expected.txt b/LayoutTests/fast/forms/input-selection-restore-expected.txt
index 4229f57..524b775 100644
--- a/LayoutTests/fast/forms/input-selection-restore-expected.txt
+++ b/LayoutTests/fast/forms/input-selection-restore-expected.txt
@@ -4,5 +4,6 @@
If this test succeeded, you should see a line saying "4, 4" below.
+
4, 4
diff --git a/LayoutTests/fast/forms/input-text-enter-expected.txt b/LayoutTests/fast/forms/input-text-enter-expected.txt
index 01a38d0..8c211cc 100644
--- a/LayoutTests/fast/forms/input-text-enter-expected.txt
+++ b/LayoutTests/fast/forms/input-text-enter-expected.txt
@@ -2,6 +2,7 @@
This test selects some characters, then simulates a press of the Enter key (marked Return on Macintosh keyboards).
+
Content of input after pressing return is "12345678". It should be "12345678".
diff --git a/LayoutTests/fast/forms/input-truncate-newline-expected.txt b/LayoutTests/fast/forms/input-truncate-newline-expected.txt
index d602e37..ffc42c1 100644
--- a/LayoutTests/fast/forms/input-truncate-newline-expected.txt
+++ b/LayoutTests/fast/forms/input-truncate-newline-expected.txt
@@ -13,5 +13,6 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
This tests that when newlines are pasted into text fields, the text gets truncated properly.
+
Passed.
diff --git a/LayoutTests/fast/forms/legend-access-key-expected.txt b/LayoutTests/fast/forms/legend-access-key-expected.txt
index 53ca281..132a764 100644
--- a/LayoutTests/fast/forms/legend-access-key-expected.txt
+++ b/LayoutTests/fast/forms/legend-access-key-expected.txt
@@ -5,5 +5,6 @@
Information:
+
focused
diff --git a/LayoutTests/fast/forms/onchange-enter-submit-expected.txt b/LayoutTests/fast/forms/onchange-enter-submit-expected.txt
index 12b45f0..81e1ab7 100644
--- a/LayoutTests/fast/forms/onchange-enter-submit-expected.txt
+++ b/LayoutTests/fast/forms/onchange-enter-submit-expected.txt
@@ -5,6 +5,7 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
This tests that onchange fires when you press Enter to submit a form.
+
text onchange
text onblur
on submit
diff --git a/LayoutTests/fast/forms/onselect-textarea-expected.txt b/LayoutTests/fast/forms/onselect-textarea-expected.txt
index 7e0bce1..5abf18b 100644
--- a/LayoutTests/fast/forms/onselect-textarea-expected.txt
+++ b/LayoutTests/fast/forms/onselect-textarea-expected.txt
@@ -10,6 +10,7 @@
This tests onSelect for textareas.
This also makes sure that the correct selection is restored when the element regains focus.
+
Calling focus on textarea
After focus: textarea selection start: 34 end: 34
diff --git a/LayoutTests/fast/forms/onselect-textfield-expected.txt b/LayoutTests/fast/forms/onselect-textfield-expected.txt
index 92dcd50..6c4ceba 100644
--- a/LayoutTests/fast/forms/onselect-textfield-expected.txt
+++ b/LayoutTests/fast/forms/onselect-textfield-expected.txt
@@ -9,6 +9,7 @@
This tests onSelect for text fields.
+
Calling focus on text field
After focus: text field selection start: 0 end: 10
diff --git a/LayoutTests/fast/forms/paste-into-textarea-expected.txt b/LayoutTests/fast/forms/paste-into-textarea-expected.txt
index 3d24a5f..d71c4e5 100644
--- a/LayoutTests/fast/forms/paste-into-textarea-expected.txt
+++ b/LayoutTests/fast/forms/paste-into-textarea-expected.txt
@@ -4,6 +4,7 @@
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
This tests for a bug where text pasted into a textarea would appear one character before the position where it was pasted.
+
Hooray, test succeeded.
diff --git a/LayoutTests/fast/forms/plaintext-mode-1-expected.txt b/LayoutTests/fast/forms/plaintext-mode-1-expected.txt
index 815f70c..4cf0dc6 100644
--- a/LayoutTests/fast/forms/plaintext-mode-1-expected.txt
+++ b/LayoutTests/fast/forms/plaintext-mode-1-expected.txt
@@ -9,6 +9,7 @@
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 0 of #text > DIV toDOMRange:range from 0 of #text > DIV to 5 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+
Success: document.queryCommandEnabled("BackColor") == false
Success: document.queryCommandEnabled("Bold") == false
Success: document.queryCommandEnabled("Copy") == true
diff --git a/LayoutTests/fast/forms/select-remove-option-expected.txt b/LayoutTests/fast/forms/select-remove-option-expected.txt
index 067e2ab..f17bf6f 100644
--- a/LayoutTests/fast/forms/select-remove-option-expected.txt
+++ b/LayoutTests/fast/forms/select-remove-option-expected.txt
@@ -1,2 +1,3 @@
test passed
+
diff --git a/LayoutTests/fast/forms/select-replace-option-expected.txt b/LayoutTests/fast/forms/select-replace-option-expected.txt
index b34ccfc..373a081 100644
--- a/LayoutTests/fast/forms/select-replace-option-expected.txt
+++ b/LayoutTests/fast/forms/select-replace-option-expected.txt
@@ -1,5 +1,6 @@
This tests replacing an option using JavaScript. If successful, the options should be "Replacement Option 0", "Option 1", and "Option 2", and selected index should be 0.
+
options[0] is Option 0
options[1] is Replacement Option 1
options[2] is Option 2
diff --git a/LayoutTests/fast/forms/select-reset-expected.txt b/LayoutTests/fast/forms/select-reset-expected.txt
index 0871aa0..9f7f1b5 100644
--- a/LayoutTests/fast/forms/select-reset-expected.txt
+++ b/LayoutTests/fast/forms/select-reset-expected.txt
@@ -1,5 +1,6 @@
This tests reseting of a select box with no selected options using JavaScript. If successful, both times the selected index should be 0.
+
selected index is 0 before and 0 after reset().
diff --git a/LayoutTests/fast/forms/selection-functions-expected.txt b/LayoutTests/fast/forms/selection-functions-expected.txt
index 77de5d4..f8ed1c9 100644
--- a/LayoutTests/fast/forms/selection-functions-expected.txt
+++ b/LayoutTests/fast/forms/selection-functions-expected.txt
@@ -34,7 +34,7 @@
If this test passed you'll see a bunch of correct selection ranges below. Check the expected file for the correct ranges.
-
+
===textarea===
setSelectionRange():
3, 7
diff --git a/LayoutTests/fast/forms/text-field-setvalue-crash-expected.txt b/LayoutTests/fast/forms/text-field-setvalue-crash-expected.txt
index 9d4c462..c121228 100644
--- a/LayoutTests/fast/forms/text-field-setvalue-crash-expected.txt
+++ b/LayoutTests/fast/forms/text-field-setvalue-crash-expected.txt
@@ -12,3 +12,4 @@
This test checks that undoing across a programmatic change to a text field's value doesn't cause crashes or assertion failures. If this test does not crash, it has passed.
+
diff --git a/LayoutTests/fast/forms/textarea-crlf-expected.txt b/LayoutTests/fast/forms/textarea-crlf-expected.txt
index f56089a..cea41d1 100644
--- a/LayoutTests/fast/forms/textarea-crlf-expected.txt
+++ b/LayoutTests/fast/forms/textarea-crlf-expected.txt
@@ -2,6 +2,7 @@
If the test passes, you should see three lines saying "Passed" below.
+
Passed
Passed
Passed
diff --git a/LayoutTests/fast/forms/textarea-scrolled-endline-caret-expected.txt b/LayoutTests/fast/forms/textarea-scrolled-endline-caret-expected.txt
index d3e7463..b002344 100644
--- a/LayoutTests/fast/forms/textarea-scrolled-endline-caret-expected.txt
+++ b/LayoutTests/fast/forms/textarea-scrolled-endline-caret-expected.txt
@@ -1,5 +1,6 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text > DIV to 20 of #text > DIV toDOMRange:range from 17 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+
Test Succeeded
diff --git a/LayoutTests/fast/forms/textarea-setvalue-submit-expected.txt b/LayoutTests/fast/forms/textarea-setvalue-submit-expected.txt
index 3582111..5d26d33 100644
--- a/LayoutTests/fast/forms/textarea-setvalue-submit-expected.txt
+++ b/LayoutTests/fast/forms/textarea-setvalue-submit-expected.txt
@@ -1 +1,2 @@
+
Success
diff --git a/LayoutTests/fast/forms/textfield-focus-out-expected.txt b/LayoutTests/fast/forms/textfield-focus-out-expected.txt
index 1915073..6d86a4f 100644
--- a/LayoutTests/fast/forms/textfield-focus-out-expected.txt
+++ b/LayoutTests/fast/forms/textfield-focus-out-expected.txt
@@ -1,5 +1,6 @@
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
This is a test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7363. Taking focus away from a text field that no longer had focus was crashing Safari.
+
Success: finished the test without crashing.
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 4a07607..02dfacc 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,12 @@
+2006-08-24 David Harrison <harrison@apple.com>
+
+ Reinstate r15966 because layout test changes are correct.
+
+ <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
+
+ * editing/TextIterator.cpp:
+ (WebCore::TextIterator::advance):
+
2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by ap.
diff --git a/WebCore/editing/TextIterator.cpp b/WebCore/editing/TextIterator.cpp
index 21181fc7..966ad2b 100644
--- a/WebCore/editing/TextIterator.cpp
+++ b/WebCore/editing/TextIterator.cpp
@@ -157,7 +157,7 @@
// FIXME: What about CDATA_SECTION_NODE?
if (renderer->style()->visibility() == VISIBLE)
m_handledNode = handleTextNode();
- } else if (renderer && (renderer->isImage() || renderer->isWidget())) {
+ } else if (renderer && (renderer->isImage() || renderer->isWidget() || (renderer->element() && renderer->element()->isControl()))) {
if (renderer->style()->visibility() == VISIBLE)
m_handledNode = handleReplacedElement();
} else