summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/form-collection-radio-node-list-expected.txt
blob: a9a290a4cae15c81c0c05ab9393330ffcf44102b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CONSOLE WARNING: The <keygen> element is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5716060992962560 for more details.
CONSOLE WARNING: The specified value "inputRadioValue" does not conform to the required format, "yyyy-MM-dd".
This test is for RadioNodeList specified at http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#radionodelist

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".



PASS owner.elements.length is 23
PASS radioNodeList.length is 4
PASS radioNodeList[0].value is 'searching'
PASS radioNodeList[1].value is '123'
PASS radioNodeList[2].value is 'inputRadioValue'
PASS radioNodeList[3].value is 'buttonValue'

Changing the input value to check RadioNodeList is live view of FormCollection
PASS radioNodeList[1].value is '456'

Checking value IDL attribute on the RadioNodeList
PASS radioNodeList.value is ""
PASS radioNodeList.value = "inputRadioValue"; radioNodeList[2].checked is true
PASS Object.prototype.toString.call(radioNodeList[2]) is '[object HTMLInputElement]'
PASS radioNodeList[2].type is 'radio'
PASS radioNodeList.value is ""
PASS radioNodeList[2].checked = true; radioNodeList.value is 'inputRadioValue'

Check RadioNodeList is updated after adding a new element
PASS owner.appendChild(newElement); radioNodeList.length is 5
PASS radioNodeList[4].value is 'new element'

Check RadioNodeList is updated after remove an element
PASS owner.removeChild(newElement); radioNodeList.length is 4
PASS radioNodeList[3].value is 'buttonValue'

Check RadioNodeList is updated after adding a new element
PASS container.appendChild(nonSubtreeElement); radioNodeList.length is 5
PASS owner.elements.length is 24
PASS radioNodeList[4].value is 'non subtree element'

Check RadioNodeList is updated after change in id, type and checked state of an element
PASS radioNodeList.length is 5
After changing the id
PASS radioNodeList.length is 4
PASS elementsList[13].checked = false; radioNodeList.value is ""
PASS elementsList[13].checked = true; radioNodeList.value is 'inputRadioValue'
PASS elementsList[13].type = "date"; radioNodeList.value is ''

Check second RadioNodeList is also created properly
PASS radioNodeList2.length is 3
PASS radioNodeList2[0].type is 'text'
PASS radioNodeList2[1].type is 'email'
PASS radioNodeList2[2].type is 'reset'
After changing the id
PASS radioNodeList2.length is 2

Check that object element also reflects in RadioNodeList.
PASS radioNodeList.length is 5

Check that object element does not reflect in RadioNodeList if its owner form is not present.
PASS container.appendChild(nonSubtreeObjectElement); radioNodeList.length is 5
PASS successfullyParsed is true

TEST COMPLETE