fix hyb1996-guest/AutoJsIssueReport#1341 and replace JavaAdapter to ProxyObject in ui module to avoid compilation to class file

This commit is contained in:
hyb1996
2017-05-17 14:47:45 +08:00
parent c4ec951a10
commit b3fad201f7
70 changed files with 366 additions and 289 deletions

View File

@@ -1,56 +0,0 @@
bg
w
h
margin
marginLeft
margin*
padding
padding*
layout_gravity="center"
gravity
weight
var ui = {
};
ui.layout = function(xml){
}
ui.layout(
<linear orientation="vertical" w="fill" h="300" bg="#ff0000" gravity="center" layout_gravity="center">
<text text="测试" size="18" color="#000000" id="adasd"/>
<button id="btn" text="按钮"/>
</linear>
);
vat text = ui.asadsad;
<relative>
</relative>
<horizon>
</horizon>
<vertical>
</vertical>
function ui(){
}
module.exports = ui;

View File

@@ -5,7 +5,7 @@ sleep(2000);
while(true){
if(currentPackage() == 'com.tencent.mobileqq'){
swipe(600, 700, 600, 1400, 400);
swipe(600, 900, 600, 1400, 400);
}
sleep(300);
}

View File

@@ -0,0 +1,33 @@
"auto";
setScreenMetrics(1080, 1920);
launchApp("QQ");
sleep(1500);
click(891, 1851);
sleep(1000);
//点击好友动态
click(192, 453);
sleep(1000);
//点击头像
click(155, 638);
sleep(1000);
//点击留言
click(747, 775);
sleep(1000);
while(true){
if(currentPackage() == 'com.tencent.mobileqq'){
//点击箭头图标
click(1029, 433);
sleep(300);
//点击删除
click(530, 820);
sleep(300);
//点击确定
click(331, 1122);
sleep(200);
}
sleep(200);
}

View File

@@ -0,0 +1,27 @@
"auto";
setScreenMetrics(1080, 1920);
launchApp("QQ");
sleep(1500);
//点击动态图标
Tap(891, 1851);
//点击好友动态
Tap(192, 453);
//点击头像
Tap(155, 638);
//点击留言
Tap(747, 775);
while(true){
if(currentPackage() == 'com.tencent.mobileqq'){
//点击箭头图标
Tap(1029, 433);
//点击删除
Tap(530, 820);
//点击确定
Tap(331, 1122);
}
sleep(200);
}

View File

@@ -1,20 +0,0 @@
SetScreenMetrics(1080, 1920);
launchApp("QQ");
//点击动态图标
Tap(891, 1851);
//点击好友动态
Tap(192, 453);
//点击头像
Tap(155, 638);
//点击留言
Tap(747, 775);
while(true){
//点击箭头图标
Tap(1029, 433);
//点击删除
Tap(530, 820);
//点击确定
Tap(331, 1122);
}