Pass | On getting, the length attribute must return the number of nodes represented by the collection. | Asserts runPass | assert_equals(4, 4)
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:23:5) |
|
Pass | Changing the length adds new nodes; The number of new nodes = new length minus old length | Asserts runPass | assert_equals(7, 7, "Number of nodes in collection should have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:28:5) | Pass | assert_equals(7, 7, "Number of children should have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:30:5) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:34:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:36:9) | Pass | assert_equals(0, 0, "new child should not have attributes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:38:9) | Pass | assert_equals(0, 0, "new child should not have child nodes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:40:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:34:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:36:9) | Pass | assert_equals(0, 0, "new child should not have attributes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:38:9) | Pass | assert_equals(0, 0, "new child should not have child nodes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:40:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:34:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:36:9) | Pass | assert_equals(0, 0, "new child should not have attributes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:38:9) | Pass | assert_equals(0, 0, "new child should not have child nodes")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:40:9) |
|
Pass | New nodes have no value | Asserts runPass | assert_array_equals(["1", "2", "3", "4", "", "", ""], ["1", "2", "3", "4", "", "", ""])
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:50:5) |
|
Pass | Setting a length equal to existing length changes nothing | Asserts runPass | assert_equals(7, 7, "Number of nodes in collection should not have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:55:5) | Pass | assert_equals(7, 7, "Number of children should not have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:57:5) |
|
Pass | Setting a length lower than the old length trims nodes from the end | Asserts runPass | assert_equals(undefined, undefined, "previously set node is now undefined")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:63:5) | Pass | assert_equals(4, 4, "Number of nodes in collection is correctly changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:65:5) | Pass | assert_equals(4, 4, "Number of children should have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:67:5) |
|
Pass | Setting element to null by index removed the element | Asserts runPass | assert_equals(undefined, undefined, "previously set node is now undefined")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:74:5) | Pass | assert_equals(3, 3, "Number of nodes in collection is correctly changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:76:5) | Pass | assert_equals(3, 3, "Number of children should have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:78:5) |
|
Pass | Setting element by index should correctly append and replace elements | Asserts runPass | assert_array_equals(["a", "2", "3", "", "", "-1"], ["a", "2", "3", "", "", "-1"])
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:95:5) |
|
Pass | Changing the length adds new nodes; The new nodes will not copy select's prefix | Asserts runPass | assert_equals(5, 5, "Number of nodes in collection should have changed")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:103:5) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:107:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:109:9) | Pass | assert_equals(null, null, "new child should not copy select's prefix")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:111:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:107:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:109:9) | Pass | assert_equals(null, null, "new child should not copy select's prefix")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:111:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:107:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:109:9) | Pass | assert_equals(null, null, "new child should not copy select's prefix")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:111:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:107:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:109:9) | Pass | assert_equals(null, null, "new child should not copy select's prefix")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:111:9) | Pass | assert_equals("option", "option", "new child should be an option")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:107:9) | Pass | assert_equals("http://www.w3.org/1999/xhtml", "http://www.w3.org/1999/xhtml", "new child should be an HTML element")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:109:9) | Pass | assert_equals(null, null, "new child should not copy select's prefix")
at Test.<anonymous> ( /html/semantics/forms/the-select-element/common-HTMLOptionsCollection.html:111:9) |
|