layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!DOCTYPE>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <title>Test MathML columnalign</title>
michael@0 5 <script type="text/javascript">
michael@0 6 function doTest()
michael@0 7 {
michael@0 8 var table1 = document.getElementById("table1");
michael@0 9 var table2 = document.getElementById("table2");
michael@0 10 var table3 = document.getElementById("table3");
michael@0 11 var rows = undefined;
michael@0 12
michael@0 13 // Table 1 setup
michael@0 14 rows = table1.getElementsByTagName("mtr");
michael@0 15 for(var i = 0; i < rows.length; i++)
michael@0 16 rows[i].setAttribute("columnalign", "left");
michael@0 17
michael@0 18 // Table 2 setup
michael@0 19 rows = table2.getElementsByTagName("mtr");
michael@0 20 for(var i = 0; i < rows.length; i++)
michael@0 21 rows[i].setAttribute("columnalign", "center");
michael@0 22
michael@0 23 // Table 3 setup
michael@0 24 rows = table3.getElementsByTagName("mtr");
michael@0 25 for(var i = 0; i < rows.length; i++)
michael@0 26 rows[i].setAttribute("columnalign", "right");
michael@0 27
michael@0 28 document.documentElement.removeAttribute("class");
michael@0 29 }
michael@0 30 window.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 31 </script>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <b>columnalign="left"</b> <br />
michael@0 35 <math>
michael@0 36 <mstyle>
michael@0 37 <mtable id="table1">
michael@0 38 <mtr>
michael@0 39 <mtd>
michael@0 40 <mtext>123</mtext>
michael@0 41 </mtd>
michael@0 42 <mtd>
michael@0 43 <mtext>123</mtext>
michael@0 44 </mtd>
michael@0 45 <mtd>
michael@0 46 <mtext>123</mtext>
michael@0 47 </mtd>
michael@0 48 </mtr>
michael@0 49 <mtr>
michael@0 50 <mtd>
michael@0 51 <mtext>12345</mtext>
michael@0 52 </mtd>
michael@0 53 <mtd>
michael@0 54 <mtext>12345</mtext>
michael@0 55 </mtd>
michael@0 56 <mtd>
michael@0 57 <mtext>12345</mtext>
michael@0 58 </mtd>
michael@0 59 </mtr>
michael@0 60 <mtr>
michael@0 61 <mtd>
michael@0 62 <mtext>1234567</mtext>
michael@0 63 </mtd>
michael@0 64 <mtd>
michael@0 65 <mtext>1234567</mtext>
michael@0 66 </mtd>
michael@0 67 <mtd>
michael@0 68 <mtext>1234567</mtext>
michael@0 69 </mtd>
michael@0 70 </mtr>
michael@0 71 </mtable>
michael@0 72 </mstyle>
michael@0 73 </math> <br />
michael@0 74 <b>columnalign="center"</b> <br />
michael@0 75 <math>
michael@0 76 <mstyle>
michael@0 77 <mtable id="table2">
michael@0 78 <mtr>
michael@0 79 <mtd>
michael@0 80 <mtext>123</mtext>
michael@0 81 </mtd>
michael@0 82 <mtd>
michael@0 83 <mtext>123</mtext>
michael@0 84 </mtd>
michael@0 85 <mtd>
michael@0 86 <mtext>123</mtext>
michael@0 87 </mtd>
michael@0 88 </mtr>
michael@0 89 <mtr>
michael@0 90 <mtd>
michael@0 91 <mtext>12345</mtext>
michael@0 92 </mtd>
michael@0 93 <mtd>
michael@0 94 <mtext>12345</mtext>
michael@0 95 </mtd>
michael@0 96 <mtd>
michael@0 97 <mtext>12345</mtext>
michael@0 98 </mtd>
michael@0 99 </mtr>
michael@0 100 <mtr>
michael@0 101 <mtd>
michael@0 102 <mtext>1234567</mtext>
michael@0 103 </mtd>
michael@0 104 <mtd>
michael@0 105 <mtext>1234567</mtext>
michael@0 106 </mtd>
michael@0 107 <mtd>
michael@0 108 <mtext>1234567</mtext>
michael@0 109 </mtd>
michael@0 110 </mtr>
michael@0 111 </mtable>
michael@0 112 </mstyle>
michael@0 113 </math> <br />
michael@0 114 <b>columnalign="right"</b> <br />
michael@0 115 <math>
michael@0 116 <mstyle>
michael@0 117 <mtable id="table3">
michael@0 118 <mtr>
michael@0 119 <mtd>
michael@0 120 <mtext>123</mtext>
michael@0 121 </mtd>
michael@0 122 <mtd>
michael@0 123 <mtext>123</mtext>
michael@0 124 </mtd>
michael@0 125 <mtd>
michael@0 126 <mtext>123</mtext>
michael@0 127 </mtd>
michael@0 128 </mtr>
michael@0 129 <mtr>
michael@0 130 <mtd>
michael@0 131 <mtext>12345</mtext>
michael@0 132 </mtd>
michael@0 133 <mtd>
michael@0 134 <mtext>12345</mtext>
michael@0 135 </mtd>
michael@0 136 <mtd>
michael@0 137 <mtext>12345</mtext>
michael@0 138 </mtd>
michael@0 139 </mtr>
michael@0 140 <mtr>
michael@0 141 <mtd>
michael@0 142 <mtext>1234567</mtext>
michael@0 143 </mtd>
michael@0 144 <mtd>
michael@0 145 <mtext>1234567</mtext>
michael@0 146 </mtd>
michael@0 147 <mtd>
michael@0 148 <mtext>1234567</mtext>
michael@0 149 </mtd>
michael@0 150 </mtr>
michael@0 151 </mtable>
michael@0 152 </mstyle>
michael@0 153 </math>
michael@0 154 </body>
michael@0 155 </html>

mercurial