You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/30 03:34:36 UTC

[1/3] incubator-weex git commit: * [test] add macaca test

Repository: incubator-weex
Updated Branches:
  refs/heads/0.16-dev 1b6544833 -> e8b19192b


* [test] add macaca test


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

Branch: refs/heads/0.16-dev
Commit: 5ad9493a065531494f9c10d480df0175569005e9
Parents: d9547f1
Author: miomin <69...@qq.com>
Authored: Wed Aug 30 10:10:47 2017 +0800
Committer: miomin <69...@qq.com>
Committed: Wed Aug 30 10:10:47 2017 +0800

----------------------------------------------------------------------
 test/pages/components/refresh-loading.vue  |  20 ++-
 test/pages/modules/modal-event.vue         |  75 ++++++++--
 test/pages/modules/stream-result.vue       | 185 +++++++++++++++++++-----
 test/scripts/modules/modal-event.test.js   |  17 ++-
 test/scripts/modules/stream-result.test.js |  20 +--
 5 files changed, 244 insertions(+), 73 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5ad9493a/test/pages/components/refresh-loading.vue
----------------------------------------------------------------------
diff --git a/test/pages/components/refresh-loading.vue b/test/pages/components/refresh-loading.vue
index 940297c..00c17df 100644
--- a/test/pages/components/refresh-loading.vue
+++ b/test/pages/components/refresh-loading.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <panel title = 'refresh-loading' :padding-body='0'>
-      <div style='flex-direction:row'> 
+      <div style='flex-direction:row'>
         <button class='mr-base' type="info" size="middle" value="hideRefresh" @click.native="hideRefresh"></button>
         <button class='mr-base' type="info" size="middle" value="hideLoading" @click.native="hideLoading"></button>
       </div>
@@ -15,11 +15,11 @@
         <loading-indicator class="indicator"></loading-indicator>
         <text class="refresh-txt">↓ 下拉刷新</text>
       </refresh>
-  
+
       <cell v-for="(k,v) in cells" style="height:100">
         <text class="txt">{{k}}-{{v}}</text>
       </cell>
-  
+
       <loading class="refresh" :display="loadingDisplay" @loading="onloading">
         <loading-indicator class="indicator"></loading-indicator>
         <text class="refresh-txt">↑ 上拉加载</text>
@@ -29,11 +29,15 @@
     <wxc-desc>
       <text class='desc'>
 测试点:
-  * 图片加载后调用load事件及native高宽
+  * 测试list的refresh(下拉刷新)和loading(上拉加载)
 
 测试方式:
-  * 校验第一张图片的native高宽
-  * 切换图片后,校验第二张图片的native高宽
+  * 下拉list,触发refresh事件
+  * refresh事件触发后,将refresh组件的display属性设为hide
+  * 将list上拉到底部
+  * 继续上拉list,触发loadmore事件
+  * loadmore事件触发后,将loading组件的display属性设为hide
+  
       </text>
     </wxc-desc>
   </div>
