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

Unified Diff: LayoutTests/fast/shapes/parsing/parsing-shape-outside-inset.html

Issue 227793002: [CSS Shapes] inset args and radial args should serialize to the simplest form (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix test failures Created 6 years, 8 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: 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>

Powered by Google App Engine
This is Rietveld 408576698