⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 169093 in webkit


Ignore:
Timestamp:
May 19, 2014, 6:56:41 PM (12 years ago)
Author:
Chris Fleizach
Message:

AX: VoiceOver sees the WebArea out of order when topContentInset is used
​https://bugs.webkit.org/show_bug.cgi?id=133091

Unreviewed.
Make the layout test more resilient to platform differences in frame positions.

  • platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt:
  • platform/mac-wk2/accessibility/content-inset-scrollview-frame.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r169089 r169093  
     12014-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
    1122014-05-19  Myles C. Maxfield  <litherum@gmail.com>
    213
  • trunk/LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame-expected.txt

    r169081 r169093  
    44
    55
    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}
     6The position of the web area and the scroll view should be the same when there's no content inset
     7PASS webX == scrollViewX && webY == scrollViewY is true
     8After setting the content inset, the new y position should be less than the initial
     9PASS scrollViewY - scrollView.y is 100
    1110PASS successfullyParsed is true
    1211
  • trunk/LayoutTests/platform/mac-wk2/accessibility/content-inset-scrollview-frame.html

    r169081 r169093  
    1313    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");
    1414
    15     function outputFrame(message, element) {
    16         debug(message + ": {" + element.x + ", " + element.y + "}, {" + element.width + ", " + element.height + "}");
    17     }
    18 
    1915    if (window.accessibilityController) {
    2016        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;
    2319
    2420        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 
    2827        window.internals.setTopContentInset(100);
    2928
    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")
    3131    }
    3232</script>
Note: See TracChangeset for help on using the changeset viewer.