| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src='../resources/testharness.js'></script> | |
| 3 <script src='../resources/testharnessreport.js'></script> | |
| 4 <script> | |
| 5 | |
| 6 var styleValues = { | |
| 7 // TODO(meade): Add each CSSStyleValue type here. | |
| 8 'initial': new CSSKeywordValue('initial'), | |
| 9 '10px': new CSSUnitValue(10, 'px'), | |
| 10 'rotate(10deg)': new CSSTransformValue( | |
| 11 [new CSSRotation(new CSSUnitValue(10, 'deg'))]), | |
| 12 }; | |
| 13 | |
| 14 for (var cssText in styleValues) { | |
| 15 test(function() { | |
| 16 assert_equals(styleValues[cssText].toString(), cssText); | |
| 17 assert_equals(styleValues[cssText].toString(), cssText); | |
| 18 }, 'Style value with type ' + styleValues[cssText].constructor.name + | |
| 19 'with value "' + cssText + '" serializes correctly'); | |
| 20 } | |
| 21 | |
| 22 </script> | |
| OLD | NEW |