@@ -67,7 +71,7 @@
       onloading: function() {
         // show
         this.loadingDisplay = 'show';
-        
+
       },
       hideLoading:function() {
         if (this.loadingDisplay !== 'hide') {
@@ -112,4 +116,4 @@
     border-width:1;
     border-style:dotted;
   }
-</style>
\ No newline at end of file
+</style>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5ad9493a/test/pages/modules/modal-event.vue
----------------------------------------------------------------------
diff --git a/test/pages/modules/modal-event.vue b/test/pages/modules/modal-event.vue
index eed3612..5e94693 100644
--- a/test/pages/modules/modal-event.vue
+++ b/test/pages/modules/modal-event.vue
@@ -1,33 +1,50 @@
 <template>
   <div>
-    <panel title = 'modal-event' :padding-body='0'>
-      <div style='flex-direction:row'> 
-        <button class='mr-base' type="info" size="middle" value="alertClick" @click.native="alertClick"></button>
+    <panel title='modal-event'>
+      <div style='flex-direction:row'>
+        <button class='mr-base' type="info" size="middle" value="toast" @click.native="toastClick"></button>
       </div>
+
+      <div style='flex-direction:row'>
+        <button class='mr-base' type="info" size="middle" value="alert" @click.native="alertClick"></button>
+      </div>
+
+      <div style='flex-direction:row'>
+        <button class='mr-base' type="info" size="middle" value="confirm" @click.native="confirmClick"></button>
+      </div>
+
+      <div style='flex-direction:row'>
+        <button class='mr-base' type="info" size="middle" value="prompt" @click.native="promptClick"></button>
+      </div>
+
       <panel title='校验结果:'>
-        <text style="font-size:30px">{{resultTxt}}</text>
+        <text style="font-size:30px">{{toastResult}}</text>
+        <text style="font-size:30px">{{alertResult}}</text>
+        <text style="font-size:30px">{{confirmResult}}</text>
+        <text style="font-size:30px">{{promptResult}}</text>
       </panel>
     </panel>
     <wxc-desc>
       <text class='desc'>
 测试点:
-  * 
+  * 测试modal的四个接口:toast、alert、confirm、prompt
 
 测试方式:
-  * 
-  * 
+  * 调用toast、alert、confirm、prompt,查看是否符合预期
+
       </text>
     </wxc-desc>
   </div>
 </template>
 <script>
-  var GET_URL = 'http://httpbin.org/get';
+
   var modal = weex.requireModule("modal");
   module.exports = {
     data : {
-      resultTxt:'',
-      sendtype:'json',
-      detail:''
+      toastResult:'',
+      alertResult:'',
+      confirmResult:'',
+      promptResult:'',
     },
     components: {
       "wxc-desc":require('../include/wxc-desc.vue'),
@@ -35,16 +52,44 @@
       button: require('../include/button.vue'),
     },
     methods : {
+      toastClick:function() {
+        modal.toast({
+          'message': 'message',
+          'duration': 1000,
+        });
+        this.toastResult = 'Toast success';
+      },
+
       alertClick:function() {
         var params = {
           'message':'message',
           'okTitle':'OK',
         }
         modal.alert(params,()=>{
-          this.resultTxt = 'alert success';
-        })
+          this.alertResult = 'Alert success';
+        });
+      },
+
+      confirmClick:function() {
+        modal.confirm({
+          'message': 'msg',
+          'okTitle': 'ok',
+          'cancelTitle': 'cancel',
+        }, ()=>{
+          this.confirmResult = "Confirm success";
+        });
+      },
+
+      promptClick:function() {
+        modal.prompt({
+          'message': 'I am Prompt!',
+          'okTitle': 'ok',
+          'cancelTitle': 'cancel'
+        }, ()=>{
+          this.promptResult = "Prompt success";
+        });
       },
-      
+
     }
   }
 </script>
@@ -58,4 +103,4 @@
     color:#aa0000;
     font-size: 30px;
   }
-</style>
\ No newline at end of file
+</style>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5ad9493a/test/pages/modules/stream-result.vue
----------------------------------------------------------------------
diff --git a/test/pages/modules/stream-result.vue b/test/pages/modules/stream-result.vue
index 6df7d03..a3ebdde 100644
--- a/test/pages/modules/stream-result.vue
+++ b/test/pages/modules/stream-result.vue
@@ -1,34 +1,71 @@
 <template>
-  <div>
+  <scroller>
     <panel title = 'stream-result' :padding-body='0'>
-      <div style='flex-direction:row'> 
-        <button class='mr-base' type="info" size="middle" value="streamGet" @click.native="streamGet"></button>
+      <div style='flex-direction:row'>
+        <button test-id='streamGet' class='mr-base' type="info" size="middle" value="streamGet" @click.native="streamGet"></button>
+        <text style="font-size:30px">{{complete}}</text>
       </div>
-      <panel title='校验结果:'>
-        <text style="font-size:30px">{{resultTxt}}</text>
-        <text style="font-size:30px">{{detail}}</text>
+      <panel title='校验结果:GET'>
+        <text style="font-size:30px">{{getResult}}</text>
+      </panel>
+
+      <panel title='校验结果:GET_JSONP'>
+        <text style="font-size:30px">{{getJSONPResult}}</text>
+      </panel>
+
+      <panel title="校验结果:POST">
+        <text style="font-size:30px">{{postResult}}</text>
+      </panel>
+
+      <panel title="校验结果:PUT">
+        <text style="font-size:30px">{{putResult}}</text>
+      </panel>
+
+      <panel title="校验结果:DELETE">
+        <text style="font-size:30px">{{deleteResult}}</text>
+      </panel>
+
+      <panel title="校验结果:HEAD">
+        <text style="font-size:30px">{{headResult}}</text>
+      </panel>
+
+      <panel title="校验结果:PATCH">
+        <text style="font-size:30px">{{patchResult}}</text>
       </panel>
     </panel>
     <wxc-desc>
       <text class='desc'>
 测试点:
