| Index: third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html
|
| index 9e44b952417362312cda22814188519d7cb1e29f..3ff824e75fd1ed3cd8660babcaabab975437fbcd 100644
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html
|
| @@ -2,7 +2,7 @@
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
|
|
| -<div id="testElement">text</div>
|
| +<div id="testElement"></div>
|
|
|
| <script>
|
|
|
| @@ -23,22 +23,22 @@ test(function() {
|
| var value = properties[property];
|
| testElement.style[property] = "" + value;
|
| var result = computedMap.get(property);
|
| - assert_equals(result.constructor.name, CSSNumberValue.name);
|
| + assert_equals(result.constructor.name, CSSUnitValue.name);
|
| assert_approx_equals(result.value, value, EPSILON);
|
| }
|
| -}, "Single valued CSSNumberValues can be retrieved from Computed StyleMap");
|
| +}, "Single valued CSSUnitValues can be retrieved from Computed StyleMap");
|
|
|
| test(function() {
|
| testElement.style.animationIterationCount = "6.2, 9.8, 1";
|
|
|
| var result = computedMap.getAll('animation-iteration-count');
|
| assert_equals(result.length, 3);
|
| - assert_equals(result[0].constructor.name, CSSNumberValue.name);
|
| - assert_equals(result[1].constructor.name, CSSNumberValue.name);
|
| - assert_equals(result[2].constructor.name, CSSNumberValue.name);
|
| + assert_equals(result[0].constructor.name, CSSUnitValue.name);
|
| + assert_equals(result[1].constructor.name, CSSUnitValue.name);
|
| + assert_equals(result[2].constructor.name, CSSUnitValue.name);
|
| assert_approx_equals(result[0].value, 6.2, EPSILON);
|
| assert_approx_equals(result[1].value, 9.8, EPSILON);
|
| assert_approx_equals(result[2].value, 1, EPSILON);
|
| -}, "Can retrieve list of CSSNumberValues from list-valued property");
|
| +}, "Can retrieve list of CSSUnitValues from list-valued property");
|
|
|
| </script>
|
|
|