Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / compareBoundaryPoints-error.html
blob33c83e8cd84919cb6d1adb3f1b3cbaeb5c81b4ff
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Document.adoptNode</title>
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 var r1 = document.createRange();
10 var r2 = document.createRange();
11 shouldThrow("r1.compareBoundaryPoints(Range.START_TO_START)", '"TypeError: Failed to execute \'compareBoundaryPoints\' on \'Range\': 2 arguments required, but only 1 present."');
12 shouldThrow("r1.compareBoundaryPoints(-1, r2)", '"NotSupportedError: Failed to execute \'compareBoundaryPoints\' on \'Range\': The comparison method provided must be one of \'START_TO_START\', \'START_TO_END\', \'END_TO_END\', or \'END_TO_START\'."');
13 shouldThrow("r1.compareBoundaryPoints(4, r2)", '"NotSupportedError: Failed to execute \'compareBoundaryPoints\' on \'Range\': The comparison method provided must be one of \'START_TO_START\', \'START_TO_END\', \'END_TO_END\', or \'END_TO_START\'."');
14 </script>
15 </body>
16 </html>