Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <html> |
michael@0 | 2 | |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>nsIAccessible::name calculation for HTML li</title> |
michael@0 | 5 | <link rel="stylesheet" type="text/css" |
michael@0 | 6 | href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 7 | |
michael@0 | 8 | <script type="application/javascript" |
michael@0 | 9 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | |
michael@0 | 11 | <script type="application/javascript" |
michael@0 | 12 | src="../common.js"></script> |
michael@0 | 13 | <script type="application/javascript" |
michael@0 | 14 | src="../name.js"></script> |
michael@0 | 15 | <script type="application/javascript" |
michael@0 | 16 | src="../events.js"></script> |
michael@0 | 17 | |
michael@0 | 18 | <script type="application/javascript"> |
michael@0 | 19 | /** |
michael@0 | 20 | * Alter list item numbering and change list style type. |
michael@0 | 21 | */ |
michael@0 | 22 | function bulletUpdate() |
michael@0 | 23 | { |
michael@0 | 24 | this.eventSeq = [ |
michael@0 | 25 | new invokerChecker(EVENT_REORDER, getNode("list")) |
michael@0 | 26 | ]; |
michael@0 | 27 | |
michael@0 | 28 | this.invoke = function bulletUpdate_invoke() |
michael@0 | 29 | { |
michael@0 | 30 | testName("li_end", "1. list end"); |
michael@0 | 31 | |
michael@0 | 32 | var li = document.createElement("li"); |
michael@0 | 33 | li.setAttribute("id", "li_start"); |
michael@0 | 34 | li.textContent = "list start"; |
michael@0 | 35 | getNode("list").insertBefore(li, getNode("li_end")); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | this.finalCheck = function bulletUpdate_finalCheck() |
michael@0 | 39 | { |
michael@0 | 40 | testName("li_start", "1. list start"); |
michael@0 | 41 | testName("li_end", "2. list end"); |
michael@0 | 42 | |
michael@0 | 43 | // change list style type |
michael@0 | 44 | var list = getNode("list"); |
michael@0 | 45 | list.setAttribute("style", "list-style-type: disc;"); |
michael@0 | 46 | getComputedStyle(list, "").color; // make style processing sync |
michael@0 | 47 | |
michael@0 | 48 | testName("li_start", kDiscBulletText + "list start"); |
michael@0 | 49 | testName("li_end", kDiscBulletText + "list end"); |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | this.getID = function bulletUpdate_getID() |
michael@0 | 53 | { |
michael@0 | 54 | return "Update bullet of list items"; |
michael@0 | 55 | } |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | var gQueue = null; |
michael@0 | 59 | function doTest() |
michael@0 | 60 | { |
michael@0 | 61 | gQueue = new eventQueue(); |
michael@0 | 62 | gQueue.push(new bulletUpdate()); |
michael@0 | 63 | gQueue.invoke(); // SimpleTest.finish(); |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 67 | addA11yLoadEvent(doTest); |
michael@0 | 68 | </script> |
michael@0 | 69 | |
michael@0 | 70 | </head> |
michael@0 | 71 | |
michael@0 | 72 | <body> |
michael@0 | 73 | |
michael@0 | 74 | <a target="_blank" |
michael@0 | 75 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=634200" |
michael@0 | 76 | title="crash [@ nsIFrame::StyleVisibility() ]"> |
michael@0 | 77 | Mozilla Bug 634200 |
michael@0 | 78 | </a> |
michael@0 | 79 | <p id="display"></p> |
michael@0 | 80 | <div id="content" style="display: none"></div> |
michael@0 | 81 | <pre id="test"> |
michael@0 | 82 | </pre> |
michael@0 | 83 | |
michael@0 | 84 | <ol id="list"> |
michael@0 | 85 | <li id="li_end">list end</li> |
michael@0 | 86 | </ol> |
michael@0 | 87 | |
michael@0 | 88 | </body> |
michael@0 | 89 | </html> |