You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/06/02 02:50:07 UTC
[13/36] incubator-weex git commit: + [test] remove platform judgement
+ [test] remove platform judgement
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/4ba08598
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/4ba08598
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/4ba08598
Branch: refs/heads/0.14-dev
Commit: 4ba08598c8598995b80f00dbb12e59fd7ee66766
Parents: cce5362
Author: moxun.ljf <fu...@foxmail.com>
Authored: Fri May 26 17:37:15 2017 +0800
Committer: moxun.ljf <fu...@foxmail.com>
Committed: Fri May 26 17:37:15 2017 +0800
----------------------------------------------------------------------
test/scripts/components/slider-common.test.js | 11 -----------
1 file changed, 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/4ba08598/test/scripts/components/slider-common.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/components/slider-common.test.js b/test/scripts/components/slider-common.test.js
index c2a7b0c..73f54c6 100644
--- a/test/scripts/components/slider-common.test.js
+++ b/test/scripts/components/slider-common.test.js
@@ -25,21 +25,10 @@ var path = require('path');
var os = require('os');
var util = require("../util.js");
-const platform = process.env.platform.toLowerCase() || 'android';
-const isAndroid = platform === 'android';
-var dragOption = {};
-
describe('slider common', function () {
this.timeout(util.getTimeoutMills());
var driver = util.createDriver(wd);
- if (isAndroid) {
- dragOption = {fromX: 1000, toX: -1000, fromY: 700, toY: 700, duration: 5, steps: 100};
- } else {
- //TODO: add drag option for iOS
- dragOption = {fromX:350, fromY:150, toX:650, toY: 150, duration: 2}
- }
-
before(function () {
return util.init(driver)
.get(util.getPage('/components/slider-common.js'))