Summary

Harness status: OK

Found 9 tests

Details

ResultTest NameMessage
PassIf there is one img, it should be returned (name)
Asserts run
Pass
assert_equals("test1", "test1")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:35:3)
Pass
assert_true(true, "\"test1\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:37: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:38:3)
PassIf there are two imgs, a collection should be returned. (name)
Asserts run
Pass
assert_equals("test2", "test2")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:43:3)
Pass
assert_equals("test2", "test2")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:45:3)
Pass
assert_true(true, "\"test2\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:47: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:49: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:50:3)
PassIf there is one img, it should not be returned (id)
Asserts run
Pass
assert_equals("test3", "test3")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:55:3)
Pass
assert_false(false, "\"test3\" in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:57:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:58:3)
PassIf there are two imgs, nothing should be returned. (id)
Asserts run
Pass
assert_equals("test4", "test4")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:63:3)
Pass
assert_equals("test4", "test4")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:65:3)
Pass
assert_false(false, "\"test4\" in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:67:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:68:3)
PassIf there are two imgs, the one with a name should be returned. (name and id)
Asserts run
Pass
assert_equals("test5", "test5")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:73:3)
Pass
assert_equals("test5", "test5")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:75:3)
Pass
assert_true(true, "\"test5\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:77: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:78:3)
PassIf there are two imgs, the one with a name should be returned. (id and name)
Asserts run
Pass
assert_equals("test6", "test6")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:83:3)
Pass
assert_equals("test6", "test6")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:85:3)
Pass
assert_true(true, "\"test6\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:87: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:88:3)
PassDynamically removing the name attribute from img elements, should not be accessible.
Asserts run
Pass
assert_equals("test7", "test7")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:93:3)
Pass
assert_true(true, "test7 in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:95:3)
Pass
assert_equals(Element node <img name="test7"></img>, Element node <img name="test7"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:96:3)
Pass
assert_equals(Element node <img name="test7"></img>, Element node <img name="test7"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:97:3)
Pass
assert_false(false, "test7 in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:100:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:101:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:102:3)
PassDynamically updating the name attribute from img elements, should be accessible by its name.
Asserts run
Pass
assert_true(true, "test8a in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:109:3)
Pass
assert_equals(Element node <img name="test8a"></img>, Element node <img name="test8a"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:110:3)
Pass
assert_equals(Element node <img name="test8a"></img>, Element node <img name="test8a"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:111:3)
Pass
assert_false(false, "test8a in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:114:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:115:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:116:3)
Pass
assert_true(true, "test8b in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:117:3)
Pass
assert_equals(Element node <img name="test8b"></img>, Element node <img name="test8b"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:118:3)
Pass
assert_equals(Element node <img name="test8b"></img>, Element node <img name="test8b"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:119:3)
Passimg elements that is removed, should not be accessible.
Asserts run
Pass
assert_equals("test9", "test9")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:124:3)
Pass
assert_true(true, "test9 in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:126:3)
Pass
assert_equals(Element node <img name="test9"></img>, Element node <img name="test9"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:127:3)
Pass
assert_equals(Element node <img name="test9"></img>, Element node <img name="test9"></img>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:128:3)
Pass
assert_false(false, "test9 in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:131:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:132:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-06.html:133:3)