Skip to content

Commit b8c92e4

Browse files
committed
自动化 UI 测试:优化事件列表展示
1 parent 186144d commit b8c92e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

APIJSON-Android/APIJSONTest/app/src/main/java/apijson/demo/ui/UIAutoListActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,14 @@ public void run() {
231231
if (isTouch) {
232232
if (obj.getIntValue("type") == 1) {
233233
list.add("[" + state + "] " + new Date(obj.getLongValue("time")).toLocaleString() + " " + InputUtil.getActionName(obj.getIntValue("action"))
234-
+ "\nkeyCode: " + InputUtil.getKeyCodeName(obj.getIntValue("keyCode")) + ", scanCode: " + InputUtil.getScanCodeName(obj.getIntValue("scanCode")) + ", dividerY: " + obj.getString("dividerY")
235-
+ "\nrepeatCount: " + obj.getString("repeatCount") + " " + InputUtil.getOrientationName(obj.getIntValue("orientation"))
234+
+ "\nrepeatCount: " + obj.getString("repeatCount") + ", scanCode: " + InputUtil.getScanCodeName(obj.getIntValue("scanCode")) + " " + InputUtil.getKeyCodeName(obj.getIntValue("keyCode"))
235+
+ "\nsplitX: " + obj.getString("splitX") + ", splitY: " + obj.getString("dividerY") + " " + InputUtil.getOrientationName(obj.getIntValue("orientation"))
236236
);
237237
}
238238
else {
239239
list.add("[" + state + "] " + new Date(obj.getLongValue("time")).toLocaleString() + " " + InputUtil.getActionName(obj.getIntValue("action"))
240-
+ "\nx: " + obj.getString("x") + ", y: " + obj.getString("y") + ", dividerY: " + obj.getString("dividerY")
241-
+ "\npointerCount: " + obj.getString("pointerCount") + " " + InputUtil.getOrientationName(obj.getIntValue("orientation"))
240+
+ "\npointerCount: " + obj.getString("pointerCount") + ", x: " + obj.getString("x") + ", y: " + obj.getString("y")
241+
+ "\nsplitX: " + obj.getString("splitX") + ", splitY: " + obj.getString("dividerY") + " " + InputUtil.getOrientationName(obj.getIntValue("orientation"))
242242
);
243243
}
244244
} else {

0 commit comments

Comments
 (0)