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

Unified Diff: LayoutTests/fast/dom/DOMImplementation/missing-arguments.html

Issue 104503006: Sync DOMImplementation IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test Created 7 years 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/DOMImplementation/missing-arguments.html
diff --git a/LayoutTests/fast/dom/DOMImplementation/missing-arguments.html b/LayoutTests/fast/dom/DOMImplementation/missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f3b08ef4fdab4a14ba6d23196b59d79b36b1db9
--- /dev/null
+++ b/LayoutTests/fast/dom/DOMImplementation/missing-arguments.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+[
+ "createDocument()",
+ "createDocument('http://example.com/')",
+ "createDocumentType()",
+ "createDocumentType('svg:svg')",
+ "createDocumentType('svg:svg', '-//W3C//DTD SVG 1.1//EN')",
+ "hasFeature()",
+ "hasFeature('')"
+].forEach(function(expr)
+{
+ shouldThrow("document.implementation." + expr);
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698