blob: 1a7efb78b6c9f172d0d69bfb9c9f085b569994a5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script src="resources/shadow-dom.js"></script>
</head>
<body>
<script>
description("Tests for getDestinationInsertionPoints() which involves a shadow insertion point.");
document.body.appendChild(
createDOM('div', {},
createDOM('div', {'id': 'host'},
createShadowRoot(
createDOM('div', {'id': 'child'})),
createShadowRoot(
createDOM('shadow', {'id': 'shadow'})))));
shouldBeEqualAsArray(getNodeInComposedTree('host/child').getDestinationInsertionPoints(),
[getNodeInComposedTree('host//shadow')]);
</script>
</body>
</html>