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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html

Issue 2036893003: [CSS Typed OM] Rename StyleValue -> CSSStyleValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update more union types Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/typedcssom/transformValue.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html b/third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html
index 2c1b2e8193575b1ada43d717a98563f2b9134a1a..e6c72862c2963861b1a803d7f85e88d016d13b41 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/styleValue-parse-basic.html
@@ -4,7 +4,7 @@
<script>
test(function() {
- var result = StyleValue.parse('width', '10px');
+ var result = CSSStyleValue.parse('width', '10px');
assert_not_equals(result, null);
assert_true(result instanceof CSSSimpleLength);
@@ -13,26 +13,26 @@ test(function() {
}, 'Parsing 10px results in a CSSSimpleLength');
test(function() {
- assert_equals(StyleValue.parse('width', 'hello'), null);
- assert_equals(StyleValue.parse('width', ''), null);
- assert_equals(StyleValue.parse('width', null), null);
+ assert_equals(CSSStyleValue.parse('width', 'hello'), null);
+ assert_equals(CSSStyleValue.parse('width', ''), null);
+ assert_equals(CSSStyleValue.parse('width', null), null);
}, 'Parsing returns null on failure');
test(function() {
assert_throws(new TypeError(), function() {
- StyleValue.parse('', '10px');
+ CSSStyleValue.parse('', '10px');
});
}, 'Passing in empty string to parse for the property name throws');
test(function() {
assert_throws(new TypeError(), function() {
- StyleValue.parse('hello', '5px');
+ CSSStyleValue.parse('hello', '5px');
});
}, 'Passing in an invalid property name throws');
test(function() {
assert_throws(new TypeError(), function() {
- StyleValue.parse('border', '10px');
+ CSSStyleValue.parse('border', '10px');
});
}, 'Attempting to parse a value for a shorthand property throws');
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/typedcssom/transformValue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698