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

Side by Side Diff: LayoutTests/fast/dom/Element/attribute-uppercase-expected.txt

Issue 250993003: Make getAttributeNS return null instead of empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | Source/core/dom/Element.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This test checks whether attribute names with uppercase work properly in HTML do cuments. 1 This test checks whether attribute names with uppercase work properly in HTML do cuments.
2 2
3 Add an attribute: 3 Add an attribute:
4 4
5 setAttribute(attr_name) 5 setAttribute(attr_name)
6 6
7 The following should be non-empty, true, or non-null. 7 The following should be non-empty, true, or non-null.
8 8
9 getAttribute(attr_name) = attr_value 9 getAttribute(attr_name) = attr_value
10 hasAttribute(attr_name) = true 10 hasAttribute(attr_name) = true
11 getAttributeNode(attr_name) = [object Attr] 11 getAttributeNode(attr_name) = [object Attr]
12 attributes.getNamedItem(attr_name) = [object Attr] 12 attributes.getNamedItem(attr_name) = [object Attr]
13 13
14 getAttributeNS(attr_name) = attr_value 14 getAttributeNS(attr_name) = attr_value
15 hasAttributeNS(attr_name) = true 15 hasAttributeNS(attr_name) = true
16 getAttributeNodeNS(attr_name) = [object Attr] 16 getAttributeNodeNS(attr_name) = [object Attr]
17 attributes.getNamedItemNS(attr_name) = [object Attr] 17 attributes.getNamedItemNS(attr_name) = [object Attr]
18 18
19 getAttribute(ATTR_NAME) = attr_value 19 getAttribute(ATTR_NAME) = attr_value
20 hasAttribute(ATTR_NAME) = true 20 hasAttribute(ATTR_NAME) = true
21 getAttributeNode(ATTR_NAME) = [object Attr] 21 getAttributeNode(ATTR_NAME) = [object Attr]
22 attributes.getNamedItem(ATTR_NAME) = [object Attr] 22 attributes.getNamedItem(ATTR_NAME) = [object Attr]
23 23
24 The following should be empty, false, or null. 24 The following should be empty, false, or null.
25 25
26 getAttributeNS(ATTR_NAME) = 26 getAttributeNS(ATTR_NAME) = null
27 hasAttributeNS(ATTR_NAME) = false 27 hasAttributeNS(ATTR_NAME) = false
28 getAttributeNodeNS(ATTR_NAME) = null 28 getAttributeNodeNS(ATTR_NAME) = null
29 attributes.getNamedItemNS(ATTR_NAME) = null 29 attributes.getNamedItemNS(ATTR_NAME) = null
30 30
31 The following should successfully remove the attribute. 31 The following should successfully remove the attribute.
32 32
33 setAttribute(attr_name); removeAttribute(attr_name) 33 setAttribute(attr_name); removeAttribute(attr_name)
34 hasAttribute(attr_name) = false 34 hasAttribute(attr_name) = false
35 setAttribute(attr_name); removeAttributeNS(attr_name) 35 setAttribute(attr_name); removeAttributeNS(attr_name)
36 hasAttribute(attr_name) = false 36 hasAttribute(attr_name) = false
(...skipping 20 matching lines...) Expand all
57 The following should set a lowercase attribute, so the result should be true. 57 The following should set a lowercase attribute, so the result should be true.
58 58
59 setAttributeNS(attr_name) 59 setAttributeNS(attr_name)
60 hasAttribute(attr_name) = true 60 hasAttribute(attr_name) = true
61 61
62 The following should set an uppercase attribute, so the result should be false. 62 The following should set an uppercase attribute, so the result should be false.
63 63
64 setAttributeNS(ATTR_NAME) 64 setAttributeNS(ATTR_NAME)
65 hasAttribute(attr_name) = false 65 hasAttribute(attr_name) = false
66 66
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698