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

Unified Diff: LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt
diff --git a/LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt b/LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5c04201554b52ffc59352d173bea3c212b60883a
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt
@@ -0,0 +1,7 @@
+PASS r1.compareBoundaryPoints(Range.START_TO_START) threw exception TypeError: Failed to execute 'compareBoundaryPoints' on 'Range': 2 arguments required, but only 1 present..
+PASS r1.compareBoundaryPoints(-1, r2) threw exception 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'..
+PASS r1.compareBoundaryPoints(4, r2) threw exception 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'..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698