mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
test(): snapshot updates
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
|
||||
<!-- Text -->
|
||||
<ion-tabs>
|
||||
<ion-tabs class="no-navbar">
|
||||
<ion-tab tab-title="Recents"></ion-tab>
|
||||
<ion-tab tab-title="Favorites"></ion-tab>
|
||||
<ion-tab tab-title="Settings"></ion-tab>
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
<!-- Icons -->
|
||||
<ion-tabs>
|
||||
<ion-tabs class="no-navbar">
|
||||
<ion-tab tab-icon="call"></ion-tab>
|
||||
<ion-tab tab-icon="heart"></ion-tab>
|
||||
<ion-tab tab-icon="settings"></ion-tab>
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
<!-- 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="Favorites" tab-icon="star"></ion-tab>
|
||||
<ion-tab tab-title="Radio" tab-icon="musical-notes"></ion-tab>
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
|
||||
<!-- 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="Favorites" tab-icon="heart"></ion-tab>
|
||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
<!-- 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="Favorites" tab-icon="heart"></ion-tab>
|
||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||
@ -40,21 +40,21 @@
|
||||
|
||||
|
||||
<!-- 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="Favorites" tab-icon="heart"></ion-tab>
|
||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||
</ion-tabs>
|
||||
|
||||
<!-- 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="Favorites" tab-icon="heart"></ion-tab>
|
||||
<ion-tab tab-title="Settings" tab-icon="settings"></ion-tab>
|
||||
</ion-tabs>
|
||||
|
||||
<!-- 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 Temple of Doom"></ion-tab>
|
||||
<ion-tab tab-title="Indiana Jones and the Last Crusade"></ion-tab>
|
||||
@ -66,7 +66,4 @@
|
||||
height: auto;
|
||||
border-top: 1px solid gray;
|
||||
}
|
||||
ion-tabs .navbar-container {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
@ -17,9 +17,19 @@
|
||||
stylesheet.setAttribute('rel', 'stylesheet');
|
||||
stylesheet.setAttribute('href', '../../../css/' + theme);
|
||||
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>
|
||||
|
||||
<style>
|
||||
.snapshot body {
|
||||
max-height: 700px;
|
||||
}
|
||||
|
||||
/* hack to create tall scrollable areas for testing using <f></f> */
|
||||
f {
|
||||
display: block;
|
||||
|
@ -1,7 +1,7 @@
|
||||
describe('<%= relativePath %>: <%= platform %>', 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 %>
|
||||
|
@ -9,9 +9,9 @@ exports.config = {
|
||||
//domain: 'localhost:8080',
|
||||
|
||||
specs: 'dist/e2e/**/*e2e.js',
|
||||
//specs: 'dist/e2e/switch/basic/*e2e.js',
|
||||
//specs: 'dist/e2e/tabs/**/*e2e.js',
|
||||
|
||||
sleepBetweenSpecs: 1500,
|
||||
sleepBetweenSpecs: 1400,
|
||||
|
||||
platformDefauls: {
|
||||
browser: 'chrome',
|
||||
|
Reference in New Issue
Block a user