Summary

Harness status: OK

Found 16 tests

Details

ResultTest NameMessage
PassThe length attribute must return the number of elements in the form
Asserts run
Pass
assert_equals(1, 1, "The length attribute is incorrect.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:42:3)
Pass
assert_equals(4, 4, "The length attribute is incorrect.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:43:3)
PassHTMLFormControlsCollection.item(index) must return the indexed item
Asserts run
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "HTMLFormControlsCollection.item(index) should return the 'input' element in radio status.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:48:3)
PassHTMLFormControlsCollection[index] must return the indexed item
Asserts run
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "HTMLFormControlsCollection[index] should return the 'input' element in radio status.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:52:3)
PassHTMLFormControlsCollection is not callable
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { coll1("r1") }")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:57:3)
PassHTMLFormControlsCollection[name] must return the named item
Asserts run
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "HTMLFormControlsCollection[name] should return the 'input' element in radio status.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:61:3)
PassHTMLFormControlsCollection.namedItem(name) must return the named item
Asserts run
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "HTMLFormControlsCollection.namedItem(name) should return the 'input' element in radio status.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:66:3)
PassThe namedItem(name) must return an Element
Asserts run
Pass
assert_true(true, "Can not return 'Element' object.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:70:3)
PassThe namedItem(name) must return RadioNodeList
Asserts run
Pass
assert_true(true, "Can not return 'RadioNodeList' object.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:74:3)
PassThe namedItem(name) must return null if the name is empty
Asserts run
Pass
assert_equals(null, null, "The return value of namedItem() should be null.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:78:3)
PassThe namedItem(name) must return null if there is no matched element
Asserts run
Pass
assert_equals(null, null, "The return value of namedItem() should be null.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:82:3)
PassControls can be indexed by id or name attribute
Asserts run
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "Controls can be named by 'id' attribute.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:86:3)
Pass
assert_equals(Element node <input type="radio" id="r1" name="ra"></input>, Element node <input type="radio" id="r1" name="ra"></input>, "Controls can be named by 'name' attribute.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:87:3)
PassKeygen controls do not show up at all
Asserts run
Pass
assert_equals(null, null, "Keygen does not show up when queried by id.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:91:3)
Pass
assert_equals(null, null, "Keygen does not show up when queried by name.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:92:3)
PassThe namedItem(name) must return the items with id or name attribute
Asserts run
Pass
assert_equals(2, 2, "The length attribute should be 2.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:96:3)
PassThe HTMLFormControlsCollection interface is used for collections of listed elements in form element
Asserts run
Pass
assert_equals(7, 7, "The length should be 7.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:109:5)
PassThe HTMLFormControlsCollection interface is used for collections of listed elements in fieldset element
Asserts run
Pass
assert_equals(7, 7, "The length should be 7.")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:109:5)
PassThe controls in the form element must be sorted in tree order
Asserts run
Pass
assert_array_equals(object "[object HTMLFormControlsCollection]", [Element node <output></output>, Element node <input type="checkbox" id="cb"></input>, Element node <input type="checkbox" name="cb"></input>, Element node <button id="btn"></button>, Element node <button name="btn"></button>])
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html:116:3)