Fix examples, and evaluation on Chrome, handle corner cases; Initialize arm support

This commit is contained in:
Timothyxxx
2024-02-26 12:34:27 +08:00
parent 7f81a1ee5a
commit a66b36295a
13 changed files with 361 additions and 200 deletions

View File

@@ -55,7 +55,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",

View File

@@ -30,7 +30,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": ""
},
"expected": {
"type": "rule",

View File

@@ -53,7 +53,7 @@
"key":"time"
},
{
"type": "active_tab_info",
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
}],
"expected":[

View File

@@ -55,7 +55,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",

View File

@@ -45,10 +45,7 @@
"evaluator": {
"func": "is_expected_url_pattern_match",
"result": {
"type": "active_tab_info",
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
@@ -58,22 +55,6 @@
"forms\\?title=&field_component_target_id=431"
]
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func":"is_expected_url_pattern_match",
"result": {
"type": "active_tab_info",
"goto_prefix": "https://www."
},
"expected":{
"type": "rule",
"rules":{
"expected": ["forms\\?title=&field_component_target_id=431"]
}
}
}
}
}

View File

@@ -55,7 +55,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",

View File

@@ -1,5 +1,5 @@
{
"id": " b070486d-e161-459b-aa2b-ef442d973b92",
"id": "b070486d-e161-459b-aa2b-ef442d973b92",
"snapshot": "chrome",
"instruction": "Show side effects of Tamiflu.",
"source": "online_tasks",
@@ -43,41 +43,19 @@
"chrome"
],
"evaluator": {
"func": "exact_match",
"result": {
"type": "url_dashPart",
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"goto_prefix": "https://www.",
"partIndex": -1,
"needDeleteId": false,
"returnType": "string"
},
"expected": {
"type": "rule",
"rules": {
"expected": "tamiflu.html#side-effects"
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func":"exact_match",
"result": {
"type": "url_dashPart",
"goto_prefix": "https://www.",
"partIndex": -1,
"needDeleteId": false,
"returnType": "string"
},
"expected":{
"type": "rule",
"rules":{
"expected": "tamiflu.html#side-effects"
}
"func": "exact_match",
"result": {
"type": "url_dashPart",
"goto_prefix": "https://www.",
"partIndex": -1,
"needDeleteId": false,
"returnType": "string"
},
"expected": {
"type": "rule",
"rules": {
"expected": "tamiflu.html#side-effects"
}
}
}
}
}

View File

@@ -43,39 +43,20 @@
"chrome"
],
"evaluator": {
"func": "is_expected_url_pattern_match",
"result": {
"type": "active_url_from_accessTree",
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",
"rules": {
"expected": [
"AgeAppropriate:Kids",
"search=spider-man%20toys",
"S=4"
]
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func":"is_expected_url_pattern_match",
"result": {
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected":{
"type": "rule",
"rules":{
"expected": ["AgeAppropriate:Kids", "search=spider-man%20toys", "S=4"]
}
"func": "is_expected_url_pattern_match",
"result": {
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",
"rules": {
"expected": [
"AgeAppropriate:Kids",
"search=spider-man%20toys",
"S=4"
]
}
}
}
}
}

View File

@@ -55,7 +55,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",

View File

@@ -55,7 +55,8 @@
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"type": "active_tab_info"
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
"type": "rule",