From 82fe742ec2625e2829b529b340cb18f00181029e Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Mon, 3 Nov 2014 20:46:32 -0800 Subject: [PATCH] Add the check layout framework for tests. Also add a test for margins. R=abarth@chromium.org Review URL: https://codereview.chromium.org/699113002 --- .../flutter/tests/layout/margins-expected.txt | 5 +++++ engine/src/flutter/tests/layout/margins.sky | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 engine/src/flutter/tests/layout/margins-expected.txt create mode 100644 engine/src/flutter/tests/layout/margins.sky diff --git a/engine/src/flutter/tests/layout/margins-expected.txt b/engine/src/flutter/tests/layout/margins-expected.txt new file mode 100644 index 0000000000..26a08bedaf --- /dev/null +++ b/engine/src/flutter/tests/layout/margins-expected.txt @@ -0,0 +1,5 @@ +FAIL: +
+Expected 10 for clientTop+offsetTop, but got 0, clientTop: 0, + offsetTop: 0. +
+Expected 50 for clientTop+offsetTop, but got 40, clientTop: 0, + offsetTop: 40. diff --git a/engine/src/flutter/tests/layout/margins.sky b/engine/src/flutter/tests/layout/margins.sky new file mode 100644 index 0000000000..7ff9236947 --- /dev/null +++ b/engine/src/flutter/tests/layout/margins.sky @@ -0,0 +1,17 @@ + + + +
+
+
+
+ + +