Pass | If the only named item is an iframe, the contentWindow should be returned. | Asserts runPass | assert_equals("test1", "test1")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:40:3) | Pass | assert_true(true, "\"test1\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:42:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:43:3) |
|
Pass | If there are two iframes, a collection should be returned. | Asserts runPass | assert_equals("test2", "test2")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:48:3) | Pass | assert_equals("test2", "test2")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:50:3) | Pass | assert_true(true, "\"test2\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:52:3) | Pass | assert_class_string(object "[object HTMLCollection]", "HTMLCollection", "collection should be an HTMLCollection")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:54:3) | Pass | assert_array_equals(object "[object HTMLCollection]", [Element node <iframe name="test2"></iframe>, Element node <iframe name="test2"></iframe>])
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:55:3) |
|
Pass | If there are an iframe and another element (iframe first), a collection should be returned. | Asserts runPass | assert_equals("test3", "test3")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:60:3) | Pass | assert_equals("test3", "test3")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:62:3) | Pass | assert_true(true, "\"test3\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:64:3) | Pass | assert_class_string(object "[object HTMLCollection]", "HTMLCollection", "collection should be an HTMLCollection")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:66:3) | Pass | assert_array_equals(object "[object HTMLCollection]", [Element node <iframe name="test3"></iframe>, Element node <img name="test3"></img>])
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:67:3) |
|
Pass | If there are an iframe and another element (iframe last), a collection should be returned. | Asserts runPass | assert_equals("test4", "test4")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:72:3) | Pass | assert_equals("test4", "test4")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:74:3) | Pass | assert_true(true, "\"test4\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:76:3) | Pass | assert_class_string(object "[object HTMLCollection]", "HTMLCollection", "collection should be an HTMLCollection")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:78:3) | Pass | assert_array_equals(object "[object HTMLCollection]", [Element node <img name="test4"></img>, Element node <iframe name="test4"></iframe>])
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:79:3) |
|
Pass | If an iframe has an id and no name, it should not be returned. | Asserts runPass | assert_false(false, "\"test5\" in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:83:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:84:3) |
|
Pass | If an iframe has a name and a different id, it should be returned by its name. | Asserts runPass | assert_equals("test6", "test6")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:89:3) | Pass | assert_true(true, "\"test6\" in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:91:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:92:3) |
|
Pass | If an iframe has an id and a different name, it should not be returned by its id. | Asserts runPass | assert_false(false, "\"test7\" in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:96:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:97:3) |
|
Pass | An iframe whose name looks like an array index should work. | Asserts runPass | assert_equals("42", "42")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:102:3) | Pass | assert_true(true, "42 in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:104:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:105:3) |
|
Pass | Dynamically removing the name attribute from iframe elements, should not be accessible. | Asserts runPass | assert_equals("test9", "test9")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:110:3) | Pass | assert_true(true, "test9 in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:112:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:113:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:114:3) | Pass | assert_false(false, "test9 in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:117:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:118:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:119:3) |
|
Pass | Dynamically updating the name attribute from iframe elements, should be accessible by its name. | Asserts runPass | assert_true(true, "test10a in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:126:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:127:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:128:3) | Pass | assert_false(false, "test10a in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:131:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:132:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:133:3) | Pass | assert_true(true, "test10b in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:134:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:135:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:136:3) |
|
Pass | Dynamically updating the id attribute from iframe elements, should be accessible only by its name. | Asserts runPass | assert_equals("test11a", "test11a")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:141:3) | Pass | assert_true(true, "test11a in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:143:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:144:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:145:3) | Pass | assert_true(true, "test11a in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:148:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:149:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:150:3) | Pass | assert_true(true, "test11a in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:153:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:154:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:155:3) | Pass | assert_false(false, "test11b in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:156:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:157:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:158:3) |
|
Pass | iframe elements that is removed, should not be accessible. | Asserts runPass | assert_equals("test12", "test12")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:163:3) | Pass | assert_true(true, "test12 in document should be true")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:165:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:166:3) | Pass | assert_equals(object "[object Window]", object "[object Window]")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:167:3) | Pass | assert_false(false, "test12 in document should be false")
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:170:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:171:3) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/nameditem-02.html:172:3) |
|