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

Unified Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed ASSERT_NOT_REACH in linux_blink_dbg Created 6 years, 7 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/css/getComputedStyle/getComputedStyle-all.html
diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html
new file mode 100644
index 0000000000000000000000000000000000000000..e216023605a3aef9dc7688d5d323211dacc373e6
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<style>
+#initial { all: initial; }
+#inherit { all: inherit; }
+#invalid { all: green; }
+#notOnlyInitial { all: initial; color: green; }
+#notOnlyInherit { all: inherit; color: green; }
+</style>
+<script type="text/javascript">
+function getPropertyValueAll(id)
+{
+ var ob = document.getElementById(id);
+ return document.defaultView.getComputedStyle(ob, null).getPropertyValue('all');
esprehn 2014/05/30 00:59:22 you don't need this document.defaultView stuff. Ju
tasak 2014/06/04 09:37:40 Done.
+}
+</script>
+</head>
+<body>
+ <div id="initial"></div>
+ <div id="inherit"></div>
+ <div id="invalid"></div>
+ <div id="notOnlyInitial"></div>
+ <div id="notOnlyInherit"></div>
+ <pre id="console"></pre>
+</body>
+<script>
+description('Test calling getPropertyValue on computed styles for all shorthand property.');
+
+shouldBe('getPropertyValueAll("initial")', '""');
esprehn 2014/05/30 00:59:22 This can be much simpler, I'd just write: 'getCom
tasak 2014/06/04 09:37:40 Done.
+shouldBe('getPropertyValueAll("inherit")', '""');
esprehn 2014/05/30 00:59:22 shouldBeEqualToString()
tasak 2014/06/04 09:37:40 Done.
+shouldBe('getPropertyValueAll("invalid")', '""');
+shouldBe('getPropertyValueAll("notOnlyInitial")', '""');
+shouldBe('getPropertyValueAll("notOnlyInherit")', '""');
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698