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

Unified Diff: LayoutTests/fast/dom/Range/invalid-arguments.html

Issue 974823002: Add [TypeChecking=Interface] to Range interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME comments Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/invalid-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Range/invalid-arguments.html
diff --git a/LayoutTests/fast/dom/Range/invalid-arguments.html b/LayoutTests/fast/dom/Range/invalid-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..3642c90ca779f426337605b5896fea4ae685ed66
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/invalid-arguments.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+var range = document.createRange();
+var noNode = {};
+var noRange = document.body;
+[
+ "compareBoundaryPoints(0, noRange)",
+ "compareNode(noNode)",
+ "comparePoint(noNode, 0)",
+ "insertNode(noNode)",
+ "intersectsNode(noNode)",
+ "isPointInRange(noNode, 0)",
+ "selectNode(noNode)",
+ "selectNodeContents(noNode)",
+ "setEnd(noNode, 0)",
+ "setEndAfter(noNode)",
+ "setEndBefore(noNode)",
+ "setStart(noNode, 0)",
+ "setStartAfter(noNode)",
+ "setStartBefore(noNode)",
+ "surroundContents(noNode)"
+].forEach(function(expr)
+{
+ shouldThrow("range." + expr);
+});
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/invalid-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698