From bc488339255cfa45eb32ce70f55f10081fa0d05e Mon Sep 17 00:00:00 2001
From: Adam Bradley
Date: Thu, 5 Jun 2014 15:12:44 -0500
Subject: [PATCH] test(css): reorganize css tests for snapshots
---
.../contacts/test.scenario.js | 11 -
demos/directive/list/reorderDelete/index.html | 2 +-
demos/directive/tabs/tabsAndNav/index.html | 18 +-
test/css/actionsheet.html | 76 -
test/css/bars-clear.html | 1 +
test/css/biglists.html | 1294 -----------------
test/css/button-bar.html | 21 +-
test/css/buttons-borderless.html | 52 +
test/css/buttons-button-block-clear.html | 36 +
test/css/buttons-button-block.html | 34 +
test/css/buttons-button-outline.html | 36 +
test/css/buttons-clear.html | 45 +
test/css/buttons-default.html | 50 +
test/css/buttons-full.html | 42 +
test/css/buttons-large.html | 47 +
test/css/buttons-link-block-clear.html | 36 +
test/css/buttons-link-block.html | 34 +
test/css/buttons-link-outline.html | 36 +
test/css/buttons-misc.html | 38 +
test/css/buttons-outline.html | 49 +
test/css/buttons-pseudo-icon-compare.html | 45 +
test/css/buttons-small.html | 48 +
test/css/buttons.html | 448 ------
test/css/cards-header-footer.html | 32 +
test/css/cards-item-avatar.html | 47 +
test/css/cards-item-body.html | 52 +
test/css/cards-item-icon.html | 44 +
test/css/cards-item-thumbnail.html | 58 +
test/css/cards-text.html | 60 +
test/css/cards.html | 190 ---
test/css/colors.html | 3 +-
test/css/footers.html | 2 +-
test/css/grid.html | 11 +-
test/css/headers.html | 31 +-
test/css/input-checkbox.html | 10 +-
test/css/input-radio.html | 10 +-
test/css/input-range.html | 17 +-
test/css/input-select.html | 10 +-
test/css/input-text.html | 1 +
test/css/input-textarea.html | 1 +
test/css/input-toggle.html | 81 +-
test/css/lists-avatar.html | 57 +
test/css/lists-buttons.html | 115 ++
test/css/lists-colors.html | 36 +
test/css/lists-icons.html | 89 ++
test/css/lists-text.html | 91 ++
test/css/lists-thumbnails.html | 56 +
test/css/lists.html | 585 --------
test/css/loading.html | 24 -
test/css/modals.html | 59 -
test/css/progress.html | 13 +-
test/css/scroll.html | 4 +-
.../css/{search-ios7.html => search-ios.html} | 1 +
test/css/search.html | 1 +
test/css/side-menus.html | 56 -
test/css/{splitPane.html => split-pane.html} | 3 +-
test/css/status-bar.html | 1 +
test/css/tabs-and-cards.html | 16 +-
test/css/{tab-bars.html => tabs-default.html} | 22 +-
...ons-bottom.html => tabs-icons-bottom.html} | 37 +-
...s-icons-left.html => tabs-icons-left.html} | 24 +-
...icons-right.html => tabs-icons-right.html} | 24 +-
...-bars-no-icons.html => tabs-no-icons.html} | 23 +-
...s-only-icons.html => tabs-only-icons.html} | 23 +-
...with-footer.html => tabs-with-footer.html} | 5 +-
test/css/test.scenario.js | 36 +
test/css/tree_bark.png | Bin 42360 -> 0 bytes
test/css/type.html | 3 +-
68 files changed, 1531 insertions(+), 3032 deletions(-)
delete mode 100644 test/css/actionsheet.html
delete mode 100644 test/css/biglists.html
create mode 100644 test/css/buttons-borderless.html
create mode 100644 test/css/buttons-button-block-clear.html
create mode 100644 test/css/buttons-button-block.html
create mode 100644 test/css/buttons-button-outline.html
create mode 100644 test/css/buttons-clear.html
create mode 100644 test/css/buttons-default.html
create mode 100644 test/css/buttons-full.html
create mode 100644 test/css/buttons-large.html
create mode 100644 test/css/buttons-link-block-clear.html
create mode 100644 test/css/buttons-link-block.html
create mode 100644 test/css/buttons-link-outline.html
create mode 100644 test/css/buttons-misc.html
create mode 100644 test/css/buttons-outline.html
create mode 100644 test/css/buttons-pseudo-icon-compare.html
create mode 100644 test/css/buttons-small.html
delete mode 100644 test/css/buttons.html
create mode 100644 test/css/cards-header-footer.html
create mode 100644 test/css/cards-item-avatar.html
create mode 100644 test/css/cards-item-body.html
create mode 100644 test/css/cards-item-icon.html
create mode 100644 test/css/cards-item-thumbnail.html
create mode 100644 test/css/cards-text.html
delete mode 100644 test/css/cards.html
create mode 100644 test/css/lists-avatar.html
create mode 100644 test/css/lists-buttons.html
create mode 100644 test/css/lists-colors.html
create mode 100644 test/css/lists-icons.html
create mode 100644 test/css/lists-text.html
create mode 100644 test/css/lists-thumbnails.html
delete mode 100644 test/css/lists.html
delete mode 100644 test/css/loading.html
delete mode 100644 test/css/modals.html
rename test/css/{search-ios7.html => search-ios.html} (98%)
delete mode 100644 test/css/side-menus.html
rename test/css/{splitPane.html => split-pane.html} (99%)
rename test/css/{tab-bars.html => tabs-default.html} (60%)
rename test/css/{tab-bars-icons-bottom.html => tabs-icons-bottom.html} (60%)
rename test/css/{tab-bars-icons-left.html => tabs-icons-left.html} (56%)
rename test/css/{tab-bars-icons-right.html => tabs-icons-right.html} (57%)
rename test/css/{tab-bars-no-icons.html => tabs-no-icons.html} (52%)
rename test/css/{tab-bars-only-icons.html => tabs-only-icons.html} (56%)
rename test/css/{tab-with-footer.html => tabs-with-footer.html} (96%)
create mode 100644 test/css/test.scenario.js
delete mode 100644 test/css/tree_bark.png
diff --git a/demos/directive/collectionRepeat/contacts/test.scenario.js b/demos/directive/collectionRepeat/contacts/test.scenario.js
index ce3032b79e..2571edca98 100644
--- a/demos/directive/collectionRepeat/contacts/test.scenario.js
+++ b/demos/directive/collectionRepeat/contacts/test.scenario.js
@@ -2,17 +2,6 @@
name: contacts
component: collectionRepeat
---
-it('should scroll to the bottom', function(){
- var ele = element(by.css('.bar-header .button'));
- ele.click();
- browser.sleep(200);
-});
-
-it('should scroll to the top', function(){
- var ele = element(by.css('.bar-header'));
- ele.click();
- browser.sleep(200);
-});
it('should filter by juan', function(){
var ele = element(by.model('search'));
diff --git a/demos/directive/list/reorderDelete/index.html b/demos/directive/list/reorderDelete/index.html
index c1502edba9..c8e0d08a93 100644
--- a/demos/directive/list/reorderDelete/index.html
+++ b/demos/directive/list/reorderDelete/index.html
@@ -18,7 +18,7 @@ component: ionList
-
+
Item {{item}}
Here's an item description.
-
+
+ Almost every mobile application has some form of tab bar interface.
+
+ Ionic has a built-in ion-tabs directive that we can use in order to build our tabbed interface. Create the ion-tabs directive and we can start filling it with tabs. The directive to create a tab is just the ion-tab directive. This takes a title, and this specifies what the title of our tab will be.
+
+ When we save this, we now have a tab that pops up with the text of “Home tab”.
+
+ Let’s add a second tab, because a single-tabbed app is pretty boring. I’m just going to call this one “About”. I’m going to create some equally interesting content.
+
+ We can now swap between our tabs, and see that things happen! We may want to change the color scheme of our tabs. Ionic ships with several colors that are detailed in the documentation in the notes, but if we want to update that, we can set a class of ion-tabs.
+
+ Now, if we look in the documentation, the colors are unprefixed. If we want the blue color, we use the positive class. However, in the case of tabs, we want those to be able to be sub-customizable. For this, we have to prefix this class with ‘tabs-‘. Saving, we now see the nice color.
+
+ Let’s add a header. This can be added with the ion-header-bar directive. Inside, we can set what we want the title to be. Let’s set a color on it. This is interesting, but what if we want a different title for each section of the application?
+
+ You can set a navigation system up, which is detailed in more advanced videos and formulas. For the sake of simplicity in this video, we will create an ion-header-bar in each tab of our app. Copy the header bar, change the titles, and save. We now have updating headers across our tabs!
+
diff --git a/test/css/actionsheet.html b/test/css/actionsheet.html
deleted file mode 100644
index d0965deb3f..0000000000
--- a/test/css/actionsheet.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
- Action Sheets
-
-
-
-
-
-
-
-
-
-
Do you like ice cream?
-
Tweet
-
Email
-
-
- Delete photos
-
-
- Cancel
-
-
-
-
-
-
-
-
diff --git a/test/css/bars-clear.html b/test/css/bars-clear.html
index edb12447b0..beb618ed7b 100644
--- a/test/css/bars-clear.html
+++ b/test/css/bars-clear.html
@@ -1,3 +1,4 @@
+
diff --git a/test/css/biglists.html b/test/css/biglists.html
deleted file mode 100644
index 65a55c89d9..0000000000
--- a/test/css/biglists.html
+++ /dev/null
@@ -1,1294 +0,0 @@
-
-
-
- Big Lists
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/css/button-bar.html b/test/css/button-bar.html
index 8b8d22e6f5..25f927e219 100644
--- a/test/css/button-bar.html
+++ b/test/css/button-bar.html
@@ -1,3 +1,4 @@
+
@@ -12,7 +13,7 @@
-
+
One
diff --git a/test/css/buttons-borderless.html b/test/css/buttons-borderless.html
new file mode 100644
index 0000000000..8f957400dd
--- /dev/null
+++ b/test/css/buttons-borderless.html
@@ -0,0 +1,52 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-button-block-clear.html b/test/css/buttons-button-block-clear.html
new file mode 100644
index 0000000000..4b7aca7dc1
--- /dev/null
+++ b/test/css/buttons-button-block-clear.html
@@ -0,0 +1,36 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-button-block.html b/test/css/buttons-button-block.html
new file mode 100644
index 0000000000..146e88a6c9
--- /dev/null
+++ b/test/css/buttons-button-block.html
@@ -0,0 +1,34 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-button-outline.html b/test/css/buttons-button-outline.html
new file mode 100644
index 0000000000..996e90f37f
--- /dev/null
+++ b/test/css/buttons-button-outline.html
@@ -0,0 +1,36 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-clear.html b/test/css/buttons-clear.html
new file mode 100644
index 0000000000..e4caee9fe2
--- /dev/null
+++ b/test/css/buttons-clear.html
@@ -0,0 +1,45 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-default.html b/test/css/buttons-default.html
new file mode 100644
index 0000000000..f98b2e8d24
--- /dev/null
+++ b/test/css/buttons-default.html
@@ -0,0 +1,50 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-full.html b/test/css/buttons-full.html
new file mode 100644
index 0000000000..9c5142ce24
--- /dev/null
+++ b/test/css/buttons-full.html
@@ -0,0 +1,42 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-large.html b/test/css/buttons-large.html
new file mode 100644
index 0000000000..f8a088d6ca
--- /dev/null
+++ b/test/css/buttons-large.html
@@ -0,0 +1,47 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-link-block-clear.html b/test/css/buttons-link-block-clear.html
new file mode 100644
index 0000000000..6eb4603b58
--- /dev/null
+++ b/test/css/buttons-link-block-clear.html
@@ -0,0 +1,36 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-link-block.html b/test/css/buttons-link-block.html
new file mode 100644
index 0000000000..046781721a
--- /dev/null
+++ b/test/css/buttons-link-block.html
@@ -0,0 +1,34 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-link-outline.html b/test/css/buttons-link-outline.html
new file mode 100644
index 0000000000..92a3635364
--- /dev/null
+++ b/test/css/buttons-link-outline.html
@@ -0,0 +1,36 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-misc.html b/test/css/buttons-misc.html
new file mode 100644
index 0000000000..a268b6d6b7
--- /dev/null
+++ b/test/css/buttons-misc.html
@@ -0,0 +1,38 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-outline.html b/test/css/buttons-outline.html
new file mode 100644
index 0000000000..4b25f25d86
--- /dev/null
+++ b/test/css/buttons-outline.html
@@ -0,0 +1,49 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-pseudo-icon-compare.html b/test/css/buttons-pseudo-icon-compare.html
new file mode 100644
index 0000000000..1bab6c4cd9
--- /dev/null
+++ b/test/css/buttons-pseudo-icon-compare.html
@@ -0,0 +1,45 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons-small.html b/test/css/buttons-small.html
new file mode 100644
index 0000000000..fb5123efb7
--- /dev/null
+++ b/test/css/buttons-small.html
@@ -0,0 +1,48 @@
+
+
+
+
+
Buttons
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/buttons.html b/test/css/buttons.html
deleted file mode 100644
index c0d3b03362..0000000000
--- a/test/css/buttons.html
+++ /dev/null
@@ -1,448 +0,0 @@
-
-
-
-
Buttons
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/css/cards-header-footer.html b/test/css/cards-header-footer.html
new file mode 100644
index 0000000000..0a7bbc327a
--- /dev/null
+++ b/test/css/cards-header-footer.html
@@ -0,0 +1,32 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards-item-avatar.html b/test/css/cards-item-avatar.html
new file mode 100644
index 0000000000..6bde69bca2
--- /dev/null
+++ b/test/css/cards-item-avatar.html
@@ -0,0 +1,47 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards-item-body.html b/test/css/cards-item-body.html
new file mode 100644
index 0000000000..3b3567b957
--- /dev/null
+++ b/test/css/cards-item-body.html
@@ -0,0 +1,52 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards-item-icon.html b/test/css/cards-item-icon.html
new file mode 100644
index 0000000000..625461a60b
--- /dev/null
+++ b/test/css/cards-item-icon.html
@@ -0,0 +1,44 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards-item-thumbnail.html b/test/css/cards-item-thumbnail.html
new file mode 100644
index 0000000000..975c425472
--- /dev/null
+++ b/test/css/cards-item-thumbnail.html
@@ -0,0 +1,58 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards-text.html b/test/css/cards-text.html
new file mode 100644
index 0000000000..c171ff4723
--- /dev/null
+++ b/test/css/cards-text.html
@@ -0,0 +1,60 @@
+
+
+
+
+
Cards
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/css/cards.html b/test/css/cards.html
deleted file mode 100644
index d783011be9..0000000000
--- a/test/css/cards.html
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
Cards
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/css/colors.html b/test/css/colors.html
index 8e2a28f5f1..c40b703424 100644
--- a/test/css/colors.html
+++ b/test/css/colors.html
@@ -1,3 +1,4 @@
+
@@ -22,7 +23,7 @@
-
-
diff --git a/test/css/input-select.html b/test/css/input-select.html
index 1ab90b04d0..2a6cea2cc0 100644
--- a/test/css/input-select.html
+++ b/test/css/input-select.html
@@ -1,3 +1,4 @@
+
@@ -5,6 +6,11 @@
+
@@ -160,10 +166,6 @@
-