Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / select-node-different-document.html
blob560052f600961e0475b8002cdba613fe3c3d91ac
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <body>
8 <iframe src="about:blank"></iframe>
9 <script>
10 description("Test whether Range.selectNode and Range.selectNodeContents work across documents");
12 var otherDocument = document.implementation.createDocument(null, "doc", null);
13 var elem = otherDocument.createElement("elem");
14 otherDocument.documentElement.appendChild(elem);
16 var selectNodeRange = document.createRange();
17 selectNodeRange.selectNode(elem);
19 shouldBeTrue("selectNodeRange.startContainer === otherDocument.documentElement");
20 shouldBeTrue("selectNodeRange.endContainer === otherDocument.documentElement");
21 shouldBeTrue("selectNodeRange.startContainer.ownerDocument === otherDocument");
22 shouldBeTrue("selectNodeRange.endContainer.ownerDocument === otherDocument");
23 shouldBeTrue("selectNodeRange.cloneContents().ownerDocument === otherDocument");
25 var selectNodeContentsRange = document.createRange();
26 selectNodeContentsRange.selectNodeContents(elem);
28 shouldBeTrue("selectNodeRange.startContainer === otherDocument.documentElement");
29 shouldBeTrue("selectNodeRange.endContainer === otherDocument.documentElement");
30 shouldBeTrue("selectNodeContentsRange.startContainer.ownerDocument === otherDocument");
31 shouldBeTrue("selectNodeContentsRange.endContainer.ownerDocument === otherDocument");
32 shouldBeTrue("selectNodeRange.cloneContents().ownerDocument === otherDocument");
33 </script>
34 </body>
35 </html>