mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
snapshat
This commit is contained in:
@@ -79,4 +79,3 @@ module.exports = function(options) {
|
||||
console.log('Uploading e2e tests:', options.testId);
|
||||
uploadFiles(inputDir, '');
|
||||
};
|
||||
|
||||
|
||||
62
scripts/e2e/e2e.template.html
Normal file
62
scripts/e2e/e2e.template.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<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" />
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
|
||||
|
||||
<link href="../../../css/ionic.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
/* hack to create tall scrollable areas for testing using <f></f> */
|
||||
f {
|
||||
display: block;
|
||||
margin: 15px auto;
|
||||
max-width: 150px;
|
||||
height: 150px;
|
||||
background: blue;
|
||||
}
|
||||
f:last-of-type {
|
||||
background: red;
|
||||
}
|
||||
ion-tab:nth-of-type(2) f,
|
||||
.green f {
|
||||
background: green;
|
||||
max-width: 250px;
|
||||
height: 100px;
|
||||
}
|
||||
ion-tab:nth-of-type(3) f,
|
||||
.yellow f {
|
||||
background: yellow;
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ion-app module="{{MODULE}}">
|
||||
<ion-loading-icon></ion-loading-icon>
|
||||
</ion-app>
|
||||
|
||||
<!-- SystemJS Loader -->
|
||||
<script src="../../../lib/traceur-runtime.js"></script>
|
||||
<script src="../../../lib/system.js"></script>
|
||||
<script src="../../../lib/config.js"></script>
|
||||
|
||||
<!-- Angular bundle -->
|
||||
<script src="../../../lib/angular2.dev.js"></script>
|
||||
|
||||
<!-- test module -->
|
||||
<script src="index.js"></script>
|
||||
|
||||
<!-- ionic bundle -->
|
||||
<script src="../../../lib/ionic.bundle.js"></script>
|
||||
|
||||
<!-- web animations polyfill for non-chrome browsers -->
|
||||
<script src="../../../lib/web-animations.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,8 +6,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
|
||||
|
||||
<link href="/dist/css/ionic.css" rel="stylesheet">
|
||||
|
||||
<link href="/css/ionic.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
/* hack to create tall scrollable areas for testing using <f></f> */
|
||||
@@ -42,18 +42,18 @@
|
||||
</ion-app>
|
||||
|
||||
<!-- SystemJS Loader -->
|
||||
<script src="/scripts/resources/traceur-runtime.js"></script>
|
||||
<script src="/scripts/resources/system.js"></script>
|
||||
<script src="/config.js"></script>
|
||||
<script src="/lib/traceur-runtime.js"></script>
|
||||
<script src="/lib/system.js"></script>
|
||||
<script src="/lib/config.js"></script>
|
||||
|
||||
<!-- Angular bundle -->
|
||||
<script src="/scripts/resources/angular2.dev.js"></script>
|
||||
<script src="/lib/angular2.dev.js"></script>
|
||||
|
||||
<!-- ionic bundle -->
|
||||
<script src="/dist/js/ionic.bundle.js"></script>
|
||||
<script src="/lib/ionic.bundle.js"></script>
|
||||
|
||||
<!-- web animations polyfill for non-chrome browsers -->
|
||||
<script src="/dist/vendor/web-animations-js/web-animations.min.js"></script>
|
||||
<script src="/lib/web-animations.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -20,7 +20,7 @@ module.exports = function(gulp, argv, buildConfig) {
|
||||
console.log('Serving `dist` on http://localhost:' + buildConfig.protractorPort);
|
||||
});
|
||||
|
||||
gulp.task('snapshot', ['build', 'protractor-server'], function(done) {
|
||||
gulp.task('snapshot', [/*'build',*/ 'protractor-server'], function(done) {
|
||||
var protractorConfigFile = path.resolve(projectRoot, 'scripts/snapshot/protractor.config.js');
|
||||
snapshot(done, protractorConfigFile);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user