You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[selection] HTMLTextFormControlElement::subtreeHasChanged() shouldn't be called in setRangeText
https://bugs.webkit.org/show_bug.cgi?id=237720
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
Update test expectations as more sub-tests are now passing.
* web-platform-tests/html/semantics/forms/textfieldselection/selection-value-interactions-expected.txt:
* web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText-expected.txt:
Source/WebCore:
We shouldn't call HTMLTextFormControlElement::subtreeHasChanged() in HTMLTextFormControlElement::setRangeText.
It has been removed in patch for bug 237641. This patch is to further remove unnecessary code.
This change refers and imports some of the changes in chromium CL at
https://codereview.chromium.org/1577243002
* html/HTMLTextFormControlElement.cpp:
(WebCore::HTMLTextFormControlElement::setRangeText):
LayoutTests:
Update test expectation as the test is now passing.
* fast/forms/setrangetext-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@291555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Copy file name to clipboardExpand all lines: LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection-value-interactions-expected.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
2
-
FAIL value dirty flag behavior after setRangeText on textarea not in body assert_equals: Calling setRangeText should set the value dirty flag expected "somexyzing" but got "set range text"
3
-
FAIL value dirty flag behavior after setRangeText on input not in body assert_equals: Calling setRangeText should set the value dirty flag expected "somexyzing" but got "set range text"
2
+
PASS value dirty flag behavior after setRangeText on textarea not in body
3
+
PASS value dirty flag behavior after setRangeText on input not in body
4
4
PASS value dirty flag behavior after setRangeText on textarea in body
5
5
PASS value dirty flag behavior after setRangeText on input in body
6
6
PASS value dirty flag behavior after setRangeText on textarea in body with parsed default value
Copy file name to clipboardExpand all lines: LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText-expected.txt
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,12 @@ PASS password setRangeText without argument throws a type error
56
56
NOTRUN password setRangeText fires a select event
57
57
NOTRUN password setRangeText fires a select event when fully selected
58
58
NOTRUN password setRangeText fires a select event after select()
59
-
FAIL display_none setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments assert_equals: expected "foobar2bar" but got "foobar"
60
-
FAIL display_none selectionMode missing assert_equals: expected "foobar2bar" but got "foobar"
61
-
FAIL display_none selectionMode 'select' assert_equals: expected "foofoo" but got "foobar"
62
-
FAIL display_none selectionMode 'start' assert_equals: expected "foofoo" but got "foobar"
63
-
FAIL display_none selectionMode 'end' assert_equals: expected "foofoobar" but got "foobar"
64
-
FAIL display_none selectionMode 'preserve' assert_equals: expected "foo" but got "foobar"
59
+
PASS display_none setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments
60
+
PASS display_none selectionMode missing
61
+
PASS display_none selectionMode 'select'
62
+
PASS display_none selectionMode 'start'
63
+
PASS display_none selectionMode 'end'
64
+
PASS display_none selectionMode 'preserve'
65
65
PASS display_none setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception
66
66
PASS display_none setRangeText without argument throws a type error
67
67
NOTRUN display_none setRangeText fires a select event
@@ -78,12 +78,12 @@ PASS textarea setRangeText without argument throws a type error
78
78
NOTRUN textarea setRangeText fires a select event
79
79
NOTRUN textarea setRangeText fires a select event when fully selected
80
80
NOTRUN textarea setRangeText fires a select event after select()
81
-
FAIL input_not_in_doc setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments assert_equals: expected "foobar2bar" but got "foobar"
82
-
FAIL input_not_in_doc selectionMode missing assert_equals: expected "foobar2bar" but got "foobar"
83
-
FAIL input_not_in_doc selectionMode 'select' assert_equals: expected "foofoo" but got "foobar"
84
-
FAIL input_not_in_doc selectionMode 'start' assert_equals: expected "foofoo" but got "foobar"
85
-
FAIL input_not_in_doc selectionMode 'end' assert_equals: expected "foofoobar" but got "foobar"
86
-
FAIL input_not_in_doc selectionMode 'preserve' assert_equals: expected "foo" but got "foobar"
81
+
PASS input_not_in_doc setRangeText with only one argument replaces the value between selectionStart and selectionEnd, otherwise replaces the value between 2nd and 3rd arguments
82
+
PASS input_not_in_doc selectionMode missing
83
+
PASS input_not_in_doc selectionMode 'select'
84
+
PASS input_not_in_doc selectionMode 'start'
85
+
PASS input_not_in_doc selectionMode 'end'
86
+
PASS input_not_in_doc selectionMode 'preserve'
87
87
PASS input_not_in_doc setRangeText with 3rd argument greater than 2nd argument throws an IndexSizeError exception
88
88
PASS input_not_in_doc setRangeText without argument throws a type error
89
89
NOTRUN input_not_in_doc setRangeText fires a select event
0 commit comments