Permalink
Browse files

Add snapshot tests for unknown sized content & containers.

  • Loading branch information...
1 parent 1ef1bc8 commit 007db3c931c1fefbe00c837a4f5d6d0a7a268a22 @oliverzheng committed May 30, 2015
Showing 325 changed files with 3,349 additions and 0 deletions.
@@ -11,10 +11,12 @@ var fontSizeLength = Options.Length.px(FONT_SIZE);
var contents: Array<Options.Content> = [
Options.Content.text(fontSizeLength, 1, null),
new Options.Content(Options.Length.px(20), Options.Length.px(20), null),
+ new Options.Content(null, null, null),
];
var containers: Array<Options.Container> = [
new Options.Container(Options.Length.px(200), Options.Length.px(200)),
+ new Options.Container(null, null),
];
function generateSeleniumBrowsers(
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: bottom;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: flex-end;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: bottom;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: bottom;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: bottom;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: bottom;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: flex-end;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: flex-end;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: middle;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: center;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: middle;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: middle;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: middle;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,20 @@
+<div id="container">
+ <div id="middle">
+ <div id="content">I</div>
+ </div>
+</div>
+
+#parent {
+display: table;
+}
+
+#middle {
+display: table-cell;
+vertical-align: middle;
+}
+
+#child {
+font-size: 30px;
+height: 30px;
+text-align: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: center;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
@@ -0,0 +1,8 @@
+<div id="container">I</div>
+
+#parent {
+align-items: center;
+display: flex;
+font-size: 30px;
+justify-content: center;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
@@ -0,0 +1,6 @@
+<div id="container">I</div>
+
+#parent {
+font-size: 30px;
+text-align: center;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,14 @@
+<div id="container">
+ <div id="content">I</div>
+</div>
+
+#parent {
+position: relative;
+}
+
+#child {
+bottom: 0;
+font-size: 30px;
+height: 30px;
+position: absolute;
+}
@@ -0,0 +1,7 @@
+<div id="container">I</div>
+
+#parent {
+align-items: flex-end;
+display: flex;
+font-size: 30px;
+}
@@ -0,0 +1,14 @@
+<div id="container">
+ <div id="content">I</div>
+</div>
+
+#parent {
+position: relative;
+}
+
+#child {
+bottom: 0;
+font-size: 30px;
+height: 30px;
+position: absolute;
+}
Oops, something went wrong.

0 comments on commit 007db3c

Please sign in to comment.