Changeset 138260 in webkit
- Timestamp:
- Dec 20, 2012, 9:29:34 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r138258 r138260 1 2012-12-20 Dominic Mazzoni <dmazzoni@google.com> 2 3 AX: support clickPoint in DRT for chromium 4 https://bugs.webkit.org/show_bug.cgi?id=97359 5 6 Reviewed by Chris Fleizach. 7 8 Enable four more tests now that clickPointX, clickPointY, 9 and elementAtPoint are implemented for Chromium. 10 11 Minor fixes to two tests to make them more robust 12 across platfoms and when run in parallel. 13 14 * accessibility/svg-bounds.html: Updated 15 * accessibility/svg-bounds-expected.txt: Added (made cross-platform 16 * accessibility/svg-remote-element.html: Updated 17 * accessibility/svg-remote-element-expected.txt: Added (made cross-platform) 18 * platform/mac/accessibility/svg-bounds-expected.txt: Deleted 19 * platform/mac/accessibility/svg-remote-element-expected.txt: Deleted 20 * platform/chromium/TestExpectations: Updated 21 1 22 2012-12-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 23 -
trunk/LayoutTests/accessibility/svg-bounds-expected.txt
r138259 r138260 5 5 6 6 7 container location: ( 1007, 1007)7 container location: (607, 107) 8 8 Face role: AXRole: AXButton 9 9 Face label: AXDescription: face … … 27 27 Mouth label: AXDescription: smile 28 28 MouthX: 115 29 MouthY: 27 4.529 MouthY: 275 30 30 31 31 32 32 Text role: AXRole: AXStaticText 33 TextX : 0.534 TextY : 233 TextX/10: 15 34 TextY/10: 11 35 35 36 36 -
trunk/LayoutTests/accessibility/svg-bounds.html
r138121 r138260 4 4 <script src="../fast/js/resources/js-test-pre.js"></script> 5 5 6 <div id="container" style="position: relative; top: 100 0px; left: 1000px; width:400px; height: 400px;" role="group" tabindex="0">6 <div id="container" style="position: relative; top: 100px; left: 600px; width:400px; height: 400px;" role="group" tabindex="0"> 7 7 8 <svg >8 <svg role="group" id="svgroot"> 9 9 10 10 <circle role="button" aria-label="face" id="face" r="200" cx="200" cy="200" stroke="red" stroke-width="1" fill="yellow" /> … … 13 13 <ellipse role="button" aria-label="nose" id="nose" cx="200" cy="220" rx="8" ry="15" fill="black"/> 14 14 <path role="button" aria-label="smile" id="smile" stroke-width="10" stroke="black" fill="none" stroke-linecap="round" d="M120,280 Q200,330 290,280"/> 15 <text x=" 0" y="15" fill="red">Test</text>16 <image x="20" y="20" width="300" height="80" aria-label="Test Image" xlink:href="resources/cake. ong" />15 <text x="150" y="130" fill="red">Test</text> 16 <image x="20" y="20" width="300" height="80" aria-label="Test Image" xlink:href="resources/cake.png" /> 17 17 18 18 </svg> … … 38 38 window.testRunner.dumpAsText(); 39 39 40 var container = accessibilityController. rootElement.childAtIndex(0).childAtIndex(0);40 var container = accessibilityController.accessibleElementById("svgroot"); 41 41 42 42 var x = pageX(container) - 1; … … 70 70 debug('Mouth label: ' + mouth.description); 71 71 debug('MouthX: ' + (pageX(mouth) - x)); 72 debug('MouthY: ' + Math. abs(pageY(mouth) - y));72 debug('MouthY: ' + Math.floor(Math.abs(pageY(mouth) - y))); 73 73 debug('<br>'); 74 74 75 // Text varies by about 1 - 2 pixels depending on the platform, 76 // so just print the text coordinates divided by 10. 75 77 var text = container.childAtIndex(5).childAtIndex(0); 76 78 debug('Text role: ' + text.role); 77 debug('TextX : ' + (pageX(text) - x));78 debug('TextY : ' + Math.abs(pageY(text) - y));79 debug('TextX/10: ' + Math.floor((pageX(text) - x) / 10)); 80 debug('TextY/10: ' + Math.floor(Math.abs(pageY(text) - y) / 10)); 79 81 debug('<br>'); 80 82 -
trunk/LayoutTests/accessibility/svg-remote-element-expected.txt
r138121 r138260 1 2 3 1 4 2 This test ensures that accessibility elements can be created out of what a remote SVG image defines. … … 7 5 8 6 9 PASS successfullyParsed is true 10 11 TEST COMPLETE 12 container location: (7, 43) 7 container location: (7, 7) 13 8 Face role: AXRole: AXButton 14 9 Face label: AXDescription: face … … 32 27 Mouth label: AXDescription: smile 33 28 MouthX: 115 34 MouthY: 27 4.529 MouthY: 275 35 30 36 31 32 PASS successfullyParsed is true 37 33 34 TEST COMPLETE 35 -
trunk/LayoutTests/accessibility/svg-remote-element.html
r138121 r138260 3 3 <body> 4 4 <script src="../fast/js/resources/js-test-pre.js"></script> 5 6 <br><br>7 5 8 6 <img tabindex="0" id="svg-image" src="resources/svg-face.svg" alt="interactive SVG" > … … 12 10 13 11 description("This test ensures that accessibility elements can be created out of what a remote SVG image defines.") 12 window.jsTestIsAsync = true; 14 13 15 14 // Return the page's relative coordinates. If we rely on the x() or y() of the accessibility object, then … … 24 23 25 24 if (window.accessibilityController) { 26 window.testRunner.waitUntilDone();27 25 document.getElementById("svg-image").addEventListener("load", runAXTest); 28 26 } … … 61 59 debug('Mouth label: ' + mouth.description); 62 60 debug('MouthX: ' + (pageX(mouth) - x)); 63 debug('MouthY: ' + Math. abs(pageY(mouth) - y));61 debug('MouthY: ' + Math.floor(Math.abs(pageY(mouth) - y))); 64 62 debug('<br>'); 65 63 66 window.testRunner.notifyDone();64 finishJSTest(); 67 65 } 68 66 -
trunk/LayoutTests/platform/chromium/TestExpectations
r138250 r138260 1435 1435 crbug.com/10322 accessibility/aria-menubar-menuitems.html [ Skip ] 1436 1436 crbug.com/10322 accessibility/aria-tables.html [ Skip ] 1437 crbug.com/10322 accessibility/aria-text-role.html [ Skip ]1438 1437 crbug.com/10322 accessibility/aria-used-on-image-maps.html [ Skip ] 1439 1438 crbug.com/10322 accessibility/deleting-iframe-destroys-axcache.html [ Skip ] … … 1443 1442 crbug.com/10322 accessibility/image-map2.html [ Skip ] 1444 1443 crbug.com/10322 accessibility/internal-link-anchors2.html [ Skip ] 1445 crbug.com/10322 accessibility/label-for-control-hittest.html [ Skip ]1446 1444 crbug.com/10322 accessibility/language-attribute.html [ Skip ] 1447 1445 crbug.com/10322 accessibility/lists.html [ Skip ] … … 1461 1459 crbug.com/10322 accessibility/visible-elements.html [ Skip ] 1462 1460 1463 webkit.org/b/97359 accessibility/svg-bounds.html [ Skip ]1464 webkit.org/b/97359 accessibility/svg-remote-element.html [ Skip ]1465 1461 webkit.org/b/96529 accessibility/hidden-legend.html [ Skip ] 1466 1462 webkit.org/b/73912 accessibility/aria-checkbox-text.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r138258 r138260 1 2012-12-20 Dominic Mazzoni <dmazzoni@google.com> 2 3 AX: support clickPoint in DRT for chromium 4 https://bugs.webkit.org/show_bug.cgi?id=97359 5 6 Reviewed by Chris Fleizach. 7 8 When computing the accessible bounding box of an 9 SVG root, be sure to call a method that uses transforms, 10 otherwise an assertion fails. 11 12 Newly unskipped tests: accessibility/svg-bounds.html and 13 accessibility/svg-remote-element.html 14 15 * accessibility/AccessibilityRenderObject.cpp: 16 (WebCore::AccessibilityRenderObject::boundingBoxRect): 17 1 18 2012-12-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 19 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r137962 r138260 784 784 // absoluteFocusRingQuads will query the hierarchy below this element, which for large webpages can be very slow. 785 785 // For a web area, which will have the most elements of any element, absoluteQuads should be used. 786 // We should also use absoluteQuads for SVG elements, otherwise transforms won't be applied. 786 787 Vector<FloatQuad> quads; 788 bool isSVGRoot = false; 789 #if ENABLE(SVG) 790 if (obj->isSVGRoot()) 791 isSVGRoot = true; 792 #endif 787 793 if (obj->isText()) 788 794 toRenderText(obj)->absoluteQuads(quads, 0, RenderText::ClipToEllipsis); 789 else if (isWebArea() || isSeamlessWebArea() )795 else if (isWebArea() || isSeamlessWebArea() || isSVGRoot) 790 796 obj->absoluteQuads(quads); 791 797 else -
trunk/Source/WebKit/chromium/ChangeLog
r138236 r138260 1 2012-12-20 Dominic Mazzoni <dmazzoni@google.com> 2 3 AX: support clickPoint in DRT for chromium 4 https://bugs.webkit.org/show_bug.cgi?id=97359 5 6 Reviewed by Chris Fleizach. 7 8 Exposes the clickPoint accessibility method in WebAccessibilityObject. 9 10 * public/WebAccessibilityObject.h: 11 (WebAccessibilityObject): 12 * src/WebAccessibilityObject.cpp: 13 (WebKit::WebAccessibilityObject::clickPoint): 14 (WebKit): 15 1 16 2012-12-19 Pavel Feldman <pfeldman@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/public/WebAccessibilityObject.h
r138121 r138260 129 129 WEBKIT_EXPORT WebRect boundingBoxRect() const; 130 130 WEBKIT_EXPORT bool canvasHasFallbackContent() const; 131 WEBKIT_EXPORT WebPoint clickPoint() const; 131 132 WEBKIT_EXPORT double estimatedLoadingProgress() const; 132 133 WEBKIT_EXPORT WebString helpText() const; -
trunk/Source/WebKit/chromium/src/WebAccessibilityObject.cpp
r138175 r138260 491 491 } 492 492 493 WebPoint WebAccessibilityObject::clickPoint() const 494 { 495 if (isDetached()) 496 return WebPoint(); 497 498 return WebPoint(m_private->clickPoint()); 499 } 500 493 501 double WebAccessibilityObject::estimatedLoadingProgress() const 494 502 { -
trunk/Tools/ChangeLog
r138259 r138260 1 2012-12-20 Dominic Mazzoni <dmazzoni@google.com> 2 3 AX: support clickPoint in DRT for chromium 4 https://bugs.webkit.org/show_bug.cgi?id=97359 5 6 Reviewed by Chris Fleizach. 7 8 Implement clickPointX, clickPointY, and elementAtPoint for Chromium, so that 9 several more tests can pass. 10 11 * DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp: 12 (WebTestRunner::AccessibilityUIElement::AccessibilityUIElement): 13 (WebTestRunner::AccessibilityUIElement::clickPointXGetterCallback): 14 (WebTestRunner): 15 (WebTestRunner::AccessibilityUIElement::clickPointYGetterCallback): 16 (WebTestRunner::AccessibilityUIElement::elementAtPointCallback): 17 * DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h: 18 (AccessibilityUIElement): 19 1 20 2012-12-20 Dan Bernstein <mitz@apple.com> 2 21 -
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp
r138121 r138260 398 398 bindProperty("isReadOnly", &AccessibilityUIElement::isReadOnlyGetterCallback); 399 399 bindProperty("orientation", &AccessibilityUIElement::orientationGetterCallback); 400 bindProperty("clickPointX", &AccessibilityUIElement::clickPointXGetterCallback); 401 bindProperty("clickPointY", &AccessibilityUIElement::clickPointYGetterCallback); 400 402 401 403 // … … 649 651 } 650 652 653 void AccessibilityUIElement::clickPointXGetterCallback(CppVariant* result) 654 { 655 result->set(accessibilityObject().clickPoint().x); 656 } 657 658 void AccessibilityUIElement::clickPointYGetterCallback(CppVariant* result) 659 { 660 result->set(accessibilityObject().clickPoint().y); 661 } 662 651 663 // 652 664 // Methods … … 726 738 } 727 739 728 void AccessibilityUIElement::elementAtPointCallback(const CppArgumentList&, CppVariant* result) 729 { 730 result->setNull(); 740 void AccessibilityUIElement::elementAtPointCallback(const CppArgumentList& arguments, CppVariant* result) 741 { 742 result->setNull(); 743 744 if (arguments.size() != 2 || !arguments[0].isNumber() || !arguments[1].isNumber()) 745 return; 746 747 int x = arguments[0].toInt32(); 748 int y = arguments[1].toInt32(); 749 WebPoint point(x, y); 750 WebAccessibilityObject obj = accessibilityObject().hitTest(point); 751 if (obj.isNull()) 752 return; 753 754 result->set(*(m_factory->getOrCreate(obj)->getAsCppVariant())); 731 755 } 732 756 -
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h
r138121 r138260 95 95 void isReadOnlyGetterCallback(CppVariant*); 96 96 void orientationGetterCallback(CppVariant*); 97 void clickPointXGetterCallback(CppVariant*); 98 void clickPointYGetterCallback(CppVariant*); 97 99 98 100 // Bound methods.
Note:
See TracChangeset
for help on using the changeset viewer.