Index: third_party/WebKit/LayoutTests/typedcssom/cssSimpleLength.html |
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssSimpleLength.html b/third_party/WebKit/LayoutTests/typedcssom/cssSimpleLength.html |
index 12bef23d036e2f3fe3d5ac54e2fb399c5783239e..87bbba366fac9a62edf806568ebf493f4cf46c3e 100644 |
--- a/third_party/WebKit/LayoutTests/typedcssom/cssSimpleLength.html |
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssSimpleLength.html |
@@ -74,43 +74,43 @@ test(function() { |
test(function() { |
var values = [ |
- {input: new CSSSimpleLength(1, 'px'), cssString: '1px' }, |
- {input: new CSSSimpleLength(2, 'percent'), cssString: '2%' }, |
- {input: new CSSSimpleLength(3, '%'), cssString: '3%' }, |
- {input: new CSSSimpleLength(4, 'em'), cssString: '4em' }, |
- {input: new CSSSimpleLength(5, 'ex'), cssString: '5ex' }, |
- {input: new CSSSimpleLength(6, 'ch'), cssString: '6ch' }, |
- {input: new CSSSimpleLength(7, 'rem'), cssString: '7rem' }, |
- {input: new CSSSimpleLength(8, 'vw'), cssString: '8vw' }, |
- {input: new CSSSimpleLength(9, 'vh'), cssString: '9vh' }, |
- {input: new CSSSimpleLength(10, 'vmin'), cssString: '10vmin' }, |
- {input: new CSSSimpleLength(11, 'vmax'), cssString: '11vmax' }, |
- {input: new CSSSimpleLength(12, 'cm'), cssString: '12cm' }, |
- {input: new CSSSimpleLength(13, 'mm'), cssString: '13mm' }, |
- {input: new CSSSimpleLength(14, 'in'), cssString: '14in' }, |
- {input: new CSSSimpleLength(15, 'pc'), cssString: '15pc' }, |
- {input: new CSSSimpleLength(16, 'pt'), cssString: '16pt' }, |
+ {input: new CSSSimpleLength(1, 'px'), cssText: '1px' }, |
+ {input: new CSSSimpleLength(2, 'percent'), cssText: '2%' }, |
+ {input: new CSSSimpleLength(3, '%'), cssText: '3%' }, |
+ {input: new CSSSimpleLength(4, 'em'), cssText: '4em' }, |
+ {input: new CSSSimpleLength(5, 'ex'), cssText: '5ex' }, |
+ {input: new CSSSimpleLength(6, 'ch'), cssText: '6ch' }, |
+ {input: new CSSSimpleLength(7, 'rem'), cssText: '7rem' }, |
+ {input: new CSSSimpleLength(8, 'vw'), cssText: '8vw' }, |
+ {input: new CSSSimpleLength(9, 'vh'), cssText: '9vh' }, |
+ {input: new CSSSimpleLength(10, 'vmin'), cssText: '10vmin' }, |
+ {input: new CSSSimpleLength(11, 'vmax'), cssText: '11vmax' }, |
+ {input: new CSSSimpleLength(12, 'cm'), cssText: '12cm' }, |
+ {input: new CSSSimpleLength(13, 'mm'), cssText: '13mm' }, |
+ {input: new CSSSimpleLength(14, 'in'), cssText: '14in' }, |
+ {input: new CSSSimpleLength(15, 'pc'), cssText: '15pc' }, |
+ {input: new CSSSimpleLength(16, 'pt'), cssText: '16pt' }, |
// Same again to double check that it's case insensitive. |
- {input: new CSSSimpleLength(1, 'PX'), cssString: '1px' }, |
- {input: new CSSSimpleLength(2, 'PERCENT'), cssString: '2%' }, |
- {input: new CSSSimpleLength(3, '%'), cssString: '3%' }, |
- {input: new CSSSimpleLength(4, 'EM'), cssString: '4em' }, |
- {input: new CSSSimpleLength(5, 'EX'), cssString: '5ex' }, |
- {input: new CSSSimpleLength(6, 'CH'), cssString: '6ch' }, |
- {input: new CSSSimpleLength(7, 'REM'), cssString: '7rem' }, |
- {input: new CSSSimpleLength(8, 'VW'), cssString: '8vw' }, |
- {input: new CSSSimpleLength(9, 'VH'), cssString: '9vh' }, |
- {input: new CSSSimpleLength(10, 'VMIN'), cssString: '10vmin' }, |
- {input: new CSSSimpleLength(11, 'VMAX'), cssString: '11vmax' }, |
- {input: new CSSSimpleLength(12, 'CM'), cssString: '12cm' }, |
- {input: new CSSSimpleLength(13, 'MM'), cssString: '13mm' }, |
- {input: new CSSSimpleLength(14, 'IN'), cssString: '14in' }, |
- {input: new CSSSimpleLength(15, 'PC'), cssString: '15pc' }, |
- {input: new CSSSimpleLength(16, 'PT'), cssString: '16pt' }, |
+ {input: new CSSSimpleLength(1, 'PX'), cssText: '1px' }, |
+ {input: new CSSSimpleLength(2, 'PERCENT'), cssText: '2%' }, |
+ {input: new CSSSimpleLength(3, '%'), cssText: '3%' }, |
+ {input: new CSSSimpleLength(4, 'EM'), cssText: '4em' }, |
+ {input: new CSSSimpleLength(5, 'EX'), cssText: '5ex' }, |
+ {input: new CSSSimpleLength(6, 'CH'), cssText: '6ch' }, |
+ {input: new CSSSimpleLength(7, 'REM'), cssText: '7rem' }, |
+ {input: new CSSSimpleLength(8, 'VW'), cssText: '8vw' }, |
+ {input: new CSSSimpleLength(9, 'VH'), cssText: '9vh' }, |
+ {input: new CSSSimpleLength(10, 'VMIN'), cssText: '10vmin' }, |
+ {input: new CSSSimpleLength(11, 'VMAX'), cssText: '11vmax' }, |
+ {input: new CSSSimpleLength(12, 'CM'), cssText: '12cm' }, |
+ {input: new CSSSimpleLength(13, 'MM'), cssText: '13mm' }, |
+ {input: new CSSSimpleLength(14, 'IN'), cssText: '14in' }, |
+ {input: new CSSSimpleLength(15, 'PC'), cssText: '15pc' }, |
+ {input: new CSSSimpleLength(16, 'PT'), cssText: '16pt' }, |
]; |
for (var i = 0; i < values.length; ++i) { |
- assert_equals(values[i].input.cssString, values[i].cssString); |
+ assert_equals(values[i].input.cssText, values[i].cssText); |
} |
}, 'Test that the CSSSimpleLength css string is generated correctly for each unit type.'); |