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

Side by Side Diff: LayoutTests/fast/dom/Document/createAttributeNS-namespace-err-expected.txt

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
(Empty)
1 createAttirbuteNS tests adapted from createElementNS tests attached to webkit bu g 16833
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS document.createAttributeNS().toString() is "[object Attr]"
7 PASS document.createAttributeNS("http://www.example.com").toString() is "[object Attr]"
8 PASS createAttributeNS(undefined, undefined)
9 PASS createAttributeNS(null, undefined)
10 PASS createAttributeNS(undefined, null); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty.
11 PASS createAttributeNS(null, null); threw InvalidCharacterError: Failed to execu te 'createAttributeNS' on 'Document': The qualified name provided is empty.
12 PASS createAttributeNS(null, ""); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty.
13 PASS createAttributeNS("", null); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty.
14 PASS createAttributeNS("", ""); threw InvalidCharacterError: Failed to execute ' createAttributeNS' on 'Document': The qualified name provided is empty.
15 PASS createAttributeNS(null, "<div>"); threw InvalidCharacterError: Failed to ex ecute 'createAttributeNS' on 'Document': The qualified name provided ('<div>') c ontains the invalid name-start character '<'.
16 PASS createAttributeNS(null, "0div"); threw InvalidCharacterError: Failed to exe cute 'createAttributeNS' on 'Document': The qualified name provided ('0div') con tains the invalid name-start character '0'.
17 PASS createAttributeNS(null, "di v"); threw InvalidCharacterError: Failed to exe cute 'createAttributeNS' on 'Document': The qualified name provided ('di v') con tains the invalid character ' '.
18 PASS createAttributeNS(null, "di<v"); threw InvalidCharacterError: Failed to exe cute 'createAttributeNS' on 'Document': The qualified name provided ('di<v') con tains the invalid character '<'.
19 PASS createAttributeNS(null, "-div"); threw InvalidCharacterError: Failed to exe cute 'createAttributeNS' on 'Document': The qualified name provided ('-div') con tains the invalid name-start character '-'.
20 PASS createAttributeNS(null, ".div"); threw InvalidCharacterError: Failed to exe cute 'createAttributeNS' on 'Document': The qualified name provided ('.div') con tains the invalid name-start character '.'.
21 PASS createAttributeNS("http://example.com/", "<div>"); threw InvalidCharacterEr ror: Failed to execute 'createAttributeNS' on 'Document': The qualified name pro vided ('<div>') contains the invalid name-start character '<'.
22 PASS createAttributeNS("http://example.com/", "0div"); threw InvalidCharacterErr or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov ided ('0div') contains the invalid name-start character '0'.
23 PASS createAttributeNS("http://example.com/", "di<v"); threw InvalidCharacterErr or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov ided ('di<v') contains the invalid character '<'.
24 PASS createAttributeNS("http://example.com/", "-div"); threw InvalidCharacterErr or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov ided ('-div') contains the invalid name-start character '-'.
25 PASS createAttributeNS("http://example.com/", ".div"); threw InvalidCharacterErr or: Failed to execute 'createAttributeNS' on 'Document': The qualified name prov ided ('.div') contains the invalid name-start character '.'.
26 PASS createAttributeNS(null, ":div"); threw NamespaceError: Failed to execute 'c reateAttributeNS' on 'Document': The qualified name provided (':div') has an emp ty namespace prefix.
27 PASS createAttributeNS(null, "div:"); threw NamespaceError: Failed to execute 'c reateAttributeNS' on 'Document': The qualified name provided ('div:') has an emp ty local name.
28 PASS createAttributeNS("http://example.com/", ":div"); threw NamespaceError: Fai led to execute 'createAttributeNS' on 'Document': The qualified name provided (' :div') has an empty namespace prefix.
29 PASS createAttributeNS("http://example.com/", "div:"); threw NamespaceError: Fai led to execute 'createAttributeNS' on 'Document': The qualified name provided (' div:') has an empty local name.
30 PASS createAttributeNS(null, "d:iv"); threw NamespaceError: Failed to execute 'c reateAttributeNS' on 'Document': The namespace URI provided ('') is not valid fo r the qualified name provided ('d:iv').
31 PASS createAttributeNS(null, "a:b:c"); valid XML name, invalid QName; threw Name spaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified n ame provided ('a:b:c') contains multiple colons.
32 PASS createAttributeNS("http://example.com/", "a:b:c"); valid XML name, invalid QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document' : The qualified name provided ('a:b:c') contains multiple colons.
33 PASS createAttributeNS(null, "a::c"); valid XML name, invalid QName; threw Names paceError: Failed to execute 'createAttributeNS' on 'Document': The qualified na me provided ('a::c') contains multiple colons.
34 PASS createAttributeNS("http://example.com/", "a::c"); valid XML name, invalid Q Name; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a::c') contains multiple colons.
35 PASS createAttributeNS("http://example.com/", "a:0"); valid XML name, not a vali d QName; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on ' Document': The qualified name provided ('a:0') contains the invalid name-start c haracter '0'.
36 PASS createAttributeNS("http://example.com/", "0:a"); 0 at start makes it not a valid XML name; threw InvalidCharacterError: Failed to execute 'createAttributeN S' on 'Document': The qualified name provided ('0:a') contains the invalid name- start character '0'.
37 PASS createAttributeNS("http://example.com/", "a:_")
38 FAIL createAttributeNS("http://example.com/", "a:ெ"); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR); expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR
39 PASS createAttributeNS("http://example.com/", "ெ:a"); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid as this is both an invalid XML name and an invalid QName); threw InvalidCharact erError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('ெ:a') contains the invalid name-start character 'ெ'.
40 PASS createAttributeNS("http://example.com/", "a:aெ")
41 PASS createAttributeNS("http://example.com/", "aெ:a")
42 PASS createAttributeNS("http://example.com/", "xml:test"); binding xml prefix wr ong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('http://example.com/') is not valid for the qualifie d name provided ('xml:test').
43 PASS createAttributeNS("http://example.com/", "xmlns:test"); binding xmlns prefi x wrong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Documen t': The namespace URI provided ('http://example.com/') is not valid for the qual ified name provided ('xmlns:test').
44 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "x:test"); binding names pace namespace to wrong prefix; threw NamespaceError: Failed to execute 'createA ttributeNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/x mlns/') is not valid for the qualified name provided ('x:test').
45 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test")
46 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test")
47 PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test")
48 PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns")
49 PASS createAttributeNS("http://example.com/", "xmlns"); threw NamespaceError: Fa iled to execute 'createAttributeNS' on 'Document': The namespace URI provided (' http://example.com/') is not valid for the qualified name provided ('xmlns').
50 PASS successfullyParsed is true
51
52 TEST COMPLETE
53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698