4 <title>Table update tests
</title>
5 <link rel=
"stylesheet" type=
"text/css"
6 href=
"chrome://mochikit/content/tests/SimpleTest/test.css" />
8 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"application/javascript"
11 src=
"../common.js"></script>
12 <script type=
"application/javascript"
13 src=
"../role.js"></script>
14 <script type=
"application/javascript"
15 src=
"../events.js"></script>
17 <script type=
"application/javascript">
19 function appendCaption(aTableID) {
20 this.invoke = function appendCaption_invoke() {
21 // append a caption, it should appear as a first element in the
23 var caption = document.createElement(
"caption");
24 caption.textContent =
"table caption";
25 getNode(aTableID).appendChild(caption);
29 new invokerChecker(EVENT_REORDER, aTableID),
32 this.finalCheck = function appendCaption_finalCheck() {
39 { CELL: [ {TEXT_LEAF: [] }]},
40 { CELL: [ {TEXT_LEAF: [] }]},
43 testAccessibleTree(aTableID, tree);
46 this.getID = function appendCaption_getID() {
47 return
"append caption";
52 const gQueue = new eventQueue();
53 gQueue.push(new appendCaption(
"table"));
54 gQueue.invoke(); // Will call SimpleTest.finish();
57 SimpleTest.waitForExplicitFinish();
58 addA11yLoadEvent(doTest);
63 <div id=
"content" style=
"display: none"></div>