You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/24 16:42:58 UTC

[19/50] incubator-weex git commit: * [test] use slow env in weex-wd

* [test] use slow env in weex-wd


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/541f8c6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/541f8c6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/541f8c6f

Branch: refs/heads/dev
Commit: 541f8c6fb1cb56756ff948d6239127c897ab9746
Parents: f76a13e
Author: sospartan <so...@gmail.com>
Authored: Mon Feb 20 18:28:41 2017 +0800
Committer: sospartan <so...@gmail.com>
Committed: Mon Feb 20 18:28:41 2017 +0800

----------------------------------------------------------------------
 package.json         | 2 +-
 test/scripts/util.js | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/541f8c6f/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 69e0f08..de28652 100644
--- a/package.json
+++ b/package.json
@@ -93,7 +93,7 @@
   },
   "devDependencies": {
     "xml2map": "^1.0.2",
-    "weex-wd": "^1.0.8",
+    "weex-wd": "^1.0.9",
     "macaca-utils": "^0.1.9",
     "babel-core": "^6.17.0",
     "babel-istanbul": "^0.11.0",

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/541f8c6f/test/scripts/util.js
----------------------------------------------------------------------
diff --git a/test/scripts/util.js b/test/scripts/util.js
index bef3746..a1b60f1 100644
--- a/test/scripts/util.js
+++ b/test/scripts/util.js
@@ -6,21 +6,22 @@ var os = require('os')
 var platform = process.env.platform || 'android';
 platform = platform.toLowerCase();
 
+const isIOS = platform === 'ios';
+const isRunInCI = process.env.run_in_ci?true:false;
+
 var iOSOpts = {
   deviceName: 'iPhone 6',
   platformName: 'iOS',
-  //reuse:2,
+  slowEnv: isRunInCI,
   app: path.join(__dirname, '..', '../ios/playground/build/Debug-iphonesimulator/WeexDemo.app')
 };
 
 var androidOpts = {
   platformName: 'Android',
+  slowEnv: isRunInCI,
   app: path.join(__dirname, '..', `../android/playground/app/build/outputs/apk/playground.apk`)
 };
 
-const isIOS = platform === 'ios';
-const isRunInCI = process.env.run_in_ci?true:false;
-
 if(isRunInCI){
     console.log("Running in CI Envirment");
 }