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

Side by Side Diff: LayoutTests/fast/dom/Element/setAttributeNS-namespace-err-expected.txt

Issue 98543009: Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix failing tests 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 setAttributeNS tests adapted from createAttributeNS which in turn were adapted f rom createElementNS tests attached to webkit bug 16833 1 setAttributeNS tests adapted from createAttributeNS which in turn were adapted f rom createElementNS tests attached to webkit bug 16833
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS element.setAttributeNS() is undefined.
7 PASS element.setAttributeNS("http://www.example.com") is undefined.
8 PASS element.setAttributeNS("http://www.example.com", "foo") is undefined.
9 PASS element.setAttributeNS(undefined, undefined, 'value') 6 PASS element.setAttributeNS(undefined, undefined, 'value')
10 PASS element.setAttributeNS(null, undefined, 'value') 7 PASS element.setAttributeNS(null, undefined, 'value')
11 FAIL element.setAttributeNS(undefined, null, 'value') 8 FAIL element.setAttributeNS(undefined, null, 'value')
12 FAIL element.setAttributeNS(null, null, 'value') 9 FAIL element.setAttributeNS(null, null, 'value')
13 PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR 10 PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR
14 FAIL element.setAttributeNS("", null, 'value') 11 FAIL element.setAttributeNS("", null, 'value')
15 PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR 12 PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR
16 PASS element.setAttributeNS(null, "<div>", 'value'); threw INVALID_CHARACTER_ERR 13 PASS element.setAttributeNS(null, "<div>", 'value'); threw INVALID_CHARACTER_ERR
17 PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR 14 PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR
18 PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR 15 PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR
(...skipping 26 matching lines...) Expand all
45 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "x:test", 'value'); binding namespace namespace to wrong prefix; threw NAMESPACE_ERR 42 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "x:test", 'value'); binding namespace namespace to wrong prefix; threw NAMESPACE_ERR
46 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test", 'valu e') 43 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test", 'valu e')
47 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test", 'value') 44 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test", 'value')
48 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test", 'v alue') 45 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test", 'v alue')
49 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", 'value') 46 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", 'value')
50 PASS element.setAttributeNS("http://example.com/", "xmlns", 'value'); threw NAME SPACE_ERR 47 PASS element.setAttributeNS("http://example.com/", "xmlns", 'value'); threw NAME SPACE_ERR
51 PASS successfullyParsed is true 48 PASS successfullyParsed is true
52 49
53 TEST COMPLETE 50 TEST COMPLETE
54 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698