blob: 27ab9c838966d2b391e9f00363eda2e9d8c8aa8c [file] [log] [blame]
<!-- webkit-test-runner [ ModelElementEnabled=true ] -->
<html>
<head>
<script src="../resources/js-test.js"></script>
<script src="../resources/accessibility-helper.js"></script>
</head>
<body>
<model alt="Heart" id="model">
<source src="resources/heart.usdz">
</model>
<script>
description("This tests model elements have basic accessibility support");
if (window.accessibilityController) {
model = accessibilityController.accessibleElementById("model");
debug("Model description: " + model.description);
if (accessibilityController.platformName == "mac") {
shouldBe("model.role", "'AXRole: AXGroup'");
shouldBe("model.subrole", "'AXSubrole: AXModel'");
}
}
</script>
</body>
</html>