blob: 21f20a391cc28d17045342c956da418eec887fe8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
var successfullyParsed = false;
</script>
</head>
<body id="body">
<svg>
<g role="listitem">
<rect id="rect" role="img" aria-label="very light magenta" x="40" y="246" width="20" height="20" class="key colour1"></rect>
<text x="65" y="261" font-size="12">36 to 45</text>
</g>
</svg>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that asking for the path from a SVG element that does not have one will not crash.");
if (window.accessibilityController) {
var rect = accessibilityController.accessibleElementById("rect");
// Don't crash!
debug(rect.pathDescription);
}
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>