mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
test(): snapshot updates
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<!-- Text -->
|
<!-- Text -->
|
||||||
<ion-tabs>
|
<ion-tabs class="no-navbar">
|
||||||
<ion-tab tab-title="Recents"></ion-tab>
|
<ion-tab tab-title="Recents"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites"></ion-tab>
|
<ion-tab tab-title="Favorites"></ion-tab>
|
||||||
<ion-tab tab-title="Settings"></ion-tab>
|
<ion-tab tab-title="Settings"></ion-tab>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Icons -->
|
<!-- Icons -->
|
||||||
<ion-tabs>
|
<ion-tabs class="no-navbar">
|
||||||
<ion-tab tab-icon="call"></ion-tab>
|
<ion-tab tab-icon="call"></ion-tab>
|
||||||
<ion-tab tab-icon="heart"></ion-tab>
|
<ion-tab tab-icon="heart"></ion-tab>
|
||||||
<ion-tab tab-icon="settings"></ion-tab>
|
<ion-tab tab-icon="settings"></ion-tab>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Icons on top of text -->
|
<!-- Icons on top of text -->
|
||||||
<ion-tabs>
|
<ion-tabs class="no-navbar">
|
||||||
<ion-tab tab-title="Location" tab-icon="navigate"></ion-tab>
|
<ion-tab tab-title="Location" tab-icon="navigate"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites" tab-icon="star"></ion-tab>
|
<ion-tab tab-title="Favorites" tab-icon="star"></ion-tab>
|
||||||
<ion-tab tab-title="Radio" tab-icon="musical-notes"></ion-tab>
|
<ion-tab tab-title="Radio" tab-icon="musical-notes"></ion-tab>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Icons below text -->
|
<!-- Icons below text -->
|
||||||
<ion-tabs tab-bar-icons="bottom">
|
<ion-tabs tab-bar-icons="bottom" class="no-navbar">
|
||||||
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
||||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Icons right of text -->
|
<!-- Icons right of text -->
|
||||||
<ion-tabs tab-bar-icons="right">
|
<ion-tabs tab-bar-icons="right" class="no-navbar">
|
||||||
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
||||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||||
@ -40,21 +40,21 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Icons left of text -->
|
<!-- Icons left of text -->
|
||||||
<ion-tabs tab-bar-icons="left">
|
<ion-tabs tab-bar-icons="left" class="no-navbar">
|
||||||
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
||||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
|
|
||||||
<!-- No icons -->
|
<!-- No icons -->
|
||||||
<ion-tabs tab-bar-icons="hide">
|
<ion-tabs tab-bar-icons="hide" class="no-navbar">
|
||||||
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
<ion-tab tab-title="Recents" tab-icon="call"></ion-tab>
|
||||||
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
<ion-tab tab-title="Favorites" tab-icon="heart"></ion-tab>
|
||||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
|
|
||||||
<!-- No overflow text -->
|
<!-- No overflow text -->
|
||||||
<ion-tabs>
|
<ion-tabs class="no-navbar">
|
||||||
<ion-tab tab-title="Indiana Jones and the Raiders of the Lost Ark"></ion-tab>
|
<ion-tab tab-title="Indiana Jones and the Raiders of the Lost Ark"></ion-tab>
|
||||||
<ion-tab tab-title="Indiana Jones and the Temple of Doom"></ion-tab>
|
<ion-tab tab-title="Indiana Jones and the Temple of Doom"></ion-tab>
|
||||||
<ion-tab tab-title="Indiana Jones and the Last Crusade"></ion-tab>
|
<ion-tab tab-title="Indiana Jones and the Last Crusade"></ion-tab>
|
||||||
@ -66,7 +66,4 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
border-top: 1px solid gray;
|
border-top: 1px solid gray;
|
||||||
}
|
}
|
||||||
ion-tabs .navbar-container {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -17,9 +17,19 @@
|
|||||||
stylesheet.setAttribute('rel', 'stylesheet');
|
stylesheet.setAttribute('rel', 'stylesheet');
|
||||||
stylesheet.setAttribute('href', '../../../css/' + theme);
|
stylesheet.setAttribute('href', '../../../css/' + theme);
|
||||||
document.getElementsByTagName('head')[0].appendChild(stylesheet);
|
document.getElementsByTagName('head')[0].appendChild(stylesheet);
|
||||||
|
|
||||||
|
if (location.href.indexOf('snapshot=true') > -1) {
|
||||||
|
document.documentElement.classList.add('snapshot');
|
||||||
|
} else {
|
||||||
|
document.documentElement.classList.remove('snapshot');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.snapshot body {
|
||||||
|
max-height: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
/* hack to create tall scrollable areas for testing using <f></f> */
|
/* hack to create tall scrollable areas for testing using <f></f> */
|
||||||
f {
|
f {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
describe('<%= relativePath %>: <%= platform %>', function() {
|
describe('<%= relativePath %>: <%= platform %>', function() {
|
||||||
|
|
||||||
it('should init', function() {
|
it('should init', function() {
|
||||||
browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>');
|
browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>&snapshot=true');
|
||||||
});
|
});
|
||||||
|
|
||||||
<%= contents %>
|
<%= contents %>
|
||||||
|
@ -9,9 +9,9 @@ exports.config = {
|
|||||||
//domain: 'localhost:8080',
|
//domain: 'localhost:8080',
|
||||||
|
|
||||||
specs: 'dist/e2e/**/*e2e.js',
|
specs: 'dist/e2e/**/*e2e.js',
|
||||||
//specs: 'dist/e2e/switch/basic/*e2e.js',
|
//specs: 'dist/e2e/tabs/**/*e2e.js',
|
||||||
|
|
||||||
sleepBetweenSpecs: 1500,
|
sleepBetweenSpecs: 1400,
|
||||||
|
|
||||||
platformDefauls: {
|
platformDefauls: {
|
||||||
browser: 'chrome',
|
browser: 'chrome',
|
||||||
|
Reference in New Issue
Block a user