Summary

Harness status: OK

Found 24 tests

Details

ResultTest NameMessage
PassOriginal length
Asserts run
Pass
assert_equals(5, 5)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:56:3)
PassSetting length to original value has no effect
Asserts run
Pass
assert_equals(5, 5)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:63:3)
Pass
assert_equals("3", "3")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:64:3)
PassSetting length to shorter value
Asserts run
Pass
assert_equals(3, 3, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:71:3)
Pass
assert_array_equals(["1", "2", "3"], ["1", "2", "3"], "Correct elements remain")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:73:3)
Pass
assert_equals(11, 11, "Correct number of child nodes")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:74:3)
PassSetting length to longer value
Asserts run
Pass
assert_equals(7, 7, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:81:3)
Pass
assert_array_equals(["1", "2", "3", "4", "5", "", ""], ["1", "2", "3", "4", "5", "", ""], "Correct elements inserted")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:83:3)
Pass
assert_equals(15, 15, "Correct number of child nodes")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:84:3)
PassInsert <p><option>6</option></p> into <select>
Asserts run
Pass
assert_equals(5, 5, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:95:3)
Pass
assert_array_equals(["1", "2", "3", "4", "5"], ["1", "2", "3", "4", "5"], "Correct elements inserted")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:97:3)
PassInsert <select><option>6</option></select> into <select>
Asserts run
Pass
assert_equals(5, 5, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:108:3)
Pass
assert_array_equals(["1", "2", "3", "4", "5"], ["1", "2", "3", "4", "5"], "Correct elements inserted")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:110:3)
PassInsert <optgroup><option>6</option></optgroup> into <select>
Asserts run
Pass
assert_equals(6, 6, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:122:3)
Pass
assert_array_equals(["1", "2", "3", "4", "5", "6"], ["1", "2", "3", "4", "5", "6"], "Correct elements inserted")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:124:3)
PassInsert <optgroup><optgroup><option>6</option></optgroup></optgroup> into <select>
Asserts run
Pass
assert_equals(5, 5, "Correct length")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:137:3)
Pass
assert_array_equals(["1", "2", "3", "4", "5"], ["1", "2", "3", "4", "5"], "Correct elements inserted")
    at assert_values_equals ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:52:3)
Pass
assert_equals("3", "3", "Correct value set")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:139:3)
PassnamedItem id attribute
Asserts run
Pass
assert_equals("1", "1")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:143:3)
PassnamedItem name attribute
Asserts run
Pass
assert_equals("2", "2")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:147:3)
PassnamedItem doesn't match anything
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:151:3)
PassnamedItem multiple IDs
Asserts run
Pass
assert_equals("3", "3")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:155:3)
PassnamedItem multiple names
Asserts run
Pass
assert_equals("5", "5")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:159:3)
PassnamedItem multiple name and ID
Asserts run
Pass
assert_equals("7", "7")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:163:3)
PassnamedItem multiple name and ID with multiple attributes
Asserts run
Pass
assert_equals("9", "9")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:167:3)
PassnamedItem id attribute multiple attributes one element
Asserts run
Pass
assert_equals("11", "11")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:171:3)
PassnamedItem name attribute multiple attributes one element
Asserts run
Pass
assert_equals("11", "11")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:175:3)
PassHTMLOptionsCollection [index] method return the item with index
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:179:3)
Pass
assert_equals("1", "1")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:180:3)
PassHTMLOptionsCollection [name] method return the item with name
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:184:3)
Pass
assert_equals("2", "2")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:185:3)
PassHTMLOptionsCollection.item(index) method return the item with index
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:189:3)
Pass
assert_equals("1", "1")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:190:3)
PassHTMLOptionsCollection.item(name) method return the item with index 0
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:194:3)
Pass
assert_equals("1", "1")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:195:3)
PassHTMLOptionsCollection.add method insert HTMLOptionElement Option element
Asserts run
Pass
assert_equals("2", "2")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:201:3)
PassHTMLOptionsCollection.remove method remove Option element by index
Asserts run
Pass
assert_equals(11, 11)
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:207:3)
PassAdd non-option to collection
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {b_opts.add(add);}")
    at Test.<anonymous> ( /html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html:212:3)