<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<div class="container">
<svg id="svg1">
<title>svg1-title</title>
</svg>
</div>
<script>
test(function(t) {
var axSvg1 = accessibilityController.accessibleElementById("svg1");
assert_equals(axSvg1.name, "svg1-title");
assert_equals(axSvg1.nameFrom, "relatedElement");
}, "SVG element with title element");
</script>