Summary

Harness status: OK

Found 12 tests

Details

ResultTest NameMessage
PassIf there is one embed, it should be returned (name)
Asserts run
Pass
assert_equals("test1", "test1")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:41:3)
Pass
assert_true(true, "\"test1\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:43:3)
Pass
assert_equals(Element node <embed name="test1"></embed>, Element node <embed name="test1"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:44:3)
PassIf there are two embeds, a collection should be returned. (name)
Asserts run
Pass
assert_equals("test2", "test2")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:49:3)
Pass
assert_equals("test2", "test2")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:51:3)
Pass
assert_true(true, "\"test2\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:53:3)
Pass
assert_class_string(object "[object HTMLCollection]", "HTMLCollection", "collection should be an HTMLCollection")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:55:3)
Pass
assert_array_equals(object "[object HTMLCollection]", [Element node <embed name="test2"></embed>, Element node <embed name="test2"></embed>])
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:56:3)
PassIf there is one embed, it should not be returned (id)
Asserts run
Pass
assert_equals("test3", "test3")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:61:3)
Pass
assert_false(false, "\"test3\" in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:63:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:64:3)
PassIf there are two embeds, nothing should be returned. (id)
Asserts run
Pass
assert_equals("test4", "test4")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:69:3)
Pass
assert_equals("test4", "test4")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:71:3)
Pass
assert_false(false, "\"test4\" in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:73:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:74:3)
PassIf there are two embeds, a collection should be returned. (name and id)
Asserts run
Pass
assert_equals("test5", "test5")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:79:3)
Pass
assert_equals("test5", "test5")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:81:3)
Pass
assert_true(true, "\"test5\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:83:3)
Pass
assert_equals(Element node <embed name="test5"></embed>, Element node <embed name="test5"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:84:3)
PassIf there are two embeds, a collection should be returned. (id and name)
Asserts run
Pass
assert_equals("test6", "test6")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:89:3)
Pass
assert_equals("test6", "test6")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:91:3)
Pass
assert_true(true, "\"test6\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:93:3)
Pass
assert_equals(Element node <embed name="test6"></embed>, Element node <embed name="test6"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:94:3)
PassA name shouldn't affect getting an embed by id
Asserts run
Pass
assert_equals("test7", "test7")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:99:3)
Pass
assert_false(false, "\"test7\" in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:101:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:102:3)
PassAn id shouldn't affect getting an embed by name
Asserts run
Pass
assert_equals("test8", "test8")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:107:3)
Pass
assert_true(true, "\"test8\" in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:109:3)
Pass
assert_equals(Element node <embed name="test8" id="fail"></embed>, Element node <embed name="test8" id="fail"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:110:3)
PassDynamically removing the name attribute from embed elements, should not be accessible.
Asserts run
Pass
assert_equals("test9", "test9")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:115:3)
Pass
assert_true(true, "test9 in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:117:3)
Pass
assert_equals(Element node <embed name="test9" id="test9"></embed>, Element node <embed name="test9" id="test9"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:118:3)
Pass
assert_equals(Element node <embed name="test9" id="test9"></embed>, Element node <embed name="test9" id="test9"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:119:3)
Pass
assert_false(false, "test9 in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:122:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:123:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:124:3)
PassDynamically updating the name attribute from embed elements, should be accessible by its name.
Asserts run
Pass
assert_true(true, "test10a in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:131:3)
Pass
assert_equals(Element node <embed name="test10a"></embed>, Element node <embed name="test10a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:132:3)
Pass
assert_equals(Element node <embed name="test10a"></embed>, Element node <embed name="test10a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:133:3)
Pass
assert_false(false, "test10a in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:136:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:137:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:138:3)
Pass
assert_true(true, "test10b in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:139:3)
Pass
assert_equals(Element node <embed name="test10b"></embed>, Element node <embed name="test10b"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:140:3)
Pass
assert_equals(Element node <embed name="test10b"></embed>, Element node <embed name="test10b"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:141:3)
PassDynamically updating the id attribute from embed elements, should be accessible only by its name.
Asserts run
Pass
assert_equals("test11a", "test11a")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:146:3)
Pass
assert_true(true, "test11a in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:148:3)
Pass
assert_equals(Element node <embed name="test11a"></embed>, Element node <embed name="test11a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:149:3)
Pass
assert_equals(Element node <embed name="test11a"></embed>, Element node <embed name="test11a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:150:3)
Pass
assert_true(true, "test11a in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:153:3)
Pass
assert_equals(Element node <embed name="test11a" id="test11a"></embed>, Element node <embed name="test11a" id="test11a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:154:3)
Pass
assert_equals(Element node <embed name="test11a" id="test11a"></embed>, Element node <embed name="test11a" id="test11a"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:155:3)
Pass
assert_true(true, "test11a in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:158:3)
Pass
assert_equals(Element node <embed name="test11a" id="test11b"></embed>, Element node <embed name="test11a" id="test11b"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:159:3)
Pass
assert_equals(Element node <embed name="test11a" id="test11b"></embed>, Element node <embed name="test11a" id="test11b"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:160:3)
Pass
assert_false(false, "test11b in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:161:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:162:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:163:3)
Passembed elements that is removed, should not be accessible.
Asserts run
Pass
assert_equals("test12", "test12")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:168:3)
Pass
assert_true(true, "test12 in document should be true")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:170:3)
Pass
assert_equals(Element node <embed name="test12"></embed>, Element node <embed name="test12"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:171:3)
Pass
assert_equals(Element node <embed name="test12"></embed>, Element node <embed name="test12"></embed>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:172:3)
Pass
assert_false(false, "test12 in document should be false")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:175:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:176:3)
Pass
assert_equals(undefined, undefined)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-05.html:177:3)