<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
if (window.internals)
internals.settings.setAccessibilityIncludeSvgGElement(true);
</script>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="g1">
<text>Group 1 Text 1</text>
<text>Group 1 Text 2</text>
</g>
<g id="g2">
<text>Group 2 Text 1</text>
</g>
</svg>
<script>
test(function(t) {
var axGroup1 = accessibilityController.accessibleElementById('g1');
assert_equals(axGroup1.role, 'AXRole: AXGroup');
assert_equals(axGroup1.childAtIndex(0).role, 'AXRole: AXGenericContainer');
assert_false(axGroup1.isIgnored);
var axGroup2 = accessibilityController.accessibleElementById('g2');
assert_equals(axGroup2.role, 'AXRole: AXGroup');
assert_equals(axGroup2.childAtIndex(0).role, 'AXRole: AXGenericContainer');
assert_false(axGroup2.isIgnored);
}, 'When AccessibilityIncludeSvgGElement enabled, SVG groups are preserved and not ignored');
</script>