Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <?xml-stylesheet href="chrome://global/skin/global.css" |
michael@0 | 4 | type="text/css"?> |
michael@0 | 5 | <?xml-stylesheet href="374719-1-css.css" |
michael@0 | 6 | type="text/css"?> |
michael@0 | 7 | |
michael@0 | 8 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 9 | onload="test2()"> |
michael@0 | 10 | |
michael@0 | 11 | <script> |
michael@0 | 12 | function test2() |
michael@0 | 13 | { |
michael@0 | 14 | var r = document.getElementById('rbox'); |
michael@0 | 15 | |
michael@0 | 16 | const XULNS = |
michael@0 | 17 | "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
michael@0 | 18 | |
michael@0 | 19 | var item = document.createElementNS(XULNS, "gridlikeitem"); |
michael@0 | 20 | item.setAttribute("value", "aValue"); |
michael@0 | 21 | |
michael@0 | 22 | var cell1 = document.createElementNS(XULNS, "gridlikecell"); |
michael@0 | 23 | var label1 = document.createElementNS(XULNS, "label"); |
michael@0 | 24 | label1.setAttribute("value", "aLabel1"); |
michael@0 | 25 | label1.setAttribute("flex", "1"); |
michael@0 | 26 | label1.setAttribute("crop", "end"); |
michael@0 | 27 | cell1.appendChild(label1); |
michael@0 | 28 | item.appendChild(cell1); |
michael@0 | 29 | |
michael@0 | 30 | var cell2 = document.createElementNS(XULNS, "gridlikecell"); |
michael@0 | 31 | var label2 = document.createElementNS(XULNS, "label"); |
michael@0 | 32 | label2.setAttribute("value", "aLabel2"); |
michael@0 | 33 | label2.setAttribute("flex", "1"); |
michael@0 | 34 | label2.setAttribute("crop", "end"); |
michael@0 | 35 | cell2.appendChild(label2); |
michael@0 | 36 | item.appendChild(cell2); |
michael@0 | 37 | |
michael@0 | 38 | var before = document.getElementById("inx"); |
michael@0 | 39 | if (!before) |
michael@0 | 40 | r.appendChild(item); |
michael@0 | 41 | else |
michael@0 | 42 | r.insertBefore(item, before); |
michael@0 | 43 | } |
michael@0 | 44 | </script> |
michael@0 | 45 | |
michael@0 | 46 | <gridlikebox flex="1" id="rbox"> |
michael@0 | 47 | <gridlikecols> |
michael@0 | 48 | <gridlikecol flex="1"/> |
michael@0 | 49 | <gridlikecol flex="1"/> |
michael@0 | 50 | </gridlikecols> |
michael@0 | 51 | |
michael@0 | 52 | <gridlikehead> |
michael@0 | 53 | <gridlikeheader label="Col1"/> |
michael@0 | 54 | <gridlikeheader label="Col2"/> |
michael@0 | 55 | </gridlikehead> |
michael@0 | 56 | |
michael@0 | 57 | <gridlikeitem value="hello1"> |
michael@0 | 58 | <gridlikecell><label value="Hello"/></gridlikecell> |
michael@0 | 59 | <gridlikecell><label value="Hello"/></gridlikecell> |
michael@0 | 60 | </gridlikeitem> |
michael@0 | 61 | <gridlikeitem value="hello2" id="inx"> |
michael@0 | 62 | <gridlikecell><label value="Hello2"/></gridlikecell> |
michael@0 | 63 | <gridlikecell><label value="Hello2.1"/></gridlikecell> |
michael@0 | 64 | </gridlikeitem> |
michael@0 | 65 | <gridlikeitem value="hello3"> |
michael@0 | 66 | <gridlikecell><label value="Hello592"/></gridlikecell> |
michael@0 | 67 | <gridlikecell><label value="Hello592.1"/></gridlikecell> |
michael@0 | 68 | </gridlikeitem> |
michael@0 | 69 | <gridlikeitem value="hello4"> |
michael@0 | 70 | <gridlikecell><label value="Hello4"/></gridlikecell> |
michael@0 | 71 | <gridlikecell><label value="Hello4--"/></gridlikecell> |
michael@0 | 72 | </gridlikeitem> |
michael@0 | 73 | </gridlikebox> |
michael@0 | 74 | </window> |