From e8efe9eabfc70fc5a3ebd701cffcec1f03ff59bb Mon Sep 17 00:00:00 2001 From: zhuyongyong Date: Mon, 13 Jun 2016 15:50:28 +0800 Subject: [PATCH] [Embeddingapi] Improve XWalkViewWithScrollChanged usecase Impacted tests(approved): new 0, update 2, delete 0 Unit test platform: Crosswalk Project for Android 21.50.537.0 Unit test result summary: pass 2, fail 0, block 0 BUG=https://crosswalk-project.org/jira/browse/CTS-1749 --- .../extended/XWalkViewWithScrollChangedAsync.java | 2 +- .../api/sample/extended/XWalkViewWithScrollChanged.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usecase/usecase-embedding-android-tests/embeddingapi-async/src/org/xwalk/embedded/api/asyncsample/extended/XWalkViewWithScrollChangedAsync.java b/usecase/usecase-embedding-android-tests/embeddingapi-async/src/org/xwalk/embedded/api/asyncsample/extended/XWalkViewWithScrollChangedAsync.java index 9eeb09d6a..3d8fc11fa 100644 --- a/usecase/usecase-embedding-android-tests/embeddingapi-async/src/org/xwalk/embedded/api/asyncsample/extended/XWalkViewWithScrollChangedAsync.java +++ b/usecase/usecase-embedding-android-tests/embeddingapi-async/src/org/xwalk/embedded/api/asyncsample/extended/XWalkViewWithScrollChangedAsync.java @@ -53,7 +53,7 @@ public void onXWalkInitCompleted() { .append("Verifies onTouchEvent work in XWalkView.\n\n") .append("Expected Result:\n\n") .append("Test passes if the the message\n\n" + - "'onTouchEvent is invoked; Action is UP/DOWN/MOVE' "); + "'onScrollChanged is invoked' and it's parameter list is shown after you scroll the page"); new AlertDialog.Builder(this) .setTitle("Info") .setMessage(mess.toString()) diff --git a/usecase/usecase-embedding-android-tests/embeddingapi/src/org/xwalk/embedded/api/sample/extended/XWalkViewWithScrollChanged.java b/usecase/usecase-embedding-android-tests/embeddingapi/src/org/xwalk/embedded/api/sample/extended/XWalkViewWithScrollChanged.java index 85cc838be..e75ec7ee7 100644 --- a/usecase/usecase-embedding-android-tests/embeddingapi/src/org/xwalk/embedded/api/sample/extended/XWalkViewWithScrollChanged.java +++ b/usecase/usecase-embedding-android-tests/embeddingapi/src/org/xwalk/embedded/api/sample/extended/XWalkViewWithScrollChanged.java @@ -17,10 +17,11 @@ public class XWalkViewWithScrollChanged extends XWalkActivity implements ScrollC protected void onXWalkReady() { StringBuffer mess = new StringBuffer(); mess.append("Test Purpose: \n\n") - .append("Verifies onTouchEvent work in XWalkView.\n\n") + .append("Verifies onScrollChanged work in XWalkView.\n\n") .append("Expected Result:\n\n") .append("Test passes if the the message\n\n" + - "'onTouchEvent is invoked; Action is UP/DOWN/MOVE' "); + "'onScrollChanged is invoked' and it's parameter list is shown after you scroll the page"); + new AlertDialog.Builder(this) .setTitle("Info") .setMessage(mess.toString())