Changeset 158273 in webkit
- Timestamp:
- Oct 30, 2013 9:06:07 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r158271 r158273 1 2013-10-30 Robert Plociennik <r.plociennik@samsung.com> 2 3 [EFL] accessibility/textarea-selected-text-range.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=112016 5 6 Reviewed by Mario Sanchez Prada. 7 8 Removed failure expectations. 9 10 * platform/efl-wk1/TestExpectations: The test is no longer failing. 11 * platform/efl-wk2/TestExpectations: The test is no longer failing. 12 1 13 2013-10-30 Robert Plociennik <r.plociennik@samsung.com> 2 14 -
trunk/LayoutTests/platform/efl-wk1/TestExpectations
r158271 r158273 165 165 webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ] 166 166 webkit.org/b/112015 accessibility/textarea-line-for-index.html [ Failure ] 167 webkit.org/b/112016 accessibility/textarea-selected-text-range.html [ Failure ]168 167 webkit.org/b/112017 accessibility/textbox-role-reports-selection.html [ Failure ] 169 168 webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ] -
trunk/LayoutTests/platform/efl-wk2/TestExpectations
r158271 r158273 165 165 webkit.org/b/112014 accessibility/textarea-insertion-point-line-number.html [ Failure ] 166 166 webkit.org/b/112015 accessibility/textarea-line-for-index.html [ Failure ] 167 webkit.org/b/112016 accessibility/textarea-selected-text-range.html [ Failure ]168 167 webkit.org/b/112017 accessibility/textbox-role-reports-selection.html [ Failure ] 169 168 webkit.org/b/112018 accessibility/th-as-title-ui.html [ Failure ] -
trunk/Tools/ChangeLog
r158267 r158273 1 2013-10-30 Robert Plociennik <r.plociennik@samsung.com> 2 3 [EFL] accessibility/textarea-selected-text-range.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=112016 5 6 Reviewed by Mario Sanchez Prada. 7 8 Provided implementation for AccessibilityUIElement::selectedTextRange() and 9 AccessibilityUIElement::setSelectedTextRange(). 10 11 * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: 12 (AccessibilityUIElement::selectedTextRange): Implemented. 13 (AccessibilityUIElement::setSelectedTextRange): Implemented 14 * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: 15 (WTR::AccessibilityUIElement::selectedTextRange): Implemented. 16 (WTR::AccessibilityUIElement::setSelectedTextRange): Implemented. 17 1 18 2013-10-30 Robert Plociennik <r.plociennik@samsung.com> 2 19 -
trunk/Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp
r158267 r158273 1036 1036 JSStringRef AccessibilityUIElement::selectedTextRange() 1037 1037 { 1038 // FIXME: implement 1039 return JSStringCreateWithCharacters(0, 0); 1038 if (!ATK_IS_TEXT(m_element)) 1039 return JSStringCreateWithCharacters(0, 0); 1040 1041 gint start, end; 1042 g_free(atk_text_get_selection(ATK_TEXT(m_element), 0, &start, &end)); 1043 1044 GOwnPtr<gchar> selection(g_strdup_printf("{%d, %d}", start, end - start)); 1045 return JSStringCreateWithUTF8CString(selection.get()); 1040 1046 } 1041 1047 1042 1048 void AccessibilityUIElement::setSelectedTextRange(unsigned location, unsigned length) 1043 1049 { 1044 // FIXME: implement 1050 if (!ATK_IS_TEXT(m_element)) 1051 return; 1052 1053 atk_text_set_selection(ATK_TEXT(m_element), 0, location, location + length); 1045 1054 } 1046 1055 -
trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp
r158267 r158273 1176 1176 JSRetainPtr<JSStringRef> AccessibilityUIElement::selectedTextRange() 1177 1177 { 1178 // FIXME: implement 1179 return JSStringCreateWithCharacters(0, 0); 1178 if (!ATK_IS_TEXT(m_element.get())) 1179 return JSStringCreateWithCharacters(0, 0); 1180 1181 gint start, end; 1182 g_free(atk_text_get_selection(ATK_TEXT(m_element.get()), 0, &start, &end)); 1183 1184 GOwnPtr<gchar> selection(g_strdup_printf("{%d, %d}", start, end - start)); 1185 return JSStringCreateWithUTF8CString(selection.get()); 1180 1186 } 1181 1187 1182 1188 void AccessibilityUIElement::setSelectedTextRange(unsigned location, unsigned length) 1183 1189 { 1184 // FIXME: implement 1190 if (!ATK_IS_TEXT(m_element.get())) 1191 return; 1192 1193 atk_text_set_selection(ATK_TEXT(m_element.get()), 0, location, location + length); 1185 1194 } 1186 1195
Note: See TracChangeset
for help on using the changeset viewer.