Pass | If there is one img, it should be returned (name) | Asserts runPass | assert_equals("test1", "test1")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:33:3) | Pass | assert_true(true, "\"test1\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:35:3) | Pass | assert_equals(Element node <img name="test1"></img>, Element node <img name="test1"></img>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:36:3) |
|
Pass | If there are two imgs, a collection should be returned. (name) | Asserts runPass | assert_equals("test2", "test2")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:41:3) | Pass | assert_equals("test2", "test2")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:43:3) | Pass | assert_true(true, "\"test2\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:45:3) | Pass | assert_class_string(object "[object HTMLCollection]", "HTMLCollection", "collection should be an HTMLCollection")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:47:3) | Pass | assert_array_equals(object "[object HTMLCollection]", [Element node <img name="test2"></img>, Element node <img name="test2"></img>])
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:48:3) |
|
Pass | If there is one img, it should not be returned (id) | Asserts runPass | assert_equals("test3", "test3")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:53:3) | Pass | assert_false(false, "\"test3\" in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:55:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:56:3) |
|
Pass | If there are two imgs, nothing should be returned. (id) | Asserts runPass | assert_equals("test4", "test4")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:61:3) | Pass | assert_equals("test4", "test4")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:63:3) | Pass | assert_false(false, "\"test4\" in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:65:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:66:3) |
|
Pass | If there are two imgs, the one with a name should be returned. (name and id) | Asserts runPass | assert_equals("test5", "test5")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:71:3) | Pass | assert_equals("test5", "test5")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:73:3) | Pass | assert_true(true, "\"test5\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:75:3) | Pass | assert_equals(Element node <img name="test5"></img>, Element node <img name="test5"></img>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:76:3) |
|
Pass | If there are two imgs, the one with a name should be returned. (id and name) | Asserts runPass | assert_equals("test6", "test6")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:81:3) | Pass | assert_equals("test6", "test6")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:83:3) | Pass | assert_true(true, "\"test6\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:85:3) | Pass | assert_equals(Element node <img name="test6"></img>, Element node <img name="test6"></img>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:86:3) |
|
Pass | A name should affect getting an img by id | Asserts runPass | assert_equals("test7", "test7")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:91:3) | Pass | assert_true(true, "\"test7\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:93:3) | Pass | assert_equals(Element node <img id="test7" name="fail"></img>, Element node <img id="test7" name="fail"></img>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:94:3) |
|
Pass | An id shouldn't affect getting an img by name | Asserts runPass | assert_equals("test8", "test8")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:99:3) | Pass | assert_true(true, "\"test8\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:101:3) | Pass | assert_equals(Element node <img name="test8" id="fail"></img>, Element node <img name="test8" id="fail"></img>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:102:3) |
|