Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / range-surroundContents-with-preceding-node.html
blob1bf8528ac54ce9f8720da649372509d3527969c8
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <div id="root">
6 <div id="targetForSurround"></div>
7 <div id="description">Test that there is no crash when surroundContents is called with a node preceding the current selection.</div>
8 <div id="trailingNode"></div>
9 </div>
10 <script>
11 var range = document.createRange();
12 var rootNode = document.getElementById("root");
13 range.setStart(rootNode, 4);
14 range.setEnd(rootNode, 6);
15 var parentElement = document.getElementById("targetForSurround");
16 range.surroundContents(parentElement);
18 shouldBe('range.startContainer.id', 'rootNode.id');
19 shouldBe('range.startOffset', '3');
20 shouldBe('range.endContainer.id', 'rootNode.id');
21 shouldBe('range.startOffset', '3');
22 </script>
23 </body>
24 </html>