Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / surroundContents-for-invalid-state-error.html
bloba9da9ac3f23feca3109fa553fa9a0e74dab3beb5
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <div id='test'>
7 <p id='start'>start</p>
8 <p id='end'>end</p>
9 </div>
10 <script>
11 var range = document.createRange();
12 var start = document.getElementById('start');
13 var end = document.getElementById('end');
14 range.setStart(start.firstChild, 0);
15 range.setEnd(end.firstChild, 0);
17 shouldThrow("range.surroundContents(start)", '"InvalidStateError: Failed to execute \'surroundContents\' on \'Range\': The Range has partially selected a non-Text node."');
19 if (window.testRunner)
20 document.getElementById('test').outerHTML = '';
21 </script>
22 </body>
23 </html>