Summary

Harness status: OK

Found 18 tests

Details

ResultTest NameMessage
PasscreateCaption method creates new caption if existing caption is not in html namespace
Asserts run
Pass
assert_not_equals(Element node <caption></caption>, Text node "   ")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:92:7)
Pass
assert_equals(Element node <caption></caption>, Element node <caption></caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:93:7)
PasscreateCaption method returns the first caption element child of the table
Asserts run
Pass
assert_equals(Element node <caption id="caption1">caption</caption>, Element node <caption id="caption1">caption</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:100:7)
PasscreateCaption method creates a new caption and inserts it as the first node of the table element
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:107:7)
Pass
assert_equals(Element node <caption></caption>, Element node <caption></caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:108:7)
PasscreateCaption will not create new caption if one exists
Asserts run
Pass
assert_equals(Element node <caption></caption>, Element node <caption></caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:113:7)
PasscreateCaption will not copy table's prefix
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:119:7)
PassdeleteCaption method removes the first caption element child of the table element
Asserts run
Pass
assert_equals("caption 3", "caption 3")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:124:7)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:126:7)
PassdeleteCaption method not remove caption that is not in html namespace
Asserts run
Pass
assert_equals(Element node <table id="table4" style="display:none">   <caption></cap..., Element node <table id="table4" style="display:none">   <caption></cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:134:7)
PassSetting caption rethrows exception
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "function() {         table5.caption = caption;       }")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:143:7)
Pass
assert_not_equals(null, Element node <caption><table id="table5" style="display:none">   </tab...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:147:7)
PassAssigning a caption to table.caption
Asserts run
Pass
assert_equals(Element node <caption id="caption6">caption 6</caption>, Element node <caption id="caption6">caption 6</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:153:7)
Pass
assert_equals(Element node <table id="table6" style="display:none"><caption></captio..., Element node <table id="table6" style="display:none"><caption></captio...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:157:7)
Pass
assert_equals(Element node <caption></caption>, Element node <caption></caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:158:7)
Pass
assert_equals(Element node <caption></caption>, Element node <caption></caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:159:7)
PassAssigning null to table.caption
Asserts run
Pass
assert_equals(Element node <caption id="caption7">caption 7</caption>, Element node <caption id="caption7">caption 7</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:165:7)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:168:7)
Pass
assert_equals(Element node <tbody id="tbody7">     <tr>       <td>cell</td>       <t..., Element node <tbody id="tbody7">     <tr>       <td>cell</td>       <t...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:169:7)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:170:7)
PassAssigning a non-caption to table.caption
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {         table8.caption = caption;       }")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:176:7)
PassAssigning a foreign caption to table.caption
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {         table9.caption = caption;       }")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:184:7)
PassSet table.caption when the table doesn't already have a caption
Asserts run
Pass
assert_equals(Element node <table><caption>new caption</caption></table>, Element node <table><caption>new caption</caption></table>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:195:7)
Pass
assert_equals(Element node <caption>new caption</caption>, Element node <caption>new caption</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:196:7)
Pass
assert_equals("new caption", "new caption")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:197:7)
PassSet table.caption when the table has a caption child but with other siblings before it
Asserts run
Pass
assert_equals(Element node <table id="table10" style="display:none"><caption>new cap..., Element node <table id="table10" style="display:none"><caption>new cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:206:7)
Pass
assert_equals(Element node <caption>new caption</caption>, Element node <caption>new caption</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:207:7)
Pass
assert_equals("new caption", "new caption")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:208:7)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:211:7)
PassSet table.caption when the table has a caption descendant
Asserts run
Pass
assert_equals(Element node <table id="table11" style="display:none"><caption>new cap..., Element node <table id="table11" style="display:none"><caption>new cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:220:7)
Pass
assert_equals(Element node <caption>new caption</caption>, Element node <caption>new caption</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:221:7)
Pass
assert_equals("new caption", "new caption")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:222:7)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:225:7)
PassSet table.caption when the table has two caption children
Asserts run
Pass
assert_equals(Element node <table id="table12" style="display:none"><caption>new cap..., Element node <table id="table12" style="display:none"><caption>new cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:234:7)
Pass
assert_equals(Element node <caption>new caption</caption>, Element node <caption>new caption</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:235:7)
Pass
assert_equals("new caption", "new caption")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:236:7)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:239:7)
Pass
assert_equals("new caption", "new caption")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:240:7)
Pass
assert_equals("caption 2", "caption 2")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:241:7)
PassAssigning a caption has a different owner document to table.caption
Asserts run
Pass
assert_equals(Element node <table id="table13" style="display:none"><caption id="cap..., Element node <table id="table13" style="display:none"><caption id="cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:255:7)
Pass
assert_equals(Element node <caption id="caption13">caption 13</caption>, Element node <caption id="caption13">caption 13</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:256:7)
Pass
assert_equals("caption 13", "caption 13")
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:257:7)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:260:7)
PassAssigning the caption already in the table to table.caption
Asserts run
Pass
assert_equals(Element node <table id="table14" style="display:none"><caption id="cap..., Element node <table id="table14" style="display:none"><caption id="cap...)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:268:7)
Pass
assert_equals(Element node <caption id="caption14">caption 14</caption>, Element node <caption id="caption14">caption 14</caption>)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:269:7)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /html/semantics/tabular-data/the-table-element/caption-methods.html:272:7)
caption