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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/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/inlinestyle/numbers.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/numbers.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/numbers.html
index bc2c50953e62a97de7d9d5df8a91422741bc3f80..cbbfb96ba6b9b62cbeb37974208fca003f8c4e22 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/numbers.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/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>
@@ -21,23 +21,23 @@ test(function() {
var value = 10 * (i + 1);
testElement.style[gettingProperties[i]] = "" + value;
var result = testElement.styleMap.get(gettingProperties[i]);
- assert_equals(result.constructor.name, CSSNumberValue.name,
+ assert_equals(result.constructor.name, CSSUnitValue.name,
"result from " + gettingProperties[i].name);
assert_equals(result.value, value);
}
-}, "Single valued CSSNumberValues can be retrieved from Inline StyleMap");
+}, "Single valued CSSUnitValues can be retrieved from Inline StyleMap");
test(function() {
testElement.style.animationIterationCount = "6.2, 9.8, 1";
var result = testElement.styleMap.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_equals(result[0].value, 6.2);
assert_equals(result[1].value, 9.8);
assert_equals(result[2].value, 1);
-}, "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