1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
8 <div role=
"button" id=
"button1">
15 <div id=
"console"></div>
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();
20 description("This tests that when a link is inside a button, its visible text is still available for the button.");
21 if (window
.accessibilityController
) {
22 var button1
= accessibilityController
.accessibleElementById("button1");
23 shouldBe("button1.deprecatedTitle", "'AXTitle: foo1'");
24 var button2
= accessibilityController
.accessibleElementById("button2");
25 shouldBe("button2.deprecatedTitle", "'AXTitle: foo2'");
26 document
.getElementById("content").style
.visibility
= 'hidden';