Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/computedstyle/numbers.html

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698