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

Changeset 90226 in webkit


Ignore:
Timestamp:
Jul 1, 2011, 7:18:41 AM (15 years ago)
Author:
commit-queue@webkit.org
Message:

2011-07-01 Alice Boxhall <aboxhall@chromium.org>

Reviewed by Adam Roben.

accessibility/aria-labelledby-overrides-aria-label.html failing on Windows since it was added
https://bugs.webkit.org/show_bug.cgi?id=63191

  • accessibility/aria-labelledby-overrides-aria-label-expected.txt: Removed.
  • accessibility/aria-labelledby-overrides-aria-label.html:
  • platform/mac/accessibility/aria-labelledby-overrides-aria-label-expected.txt: Added.
  • platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt:
Location:
trunk/LayoutTests
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90225 r90226  
     12011-07-01  Alice Boxhall  <aboxhall@chromium.org>
     2
     3        Reviewed by Adam Roben.
     4
     5        accessibility/aria-labelledby-overrides-aria-label.html failing on Windows since it was added
     6        https://bugs.webkit.org/show_bug.cgi?id=63191
     7
     8        * accessibility/aria-labelledby-overrides-aria-label-expected.txt: Removed.
     9        * accessibility/aria-labelledby-overrides-aria-label.html:
     10        * platform/mac/accessibility/aria-labelledby-overrides-aria-label-expected.txt: Added.
     11        * platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt:
     12
    1132011-07-01  Kentaro Hara  <haraken@google.com>
    214
  • trunk/LayoutTests/accessibility/aria-labelledby-overrides-aria-label.html

    r89204 r90226  
    22<html>
    33<head>
    4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
    5 <script>
    6 var successfullyParsed = false;
    7 </script>
    8 <script src="../fast/js/resources/js-test-pre.js"></script>
    94</head>
    105<body id="body">
     6<p id="description">This tests that if aria-labelledby is used, then aria-label attributes are not used.</p>
    117
    128<button id="using-none">Alpha</button>
     
    1713<span id="theta">Theta</span>
    1814
    19 <p id="description"></p>
    20 <ul id="console"></ul>
     15<ul id="results"></ul>
     16<div id="console"></div>
    2117
    2218<script>
    23     description("This tests that if aria-labelledby is used, then aria-label attributes are not used.");
    24 
    25     function log(str) {
    26         var console = document.getElementById("console");
    27         var li = document.createElement("li");
    28         li.appendChild(document.createTextNode(str));
    29         console.appendChild(li);
    30     }
    31 
    32     function logAXObject(obj) {
    33         log("for " + obj.allAttributes());
    34         log("children:\n" + obj.attributesOfChildren());
    35         log("obj.title is " + obj.title);
    36         log("obj.description is " + obj.description);
    37     }
    38 
    3919    function getAccessibilityObject(id) {
    4020        var element = document.getElementById(id);
     
    4323    }
    4424
     25    function output(str) {
     26        var results = document.getElementById("results");
     27        var li = document.createElement("li");
     28        li.appendChild(document.createTextNode(str));
     29        results.appendChild(li);
     30    }
     31
     32    if (window.layoutTestController)
     33        layoutTestController.dumpAsText();
     34
    4535    if (window.accessibilityController) {
    4636        var usingNone = getAccessibilityObject("using-none");
    47         shouldBe("usingNone.title", '"AXTitle: Alpha"');
    48         shouldBe("usingNone.description", '"AXDescription: "');
     37        output("usingNone.title: [" + usingNone.title + "]");
     38        output("usingNone.description:  [" + usingNone.description + "]");
    4939
    5040        var usingLabel = getAccessibilityObject("using-label");
    51         shouldBe("usingLabel.title", '"AXTitle: Beta"');
    52         shouldBe("usingLabel.description", '"AXDescription: Gamma"');
     41        output("usingLabel.title: [" + usingLabel.title + "]");
     42        output("usingLabel.description:  [" + usingLabel.description + "]");
    5343
    5444        var usingLabelledby = getAccessibilityObject("using-labelledby");
    55         shouldBe("usingLabelledby.title", '"AXTitle: Delta"');
    56         shouldBe("usingLabelledby.description", '"AXDescription: Epsilon"');
     45        output("usingLabelledby.title: [" + usingLabelledby.title + "]");
     46        output("usingLabelledby.description:  [" + usingLabelledby.description + "]");
    5747
    5848        var usingLabeledby = getAccessibilityObject("using-labeledby");
    59         shouldBe("usingLabeledby.title", '"AXTitle: Eta"');
    60         shouldBe("usingLabeledby.description", '"AXDescription: Theta"');
     49        output("usingLabeledby.title: [" + usingLabeledby.title + "]");
     50        output("usingLabeledby.description:  [" + usingLabeledby.description + "]");
    6151    }
    6252
     
    6454</script>
    6555
    66 <script src="../fast/js/resources/js-test-post.js"></script>
    6756</body>
    6857</html>
  • trunk/LayoutTests/platform/win/accessibility/aria-labelledby-overrides-aria-label-expected.txt

    r89565 r90226  
    1 Alpha Beta Delta Eta Epsilon Theta
    21This tests that if aria-labelledby is used, then aria-label attributes are not used.
    32
    4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     3Alpha Beta Delta Eta Epsilon Theta
     4usingNone.title: [Alpha]
     5usingNone.description: []
     6usingLabel.title: [Beta]
     7usingLabel.description: [Description: Gamma]
     8usingLabelledby.title: [Epsilon]
     9usingLabelledby.description: [Description: Epsilon]
     10usingLabeledby.title: [Theta]
     11usingLabeledby.description: [Description: Theta]
    512
    6 
    7 FAIL usingNone.title should be AXTitle: Alpha. Was Alpha.
    8 FAIL usingNone.description should be AXDescription: . Was .
    9 FAIL usingLabel.title should be AXTitle: Beta. Was Beta.
    10 FAIL usingLabel.description should be AXDescription: Gamma. Was Description: Gamma.
    11 FAIL usingLabelledby.title should be AXTitle: Delta. Was Delta.
    12 FAIL usingLabelledby.description should be AXDescription: Epsilon. Was Description: Epsilon.
    13 FAIL usingLabeledby.title should be AXTitle: Eta. Was Eta.
    14 FAIL usingLabeledby.description should be AXDescription: Theta. Was Description: Theta.
    15 PASS successfullyParsed is true
    16 
    17 TEST COMPLETE
    18 
Note: See TracChangeset for help on using the changeset viewer.