-  * 
+  * stream模块的网络请求功能是否正常(GET、POST、PUT、DELETE、HEAD、PATCH)
 
 测试方式:
-  * 
-  * 
+  * 截图比对网络请求返回的结果
+
       </text>
     </wxc-desc>
-  </div>
+  </scroller>
 </template>
 <script>
   var GET_URL = 'http://httpbin.org/get';
+  var GET_URL_JSONP = 'http://jsfiddle.net/echo/jsonp/?callback=anything&result=content_in_response';
+  var POST_URL = 'http://httpbin.org/post';
+  var PUT_URL = 'http://httpbin.org/put';
+  var DELETE_URL = 'http://httpbin.org/delete';
+  var HEAD_URL = 'http://httpbin.org/status/418';
+  var PATCH_URL = 'http://httpbin.org/patch';
   var stream = weex.requireModule("stream");
+
   module.exports = {
     data : {
-      resultTxt:'',
       sendtype:'json',
-      detail:''
+      getResult:'',
+      getJSONPResult:'',
+      postResult:'',
+      putResult:'',
+      deleteResult:'',
+      headResult:'',
+      patchResult:'',
+      complete:'',
     },
     components: {
       "wxc-desc":require('../include/wxc-desc.vue'),
@@ -37,38 +74,118 @@
     },
     methods : {
       streamGet:function() {
-        this.streamFetch("GET",GET_URL);
-      },
-      streamFetch:function(stype,surl){
         var me = this;
-        if(this.sendtype=="jsonp"){
-          surl=this.JSONP_URL;
-        }
+
         stream.fetch({
-          method: stype,
-          url: surl,
-          type:this.sendtype,
+          method: "GET",
+          url: GET_URL,
+          type: this.sendtype,
           timeout : 10000
         }, function(ret) {
-          nativeLog(JSON.stringify(ret)+ typeof(ret.data));
-          if(stype=="HEAD"){
-              console.log('get:'+ret);
-              me.resultTxt = 'response:success'
-              me.detail = ret.statusText;
+          if("GET"=="HEAD"){
+              me.getResult = ret.resultTxt_GET;
           }else{
             if(!ret.ok){
-              me.resultTxt = 'response:failed';
-              me.detail = (typeof(ret.data)!='undefined'?JSON.stringify(ret.data):"");
+              me.getResult = "request failed";
             }else{
-              me.resultTxt = 'response:success';
-              me.detail = "data type:"+ typeof(ret.data) + ";  " +JSON.stringify(ret.data);
+              me.getResult = "data type:"+ typeof(ret.data) + ";  " +JSON.stringify(ret.data);
             }
           }
         },function(response){
-          console.log('get in progress:'+JSON.stringify(response));
-          me.resultTxt = JSON.stringify(response);
+          me.getResult = JSON.stringify(response);
+        });
+
+
+        stream.fetch({
+          method: 'GET',
+          url: GET_URL_JSONP,
+          type:'jsonp'
+        }, function(ret) {
+          if(!ret.ok){
+            me.getJSONPResult = "request failed";
+          }else{
+            me.getJSONPResult = JSON.stringify(ret.data);
+          }
+        },function(response){
+          me.getJSONPResult = "bytes received:"+response.length;
+        });
+
+        stream.fetch({
+          method: 'POST',
+          url: POST_URL,
+          type:'json',
+          body:JSON.stringify({username:'weex'})//or you can just use JSON Object {username:'weex'}
+        }, function(ret) {
+          if(!ret.ok){
+            me.postResult = "request failed";
+          }else{
+            me.postResult = JSON.stringify(ret.data);
+          }
+        },function(response){
+          me.postResult = "bytes received:"+response.length;
         });
-      }
+
+
+        stream.fetch({
+          method: 'PUT',
+          url: PUT_URL,
+          type:'json'
+        }, function(ret) {
+          if(!ret.ok){
+            me.putResult = "request failed";
+          }else{
+            me.putResult = JSON.stringify(ret.data);
+          }
+        },function(response){
+          me.putResult = "bytes received:"+response.length;
+        });
+
+        stream.fetch({
+          method: 'DELETE',
+          url: DELETE_URL,
+          type:'json'
+        }, function(ret) {
+
+          if(!ret.ok){
+            me.deleteResult = "request failed";
+          }else{
+            me.deleteResult = JSON.stringify(ret.data);
+          }
+        },function(response){
+          me.deleteResult = "bytes received:"+response.length;
+        });
+
+        stream.fetch({
+          method: 'HEAD',
+          url: HEAD_URL,
+          type:'json'
+        }, function(ret) {
+          if(ret.statusText !== 'I\'m a teapot'){
+            me.headResult = "request failed";
+          }else{
+            me.headResult = ret.statusText;
+          }
+        },function(response){
+          me.headResult = "bytes received:"+response.length;
+        });
+
+        stream.fetch({
+          method: 'PATCH',
+          url: PATCH_URL,
+          type:'json'
+        }, function(ret) {
+          if(!ret.ok){
+            me.patchResult = "request failed";
+            me.complete = "Completed";
+          }else{
+            me.patchResult = JSON.stringify(ret.data);
+            me.complete = "Completed";
+          }
+        },function(response){
+          me.patchResult = "bytes received:"+response.length;
+          me.complete = "Completed";
+        });
+      },
     }
   }
 </script>
