blob: 01790805e14637a4e651090782482e9bd2a8f370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!DOCTYPE html>
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<p>This test checks the object 'host.createShadowRoot()' and internals.shadowRoot(div) are the same.</p>
<pre id="console"></pre>
<script>
function doTest() {
if (!window.internals) {
debug('This test runs on DRT only');
return;
}
div = document.createElement('div');
// we should call webKitCreateShadowRoot first.
root1 = div.createShadowRoot();
root2 = internals.shadowRoot(div);
shouldBe('root1', 'root2');
}
doTest();
var successfullyParsed = true;
</script>
</body>
</html>
|