mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(NavController): restructuring and perf improvements
This commit is contained in:
@@ -2,22 +2,10 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<!-- https://www.chromium.org/developers/design-documents/chromium-graphics/how-to-get-gpu-rasterization -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<link href="../../../css/ionic.css" rel="stylesheet">
|
||||
|
||||
<script>
|
||||
// dynamically load the stylesheet depending on theme querystring
|
||||
// defaults to use the light-theme
|
||||
var theme = 'ionic.css';
|
||||
if (location.href.indexOf('ionictheme=dark') > -1) {
|
||||
theme = 'ionic.dark.css';
|
||||
}
|
||||
|
||||
var stylesheet = document.createElement('link');
|
||||
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 {
|
||||
@@ -27,7 +15,12 @@
|
||||
|
||||
<style>
|
||||
.snapshot body {
|
||||
max-height: 700px;
|
||||
/* crop an exact size */
|
||||
max-height: 700px !important;
|
||||
}
|
||||
.snapshot scroll-content {
|
||||
/* disable scrollbars */
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/* hack to create tall scrollable areas for testing using <f></f> */
|
||||
|
||||
@@ -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 %>&snapshot=true');
|
||||
browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>&ionicanimate=false&snapshot=true');
|
||||
});
|
||||
|
||||
<%= contents %>
|
||||
|
||||
Reference in New Issue
Block a user