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

Side by Side 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: 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/append-child-error-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 </head>
7 <body>
8 This test case verifies if relevant TypeError is thrown when invalid Node argume nt is given.
9 <script>
10 test(function() {
11 assert_throws(new TypeError(), function() { document.body.appendChild() })
12 assert_throws(new TypeError(), function() { document.body.appendChild(null) })
13 assert_throws(new TypeError(), function() { document.body.appendChild({'a':' b'}) })
14 }, "Node.appendChild should throw TypeError when a wrong type of argument is pas sed.")
15 </script>
16 </body>
17 </html>
OLDNEW
« 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