@@ -82,4 +199,4 @@
     color:#aa0000;
     font-size: 30px;
   }
-</style>
\ No newline at end of file
+</style>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5ad9493a/test/scripts/modules/modal-event.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/modules/modal-event.test.js b/test/scripts/modules/modal-event.test.js
index d5b4de4..0a656a5 100644
--- a/test/scripts/modules/modal-event.test.js
+++ b/test/scripts/modules/modal-event.test.js
@@ -24,13 +24,22 @@ describe('weex '+goal+' test', function () {
   })
 
   it('#1 '+goal + ' event', () => {
-    //TODO :截图比对
-    return driver.waitForElementByName('alertClick', timeout, 2000)
+    return driver
+      .waitForElementByName('toast', timeout, 2000)
+      .click()
+      .sleep(2000)
+      .waitForElementByName('alert', timeout, 2000)
       .click()
       .sleep(1000)
       .dismissAlert()
-      .waitForElementByName(goal, timeout, 2000)
+      .waitForElementByName('confirm', timeout, 2000)
       .click()
-      .waitForElementByName('alert success', timeout, 2000) 
+      .sleep(1000)
+      .dismissAlert()
+      .waitForElementByName('prompt', timeout, 2000)
+      .click()
+      .sleep(1000)
+      .dismissAlert()
+      .waitForElementByName('Prompt success', timeout, 2000)
   })
 });
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5ad9493a/test/scripts/modules/stream-result.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/modules/stream-result.test.js b/test/scripts/modules/stream-result.test.js
index 82a30f1..4ffceb7 100644
--- a/test/scripts/modules/stream-result.test.js
+++ b/test/scripts/modules/stream-result.test.js
@@ -7,28 +7,24 @@ var path = require('path');
 var os = require('os');
 var util = require("../util.js");
 
-var switchTag = 'XCUIElementTypeSwitch';
-
 var goal = 'stream-result';
