Changeset 169093 in webkit
- Timestamp:
- May 19, 2014, 6:56:41 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt (modified) (1 diff)
-
platform/mac-wk2/accessibility/content-inset-scrollview-frame.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r169089 r169093 1 2014-05-19 Chris Fleizach <cfleizach@apple.com> 2 3 AX: VoiceOver sees the WebArea out of order when topContentInset is used 4 https://bugs.webkit.org/show_bug.cgi?id=133091 5 6 Unreviewed. 7 Make the layout test more resilient to platform differences in frame positions. 8 9 * platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt: 10 * platform/mac-wk2/accessibility/content-inset-scrollview-frame.html: 11 1 12 2014-05-19 Myles C. Maxfield <litherum@gmail.com> 2 13 -
trunk/LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt
r169081 r169093 4 4 5 5 6 Web area role: AXRole: AXWebArea 7 WebArea frame: {-10000, 10300}, {800, 600} 8 ScrollView role: AXRole: AXScrollArea 9 ScrollView frame (0 content inset): {-10000, 10300}, {800, 600} 10 ScrollView frame (100 content inset): {-10000, 10200}, {800, 600} 6 The position of the web area and the scroll view should be the same when there's no content inset 7 PASS webX == scrollViewX && webY == scrollViewY is true 8 After setting the content inset, the new y position should be less than the initial 9 PASS scrollViewY - scrollView.y is 100 11 10 PASS successfullyParsed is true 12 11 -
trunk/LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame.html
r169081 r169093 13 13 description("This tests that a page with a content inset will not affect the bounds of the main frame scroll view. It will appear as the same as the web area's sbounds"); 14 14 15 function outputFrame(message, element) {16 debug(message + ": {" + element.x + ", " + element.y + "}, {" + element.width + ", " + element.height + "}");17 }18 19 15 if (window.accessibilityController) { 20 16 var webArea = accessibilityController.rootElement.childAtIndex(0); 21 debug("Web area role: " + webArea.role);22 outputFrame("WebArea frame", webArea);17 var webX = webArea.x; 18 var webY = webArea.y; 23 19 24 20 var scrollView = webArea.parentElement(); 25 debug("ScrollView role: " + scrollView.role); 26 outputFrame("ScrollView frame (0 content inset)", scrollView); 27 21 var scrollViewX = scrollView.x; 22 var scrollViewY = scrollView.y; 23 24 debug("The position of the web area and the scroll view should be the same when there's no content inset"); 25 shouldBeTrue("webX == scrollViewX && webY == scrollViewY"); 26 28 27 window.internals.setTopContentInset(100); 29 28 30 outputFrame("ScrollView frame (100 content inset)", scrollView); 29 debug("After setting the content inset, the new y position should be less than the initial"); 30 shouldBe("scrollViewY - scrollView.y", "100") 31 31 } 32 32 </script>
Note:
See TracChangeset
for help on using the changeset viewer.