| Index: third_party/WebKit/LayoutTests/typedcssom/cssLengthValue.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssLengthValue.html b/third_party/WebKit/LayoutTests/typedcssom/cssLengthValue.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b19f29aa240336dc05b0e62da949279652209bb1
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/cssLengthValue.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script src='../resources/testharness.js'></script>
|
| +<script src='../resources/testharnessreport.js'></script>
|
| +<script>
|
| +
|
| +test(function() {
|
| + var result = CSSLengthValue.fromValue(5, 'px');
|
| + assert_true(result instanceof CSSSimpleLength);
|
| + assert_equals(result.value, 5);
|
| + assert_equals(result.type, 'px');
|
| +}, "Test that CSSLengthValue's static fromValue method produces a CSSSimpleLength.");
|
| +
|
| +test(function() {
|
| + var result = CSSLengthValue.fromDictionary({px: 1, percent: 2.5});
|
| + assert_true(result instanceof CSSCalcLength);
|
| + assert_equals(result.px, 1);
|
| + assert_equals(result.percent, 2.5);
|
| +}, "Test that CSSLengthValue's static fromDictionary method produces a CSSCalcLength.");
|
| +
|
| +</script>
|
| +<body>
|
| +</body>
|
|
|