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

Side by Side Diff: LayoutTests/fast/dom/Element/script-tests/attr-param-typechecking.js

Issue 740223003: Revive tests for Document.createAttributeNS() and Element.setAttributeNodeNS() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: deprecation messages Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 description( 1 description(
2 'This test checks whether passing wrong types to setAttributeNode causes a crash .' 2 'This test checks whether passing wrong types to setAttributeNode causes a crash .'
3 ); 3 );
4 4
5 var element = document.createElement("input"); 5 var element = document.createElement("input");
6 6
7 shouldThrow('element.setAttributeNode("style");'); 7 shouldThrow('element.setAttributeNode("style");');
8 shouldThrow('element.setAttributeNode(null);'); 8 shouldThrow('element.setAttributeNode(null);');
9 shouldThrow('element.setAttributeNode(undefined);'); 9 shouldThrow('element.setAttributeNode(undefined);');
10 shouldThrow('element.setAttributeNode(new Object);'); 10 shouldThrow('element.setAttributeNode(new Object);');
11 shouldThrow('element.removeAttributeNode("style");'); 11 shouldThrow('element.removeAttributeNode("style");');
12 shouldThrow('element.removeAttributeNode(null);'); 12 shouldThrow('element.removeAttributeNode(null);');
13 shouldThrow('element.removeAttributeNode(undefined);'); 13 shouldThrow('element.removeAttributeNode(undefined);');
14 shouldThrow('element.removeAttributeNode(new Object);'); 14 shouldThrow('element.removeAttributeNode(new Object);');
15 shouldThrow('element.setAttributeNodeNS("style");');
16 shouldThrow('element.setAttributeNodeNS(null);');
17 shouldThrow('element.setAttributeNodeNS(undefined);');
18 shouldThrow('element.setAttributeNodeNS(new Object);');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698