| 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');
|
|
|
|
|