Changeset 62111 in webkit
- Timestamp:
- Jun 29, 2010 6:27:56 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r62107 r62111 1 2010-06-29 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [Gtk] Make DRT more coherent with other ports to allow reusing more tests 6 https://bugs.webkit.org/show_bug.cgi?id=40009 7 8 Update GTK a11y tests to follow new prefixes coming from DRT 9 10 * platform/gtk/accessibility/object-attributes-expected.txt: 11 * platform/gtk/accessibility/object-attributes.html: 12 * platform/gtk/accessibility/object-with-title-expected.txt: 13 * platform/gtk/accessibility/object-with-title.html: 14 * platform/gtk/accessibility/table-hierarchy-expected.txt: 15 * platform/gtk/accessibility/table-hierarchy.html: 16 * platform/gtk/accessibility/title-and-alt-expected.txt: 17 * platform/gtk/accessibility/title-and-alt.html: 18 1 19 2010-06-29 Mikhail Naganov <mnaganov@chromium.org> 2 20 -
trunk/LayoutTests/platform/gtk/accessibility/object-attributes-expected.txt
r59532 r62111 27 27 28 28 29 PASS child.role is ' heading'29 PASS child.role is 'AXRole: heading' 30 30 PASS child.allAttributes() is 'level:1, toolkit:WebKitGtk' 31 PASS child.role is ' heading'31 PASS child.role is 'AXRole: heading' 32 32 PASS child.allAttributes() is 'level:2, toolkit:WebKitGtk' 33 PASS child.role is ' heading'33 PASS child.role is 'AXRole: heading' 34 34 PASS child.allAttributes() is 'level:3, toolkit:WebKitGtk' 35 PASS child.role is ' heading'35 PASS child.role is 'AXRole: heading' 36 36 PASS child.allAttributes() is 'level:4, toolkit:WebKitGtk' 37 PASS child.role is ' heading'37 PASS child.role is 'AXRole: heading' 38 38 PASS child.allAttributes() is 'level:5, toolkit:WebKitGtk' 39 PASS child.role is ' heading'39 PASS child.role is 'AXRole: heading' 40 40 PASS child.allAttributes() is 'level:6, toolkit:WebKitGtk' 41 PASS child.role is ' link'41 PASS child.role is 'AXRole: link' 42 42 PASS child.allAttributes() is 'toolkit:WebKitGtk' 43 PASS child.role is ' table'43 PASS child.role is 'AXRole: table' 44 44 PASS child.allAttributes() is 'toolkit:WebKitGtk' 45 PASS child.role is ' table'45 PASS child.role is 'AXRole: table' 46 46 PASS child.allAttributes() is 'toolkit:WebKitGtk' 47 47 PASS successfullyParsed is true -
trunk/LayoutTests/platform/gtk/accessibility/object-attributes.html
r59532 r62111 34 34 var webArea = accessibilityController.focusedElement; 35 35 var child = webArea.childAtIndex(0); 36 shouldBe("child.role", "' heading'");36 shouldBe("child.role", "'AXRole: heading'"); 37 37 shouldBe("child.allAttributes()", "'level:1, toolkit:WebKitGtk'"); 38 38 child = webArea.childAtIndex(1); 39 shouldBe("child.role", "' heading'");39 shouldBe("child.role", "'AXRole: heading'"); 40 40 shouldBe("child.allAttributes()", "'level:2, toolkit:WebKitGtk'"); 41 41 child = webArea.childAtIndex(2); 42 shouldBe("child.role", "' heading'");42 shouldBe("child.role", "'AXRole: heading'"); 43 43 shouldBe("child.allAttributes()", "'level:3, toolkit:WebKitGtk'"); 44 44 child = webArea.childAtIndex(3); 45 shouldBe("child.role", "' heading'");45 shouldBe("child.role", "'AXRole: heading'"); 46 46 shouldBe("child.allAttributes()", "'level:4, toolkit:WebKitGtk'"); 47 47 child = webArea.childAtIndex(4); 48 shouldBe("child.role", "' heading'");48 shouldBe("child.role", "'AXRole: heading'"); 49 49 shouldBe("child.allAttributes()", "'level:5, toolkit:WebKitGtk'"); 50 50 child = webArea.childAtIndex(5); 51 shouldBe("child.role", "' heading'");51 shouldBe("child.role", "'AXRole: heading'"); 52 52 shouldBe("child.allAttributes()", "'level:6, toolkit:WebKitGtk'"); 53 53 child = webArea.childAtIndex(6); 54 shouldBe("child.role", "' link'");54 shouldBe("child.role", "'AXRole: link'"); 55 55 shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'"); 56 56 child = webArea.childAtIndex(7); 57 shouldBe("child.role", "' table'");57 shouldBe("child.role", "'AXRole: table'"); 58 58 shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'"); 59 59 child = webArea.childAtIndex(8); 60 shouldBe("child.role", "' table'");60 shouldBe("child.role", "'AXRole: table'"); 61 61 shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'"); 62 62 } -
trunk/LayoutTests/platform/gtk/accessibility/object-with-title-expected.txt
r56530 r62111 8 8 9 9 10 PASS child.role is ' list'11 PASS child.role is ' section'12 PASS child.role is ' list'10 PASS child.role is 'AXRole: list' 11 PASS child.role is 'AXRole: section' 12 PASS child.role is 'AXRole: list' 13 13 PASS successfullyParsed is true 14 14 -
trunk/LayoutTests/platform/gtk/accessibility/object-with-title.html
r56530 r62111 25 25 26 26 var child = webArea.childAtIndex(0); 27 shouldBe("child.role", "' list'");27 shouldBe("child.role", "'AXRole: list'"); 28 28 29 29 child = webArea.childAtIndex(1); 30 shouldBe("child.role", "' section'");30 shouldBe("child.role", "'AXRole: section'"); 31 31 32 32 child = child.childAtIndex(0); 33 shouldBe("child.role", "' list'");33 shouldBe("child.role", "'AXRole: list'"); 34 34 } 35 35 successfullyParsed = true; -
trunk/LayoutTests/platform/gtk/accessibility/table-hierarchy-expected.txt
r56073 r62111 18 18 19 19 20 PASS table1.role is ' table'20 PASS table1.role is 'AXRole: table' 21 21 PASS table1.rowCount is 1 22 22 PASS table1.columnCount is 2 23 PASS table2.role is ' table'23 PASS table2.role is 'AXRole: table' 24 24 PASS table2.rowCount is 3 25 25 PASS table2.columnCount is 2 26 PASS table3.role is ' table'26 PASS table3.role is 'AXRole: table' 27 27 PASS table3.rowCount is 1 28 28 PASS table3.columnCount is 2 29 PASS table4.role is ' table'29 PASS table4.role is 'AXRole: table' 30 30 PASS table4.rowCount is 3 31 31 PASS table4.columnCount is 2 32 32 PASS children is 2 33 PASS table1.childAtIndex(i).role is ' table cell'34 PASS table1.childAtIndex(i).role is ' table cell'33 PASS table1.childAtIndex(i).role is 'AXRole: table cell' 34 PASS table1.childAtIndex(i).role is 'AXRole: table cell' 35 35 PASS children is 6 36 PASS table2.childAtIndex(i).role is ' table cell'37 PASS table2.childAtIndex(i).role is ' table cell'38 PASS table2.childAtIndex(i).role is ' table cell'39 PASS table2.childAtIndex(i).role is ' table cell'40 PASS table2.childAtIndex(i).role is ' table cell'41 PASS table2.childAtIndex(i).role is ' table cell'36 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 37 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 38 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 39 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 40 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 41 PASS table2.childAtIndex(i).role is 'AXRole: table cell' 42 42 PASS children is 2 43 PASS table3.childAtIndex(i).role is ' table cell'44 PASS table3.childAtIndex(i).role is ' table cell'43 PASS table3.childAtIndex(i).role is 'AXRole: table cell' 44 PASS table3.childAtIndex(i).role is 'AXRole: table cell' 45 45 PASS children is 6 46 PASS table4.childAtIndex(i).role is ' table cell'47 PASS table4.childAtIndex(i).role is ' table cell'48 PASS table4.childAtIndex(i).role is ' table cell'49 PASS table4.childAtIndex(i).role is ' table cell'50 PASS table4.childAtIndex(i).role is ' table cell'51 PASS table4.childAtIndex(i).role is ' table cell'46 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 47 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 48 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 49 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 50 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 51 PASS table4.childAtIndex(i).role is 'AXRole: table cell' 52 52 PASS successfullyParsed is true 53 53 -
trunk/LayoutTests/platform/gtk/accessibility/table-hierarchy.html
r56073 r62111 37 37 38 38 var table1 = webArea.childAtIndex(0); 39 shouldBe("table1.role", "' table'");39 shouldBe("table1.role", "'AXRole: table'"); 40 40 shouldBe("table1.rowCount", "1"); 41 41 shouldBe("table1.columnCount", "2"); 42 42 var table2 = webArea.childAtIndex(1); 43 shouldBe("table2.role", "' table'");43 shouldBe("table2.role", "'AXRole: table'"); 44 44 shouldBe("table2.rowCount", "3"); 45 45 shouldBe("table2.columnCount", "2"); 46 46 var table3 = webArea.childAtIndex(2); 47 shouldBe("table3.role", "' table'");47 shouldBe("table3.role", "'AXRole: table'"); 48 48 shouldBe("table3.rowCount", "1"); 49 49 shouldBe("table3.columnCount", "2"); 50 50 var table4 = webArea.childAtIndex(3); 51 shouldBe("table4.role", "' table'");51 shouldBe("table4.role", "'AXRole: table'"); 52 52 shouldBe("table4.rowCount", "3"); 53 53 shouldBe("table4.columnCount", "2"); … … 56 56 shouldBe("children", "2"); 57 57 for (i = 0; i < children; ++i) { 58 shouldBe("table1.childAtIndex(i).role", "' table cell'");58 shouldBe("table1.childAtIndex(i).role", "'AXRole: table cell'"); 59 59 } 60 60 children = table2.childrenCount; 61 61 shouldBe("children", "6"); 62 62 for (i = 0; i < children; ++i) { 63 shouldBe("table2.childAtIndex(i).role", "' table cell'");63 shouldBe("table2.childAtIndex(i).role", "'AXRole: table cell'"); 64 64 } 65 65 children = table3.childrenCount; 66 66 shouldBe("children", "2"); 67 67 for (i = 0; i < children; ++i) { 68 shouldBe("table3.childAtIndex(i).role", "' table cell'");68 shouldBe("table3.childAtIndex(i).role", "'AXRole: table cell'"); 69 69 } 70 70 children = table4.childrenCount; 71 71 shouldBe("children", "6"); 72 72 for (i = 0; i < children; ++i) { 73 shouldBe("table4.childAtIndex(i).role", "' table cell'");73 shouldBe("table4.childAtIndex(i).role", "'AXRole: table cell'"); 74 74 } 75 75 } -
trunk/LayoutTests/platform/gtk/accessibility/title-and-alt-expected.txt
r51762 r62111 6 6 7 7 8 PASS image.title is ' Image alt attr'9 PASS image.description is ' Image title attr'10 PASS link.title is ' '11 PASS link.description is ' Link title attr'12 PASS entry.title is ' '13 PASS entry.description is ' Entry title attr'14 PASS button.title is ' Submit'15 PASS button.description is ' Submit button title attr'8 PASS image.title is 'AXTitle: Image alt attr' 9 PASS image.description is 'AXDescription: Image title attr' 10 PASS link.title is 'AXTitle: ' 11 PASS link.description is 'AXDescription: Link title attr' 12 PASS entry.title is 'AXTitle: ' 13 PASS entry.description is 'AXDescription: Entry title attr' 14 PASS button.title is 'AXTitle: Submit' 15 PASS button.description is 'AXDescription: Submit button title attr' 16 16 PASS successfullyParsed is true 17 17 -
trunk/LayoutTests/platform/gtk/accessibility/title-and-alt.html
r51762 r62111 23 23 24 24 var image = webArea.childAtIndex(0); 25 shouldBe("image.title", "' Image alt attr'");26 shouldBe("image.description", "' Image title attr'");25 shouldBe("image.title", "'AXTitle: Image alt attr'"); 26 shouldBe("image.description", "'AXDescription: Image title attr'"); 27 27 28 28 var link = webArea.childAtIndex(1); 29 shouldBe("link.title", "' '");30 shouldBe("link.description", "' Link title attr'");29 shouldBe("link.title", "'AXTitle: '"); 30 shouldBe("link.description", "'AXDescription: Link title attr'"); 31 31 32 32 var entry = webArea.childAtIndex(2); 33 shouldBe("entry.title", "' '");34 shouldBe("entry.description", "' Entry title attr'");33 shouldBe("entry.title", "'AXTitle: '"); 34 shouldBe("entry.description", "'AXDescription: Entry title attr'"); 35 35 36 36 var button = webArea.childAtIndex(4); 37 shouldBe("button.title", "' Submit'");38 shouldBe("button.description", "' Submit button title attr'");37 shouldBe("button.title", "'AXTitle: Submit'"); 38 shouldBe("button.description", "'AXDescription: Submit button title attr'"); 39 39 } 40 40 successfullyParsed = true; -
trunk/WebKitTools/ChangeLog
r62110 r62111 1 2010-06-29 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [Gtk] Make DRT more coherent with other ports to allow reusing more tests 6 https://bugs.webkit.org/show_bug.cgi?id=40009 7 8 Make sure "AXRole: ", "AXTitle: " and "AXDescription: " prefixes 9 are used when returning those values, for coherency with other ports. 10 11 * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: 12 (AccessibilityUIElement::role): 13 (AccessibilityUIElement::title): 14 (AccessibilityUIElement::description): 15 1 16 2010-06-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 17 -
trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp
r61103 r62111 27 27 #include "config.h" 28 28 #include "AccessibilityUIElement.h" 29 #include "GOwnPtr.h" 29 30 #include "GRefPtr.h" 30 31 … … 199 200 return JSStringCreateWithCharacters(0, 0); 200 201 201 return JSStringCreateWithUTF8CString(atk_role_get_name(role)); 202 const gchar* roleName = atk_role_get_name(role); 203 GOwnPtr<gchar> axRole(g_strdup_printf("AXRole: %s", roleName)); 204 205 return JSStringCreateWithUTF8CString(axRole.get()); 202 206 } 203 207 … … 219 223 return JSStringCreateWithCharacters(0, 0); 220 224 221 return JSStringCreateWithUTF8CString(name); 225 GOwnPtr<gchar> axTitle(g_strdup_printf("AXTitle: %s", name)); 226 227 return JSStringCreateWithUTF8CString(axTitle.get()); 222 228 } 223 229 … … 229 235 return JSStringCreateWithCharacters(0, 0); 230 236 231 return JSStringCreateWithUTF8CString(description); 237 GOwnPtr<gchar> axDesc(g_strdup_printf("AXDescription: %s", description)); 238 239 return JSStringCreateWithUTF8CString(axDesc.get()); 232 240 } 233 241
Note: See TracChangeset
for help on using the changeset viewer.