-var timeout = util.getGETActionWaitTimeMills();
-describe('weex '+goal+' test', function () {
+
+describe('stream-result-test', function () {
   this.timeout(util.getTimeoutMills());
   var driver = util.createDriver(wd);
-
+  var maxWt = util.getGETActionWaitTimeMills();
   beforeEach(function () {
     return util.init(driver)
-      .get(util.getPage('/modules/'+goal+'.js'))
-      .waitForElementByName(goal, timeout, 2000)
+      .get(util.getPage('/modules/stream-result.js'))
   });
 
   afterEach(function () {
     return util.quit(driver);
   })
 
-  it('#1 '+goal + ' event', () => {
-    //TODO :截图比对
-    return driver.waitForElementByName('streamGet', timeout, 2000)
-      .click()
-      .waitForElementByName('response:success', timeout, 2000) 
+  it('#1 ' + 'stream-result' + ' event', () => {
+    return driver.waitForElementById('streamGet', maxWt, 2000)
+    .click()
+    .waitForElementByName('Completed', maxWt, 10000);
   })
 });
\ No newline at end of file


[3/3] incubator-weex git commit: Merge branch '0.16-dev-test' of https://github.com/miomin/incubator-weex into wip-us-0.16-dev

Posted by ac...@apache.org.
Merge branch '0.16-dev-test' of https://github.com/miomin/incubator-weex into wip-us-0.16-dev


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

Branch: refs/heads/0.16-dev
Commit: e8b19192b31c75fd67f704471823fee671aac62b
Parents: 1b65448 28d3364
Author: acton393 <zh...@gmail.com>
Authored: Wed Aug 30 11:34:05 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Aug 30 11:34:05 2017 +0800

----------------------------------------------------------------------
 test/pages/components/refresh-loading.vue  |  20 ++-
 test/pages/modules/modal-event.vue         |  75 ++++++++--
 test/pages/modules/stream-result.vue       | 185 +++++++++++++++++++-----
 test/scripts/modules/modal-event.test.js   |  17 ++-
 test/scripts/modules/stream-result.test.js |  20 +--
 5 files changed, 243 insertions(+), 74 deletions(-)
----------------------------------------------------------------------



[2/3] incubator-weex git commit: Merge branch '0.16-dev' of https://github.com/apache/incubator-weex into 0.16-dev-test

Posted by ac...@apache.org.
Merge branch '0.16-dev' of https://github.com/apache/incubator-weex into 0.16-dev-test

Conflicts:
	test/scripts/modules/modal-event.test.js


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

Branch: refs/heads/0.16-dev
Commit: 28d33646077830ebbcc32c1995da2ed8501f133c
Parents: 5ad9493 1295c90
Author: miomin <69...@qq.com>
Authored: Wed Aug 30 10:13:57 2017 +0800
Committer: miomin <69...@qq.com>
Committed: Wed Aug 30 10:13:57 2017 +0800

----------------------------------------------------------------------
 .../commons/adapter/FrescoImageComponent.java   |   2 +-
 .../java/com/alibaba/weex/WXPageActivity.java   |   5 +-
 android/sdk/libs/armeabi/libweexjsb.so          | Bin 22556 -> 0 bytes
 android/sdk/libs/armeabi/libweexjsc.so          | Bin 325660 -> 7570392 bytes
 android/sdk/libs/armeabi/libweexjss.so          | Bin 6754012 -> 0 bytes
 .../java/com/taobao/weex/WXSDKInstance.java     |  23 +++--
 .../com/taobao/weex/common/IWXDebugProxy.java   |   2 +
 .../weex/ui/component/AppearanceHelper.java     |   9 +-
 .../com/taobao/weex/ui/component/WXImage.java   |  75 +++++++-------
 .../taobao/weex/ui/component/WXScroller.java    |   2 +-
 .../com/taobao/weex/ui/component/WXText.java    |  25 +++--
 .../taobao/weex/ui/component/WXVContainer.java  |   6 ++
 .../ui/component/list/BasicListComponent.java   |  56 +++++++++--
 .../com/taobao/weex/ui/view/WXImageView.java    |  16 +--
 .../com/taobao/weex/utils/ImageDrawable.java    |  17 +++-
 dangerfile.js                                   |   2 +-
 doc/_config.yml                                 |   2 +
 doc/_config_cn.yml                              |   2 +
 doc/source/cn/guide/integrate-to-your-app.md    |   6 +-
 doc/source/cn/guide/tools/index.md              |   1 +
 doc/source/cn/guide/tools/plugin.md             |  77 +++++++++++++++
 doc/source/cn/references/common-style.md        |  59 ++++++++++-
 doc/source/cn/references/modules/animation.md   |  37 +++----
 doc/source/guide/integrate-to-your-app.md       |   6 +-
 doc/source/guide/tools/index.md                 |   1 +
 doc/source/guide/tools/plugin.md                |  68 +++++++++++++
 doc/source/references/common-style.md           |  57 +++++++++++
 doc/source/references/modules/animation.md      |  46 ++++-----
 doc/themes/weex/languages/en.yml                |   2 +-
 .../weex/layout/_partial/after-footer.ejs       |  10 ++
 doc/themes/weex/layout/_partial/header.ejs      |   3 +
 doc/themes/weex/layout/_partial/sidebar.ejs     |   3 +
 doc/themes/weex/source/css/index.scss           |  42 ++++++--
 .../WeexSDK/Sources/Component/WXAComponent.m    |   3 -
 .../Sources/Component/WXComponent_internal.h    |   4 +-
 .../Sources/Component/WXImageComponent.m        |   4 +-
 .../Sources/Component/WXSwitchComponent.m       |   4 +-
 .../Sources/Component/WXTextAreaComponent.m     |   4 +-
 .../WeexSDK/Sources/Component/WXTextComponent.m |   5 +-
 .../Sources/Controller/WXBaseViewController.m   |   4 +-
 ios/sdk/WeexSDK/Sources/Model/WXComponent.m     |  41 ++++----
 ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m   |   4 +-
 .../WeexSDK/Sources/Module/WXPrerenderManager.h |  15 +++
 .../WeexSDK/Sources/Module/WXPrerenderManager.m |  62 ++++++++++--
 test/mocha.opts                                 |   2 -
 test/pages/attributes/dom-operation.vue         |  33 +++++++
 test/pages/components/a-src.vue                 |  19 ++++
 test/pages/components/hyperlink.vue             |  31 ------
 test/pages/components/hyperlink_target.vue      |  23 -----
 test/pages/components/image-onload.vue          |  65 ++++++++++++
 test/pages/components/list-scroll.vue           |  33 +++++++
 test/pages/components/scroller-scroll.vue       |  31 ++++++
 test/pages/components/slider-infinite.vue       |  54 ++++++++++
 test/pages/dom-operation.vue                    |  33 -------
 test/pages/image-onload.vue                     |  31 ------
 test/pages/index.vue                            |  30 ------
 test/pages/list-scroll.vue                      |  33 -------
 test/pages/scroller-scroll.vue                  |  31 ------
 test/pages/slider-infinite.vue                  |  54 ----------
 test/scripts/attributes/compositing.test.js     |   5 +-
 test/scripts/attributes/dom.test.js             |  98 +++++++++++++++++++
 test/scripts/components/a-src.test.js           |  44 ++++++---
 test/scripts/components/hyperlink.test.js       |  44 ---------
 test/scripts/components/iconfont.test.js        |   2 +-
 test/scripts/components/image-onload.test.js    |  32 ++----
 test/scripts/components/input-event.test.js     |   2 +-
 test/scripts/components/recycler.test.js        |  20 +++-
 test/scripts/components/refresh-loading.test.js |  12 +--
 test/scripts/components/scroll-event.test.js    |  11 ++-
 test/scripts/components/scroller-fixed.test.js  |   2 +-
 test/scripts/components/slider-common.test.js   |   4 +-
 test/scripts/components/slider-infinite.test.js |   4 +-
 test/scripts/components/switch-event.test.js    |   2 +-
 test/scripts/components/text.test.js            |   8 +-
 .../components/textarea-maxlength.test.js       |   3 +-
 test/scripts/components/video-property.test.js  |   2 +-
 test/scripts/components/web-event.test.js       |   2 +-
 test/scripts/css/border.test.js                 |   3 +-
 test/scripts/dom.test.js                        |  97 ------------------
 test/scripts/index.test.js                      |  77 ---------------
 .../scripts/modules/animation-translate.test.js |   5 +-
 test/scripts/modules/clipboard-event.test.js    |   5 +-
 test/scripts/modules/gesture-longpress.test.js  |   5 +-
 test/scripts/modules/globalEvent.test.js        |   2 +-
 test/scripts/modules/modal-event.test.js        |   1 -
 test/scripts/modules/picker-event.test.js       |   5 +-
 test/scripts/modules/timer.test.js              |   5 +-
 test/scripts/util.js                            |  21 ++--
 88 files changed, 1065 insertions(+), 773 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/28d33646/test/scripts/modules/modal-event.test.js
----------------------------------------------------------------------