OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 | 9 |
10 description("Test the translate attribute."); | 10 description("Test the translate attribute."); |
11 | 11 |
12 var parent = document.createElement("div"); | 12 var parent = document.createElement("div"); |
13 document.body.appendChild(parent); | 13 document.body.appendChild(parent); |
14 | 14 |
15 function testFor(initialAttribute, initialExpectation, setValue, lastExpectation
, lastAttributeExpectation) | 15 function testFor(initialAttribute, initialExpectation, setValue, lastExpectation
, lastAttributeExpectation) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 testFor("no ", true, undefined, true, "no "); | 141 testFor("no ", true, undefined, true, "no "); |
142 testFor("no ", true, 1, true, "yes"); | 142 testFor("no ", true, 1, true, "yes"); |
143 testFor("no ", true, 0, false, "no"); | 143 testFor("no ", true, 0, false, "no"); |
144 testFor("0", true, undefined, true, "0"); | 144 testFor("0", true, undefined, true, "0"); |
145 testFor("0", true, 0, false, "no"); | 145 testFor("0", true, 0, false, "no"); |
146 testFor("1", true, undefined, true, "1"); | 146 testFor("1", true, undefined, true, "1"); |
147 testFor("1", true, 0, false, "no"); | 147 testFor("1", true, 0, false, "no"); |
148 </script> | 148 </script> |
149 </body> | 149 </body> |
150 </html> | 150 </html> |
OLD | NEW |