Chromium Code Reviews| Index: LayoutTests/fast/shapes/parsing/parsing-shape-outside-inset.html |
| diff --git a/LayoutTests/fast/shapes/parsing/parsing-shape-outside-inset.html b/LayoutTests/fast/shapes/parsing/parsing-shape-outside-inset.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1fe1d5fa607eccf224604a8b545317f5d5f7aaba |
| --- /dev/null |
| +++ b/LayoutTests/fast/shapes/parsing/parsing-shape-outside-inset.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<html> |
| + <head> |
| + <script src="../../../resources/testharness.js"></script> |
| + <script src="../../../resources/testharnessreport.js"></script> |
| + </head> |
| + <body> |
| + <script type="text/javascript"> |
| + // These are in their simplest form and should serialize that way |
| + var inset_tests = ['inset(10px)', 'inset(10px round 10px)'] |
|
Bear Travis
2014/04/07 21:59:13
Why have this test (parsing-shape-outside-inset) i
|
| + inset_tests.forEach(function (inset_test) { |
| + test(function() { |
| + var div = document.createElement('div'); |
| + document.body.appendChild(div); |
| + div.style.setProperty('shape-outside', inset_test); |
| + var inlineActual = div.style.getPropertyValue('shape-outside'); |
| + assert_equals(inlineActual, inset_test); |
| + var computedActual = getComputedStyle(div).getPropertyValue('shape-outside'); |
| + assert_equals(computedActual, inset_test); |
| + document.body.removeChild(div); |
| + }, inset_test); |
| + }); |
| + </script> |
| + </body> |
| +</html> |