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

Unified Diff: LayoutTests/fast/dom/Node/append-child-error.html

Issue 375213003: Node.appendChild should throw TypeError when newChild is omitted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/append-child-error-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Node/append-child-error.html
diff --git a/LayoutTests/fast/dom/Node/append-child-error.html b/LayoutTests/fast/dom/Node/append-child-error.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2cf351f49e624b57ebfd3f0d31fd31a87ca642e
--- /dev/null
+++ b/LayoutTests/fast/dom/Node/append-child-error.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Node.appendChild TypeError</title>
haraken 2014/07/09 08:31:10 Remove this.
kangil_ 2014/07/09 08:36:10 Done.
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="log"></div>
haraken 2014/07/09 08:31:10 Remove this.
kangil_ 2014/07/09 08:36:10 Done.
+</head>
+<body>
+This test case verifies if relevant TypeError is thrown when invalid Node argument is given.
+<script>
+test(function() {
+ assert_throws(new TypeError(), function() { document.body.appendChild() })
+ assert_throws(new TypeError(), function() { document.body.appendChild(null) })
+ assert_throws(new TypeError(), function() { document.body.appendChild({'a':'b'}) })
+}, "WebIDL tests")
haraken 2014/07/09 08:31:10 WebIDL tests => Node.appendChild should throw Type
kangil_ 2014/07/09 08:36:10 Done.
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/append-child-error-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698