blob: 44fb2f00dd404f26b9500ca3906346e1b40752bb [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<style>
.test {
font-size: 100px;
};
.test2 {
font-weight: bold;
};
</style>
</head>
<body id="body">
<div id="item1" class="test test2">content</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the DOM id and the DOM class list can be retrieved");
if (window.accessibilityController) {
var item = accessibilityController.accessibleElementById("item1");
shouldBeTrue("item.isAttributeSupported('AXDOMIdentifier')");
shouldBe("item.stringAttributeValue('AXDOMIdentifier')", "'item1'");
shouldBeTrue("item.isAttributeSupported('AXDOMClassList')");
shouldBe("item.classList", "'test, test2'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>