OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <div id='el'></div> | 4 <div id='el'></div> |
5 | 5 |
6 <script src="../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../resources/js-test.js"></script> |
7 <script> | 7 <script> |
8 | 8 |
9 description("Test getting and setting nonstable css properties to non-default va
lues"); | 9 description("Test getting and setting nonstable css properties to non-default va
lues"); |
10 | 10 |
11 function testStyle(property, value) { | 11 function testStyle(property, value) { |
12 var el = document.getElementById('el'); | 12 var el = document.getElementById('el'); |
13 var test = function(toEval, logResult) { | 13 var test = function(toEval, logResult) { |
14 var result = eval(toEval); | 14 var result = eval(toEval); |
15 debug(toEval + (logResult ? " is " + result : "")); | 15 debug(toEval + (logResult ? " is " + result : "")); |
16 } | 16 } |
(...skipping 29 matching lines...) Expand all Loading... |
46 ['text-justify', 'distribute'], | 46 ['text-justify', 'distribute'], |
47 ]; | 47 ]; |
48 | 48 |
49 properties.forEach(function(args) { | 49 properties.forEach(function(args) { |
50 testStyle(args[0], args[1]); | 50 testStyle(args[0], args[1]); |
51 }); | 51 }); |
52 | 52 |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |