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

Unified Diff: sky/tests/layout/margins.sky

Issue 699113002: Add the check layout framework for tests. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove anonymous function Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/tests/layout/margins-expected.txt » ('j') | sky/tests/resources/check-layout.sky » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/layout/margins.sky
diff --git a/sky/tests/layout/margins.sky b/sky/tests/layout/margins.sky
new file mode 100644
index 0000000000000000000000000000000000000000..4156aa3939fda57cd330224875dceb01941799a4
--- /dev/null
+++ b/sky/tests/layout/margins.sky
@@ -0,0 +1,17 @@
+<sky>
+ <import src="../resources/check-layout.sky" />
+ <style>
+ .child {
+ margin: 10px;
+ height: 30px;
+ }
+ </style>
+ <div class="root" data-expected-height="70" data-total-y="10" style="background-color: pink">
+ <div class="child" data-total-y="10" style="background-color: salmon"></div>
+ <div class="child" data-total-y="50" style="background-color: papayawhip"></div>
+ </div>
+
+ <script>
+ window.checkLayout('.root');
abarth-chromium 2014/11/04 04:32:51 Rather than spamming the global, can you just expo
+ </script>
+</sky>
« no previous file with comments | « no previous file | sky/tests/layout/margins-expected.txt » ('j') | sky/tests/resources/check-layout.sky » ('J')

Powered by Google App Engine
This is Rietveld 408576698