Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: LayoutTests/fast/dom/Range/compareBoundaryPoints-error.html

Issue 405083003: Range.compareBoundaryPoints should throw a NotSupportedError when how has not expected value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take review comment into consideration Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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: Faile d to execute \'compareBoundaryPoints\' on \'Range\': 2 arguments required, but o nly 1 present."');
12 shouldThrow("r1.compareBoundaryPoints(-1, r2)", '"NotSupportedError: Failed to e xecute \'compareBoundaryPoints\' on \'Range\': The comparison method provided mu st be one of \'START_TO_START\', \'START_TO_END\', \'END_TO_END\', or \'END_TO_S TART\'."');
13 shouldThrow("r1.compareBoundaryPoints(4, r2)", '"NotSupportedError: Failed to ex ecute \'compareBoundaryPoints\' on \'Range\': The comparison method provided mus t be one of \'START_TO_START\', \'START_TO_END\', \'END_TO_END\', or \'END_TO_ST ART\'."');
14 </script>
15 </body>
16 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt » ('j') | Source/core/dom/Range.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698