Side by Side Diff: LayoutTests/fast/js/script-tests/dot-node-base-exception.js
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.
2 "This test checks that a correct exception is raised when calculating the base v
alue of a dot expression fails."
2 "This test checks that a correct exception is raised when calculating the base v
alue of a dot expression fails."
3 );
3 );
4
4
5// Should be a DOM exception, not just some "TypeError: Null value".
5// Should throw TypeError with appropriate message.
6shouldThrow('(document.appendChild()).foobar()', '"NotFoundError: Failed to execute \'appendChild\' on \'Node\': The new child element is null."');
6shouldThrow('(document.appendChild()).foobar()', '"TypeError: Failed to execute \'appendChild\' on \'Node\': 1 argument required, but only 0 present."');
Issue 375213003: Node.appendChild should throw TypeError when newChild is omitted
(Closed)
Created 6 years, 5 months ago by kangil_
Modified 6 years, 5 months ago
Reviewers: tkent, haraken
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 6