Fix some json typos from Chrome
This commit is contained in:
@@ -20,7 +20,6 @@ from .chrome import (
|
|||||||
get_find_unpacked_extension_path,
|
get_find_unpacked_extension_path,
|
||||||
get_data_delete_automacally,
|
get_data_delete_automacally,
|
||||||
get_active_tab_html_parse,
|
get_active_tab_html_parse,
|
||||||
get_active_tab_html_parse_accTree,
|
|
||||||
get_active_tab_url_parse,
|
get_active_tab_url_parse,
|
||||||
get_gotoRecreationPage_and_get_html_content,
|
get_gotoRecreationPage_and_get_html_content,
|
||||||
get_url_dashPart,
|
get_url_dashPart,
|
||||||
|
|||||||
@@ -43,19 +43,20 @@
|
|||||||
"chrome"
|
"chrome"
|
||||||
],
|
],
|
||||||
"evaluator": {
|
"evaluator": {
|
||||||
"func":"is_expected_url_pattern_match",
|
"func": "is_expected_url_pattern_match",
|
||||||
"result": {
|
"result": {
|
||||||
"type": "active_tab_info",
|
"type": "active_tab_info",
|
||||||
"selectors":[
|
"selectors": [
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
],
|
],
|
||||||
"goto_prefix": "https://www."
|
"goto_prefix": "https://www."
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected": {
|
||||||
"type": "rule",
|
"type": "rule",
|
||||||
"rules":{
|
"rules": {
|
||||||
"expected": ["forms\\?title=&field_component_target_id=431"]
|
"expected": [
|
||||||
}
|
"forms\\?title=&field_component_target_id=431"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,10 +43,10 @@
|
|||||||
"chrome"
|
"chrome"
|
||||||
],
|
],
|
||||||
"evaluator": {
|
"evaluator": {
|
||||||
"func":"exact_match",
|
"func": "exact_match",
|
||||||
"result": {
|
"result": {
|
||||||
"type": "url_dashPart",
|
"type": "url_dashPart",
|
||||||
"selectors":[
|
"selectors": [
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
],
|
],
|
||||||
"goto_prefix": "https://www.",
|
"goto_prefix": "https://www.",
|
||||||
@@ -54,12 +54,11 @@
|
|||||||
"needDeleteId": false,
|
"needDeleteId": false,
|
||||||
"returnType": "string"
|
"returnType": "string"
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected": {
|
||||||
"type": "rule",
|
"type": "rule",
|
||||||
"rules":{
|
"rules": {
|
||||||
"expected": "tamiflu.html#side-effects"
|
"expected": "tamiflu.html#side-effects"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -43,19 +43,22 @@
|
|||||||
"chrome"
|
"chrome"
|
||||||
],
|
],
|
||||||
"evaluator": {
|
"evaluator": {
|
||||||
"func":"is_expected_url_pattern_match",
|
"func": "is_expected_url_pattern_match",
|
||||||
"result": {
|
"result": {
|
||||||
"type": "active_url_from_accessTree",
|
"type": "active_url_from_accessTree",
|
||||||
"selectors":[
|
"selectors": [
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
],
|
],
|
||||||
"goto_prefix": "https://www."
|
"goto_prefix": "https://www."
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected": {
|
||||||
"type": "rule",
|
"type": "rule",
|
||||||
"rules":{
|
"rules": {
|
||||||
"expected": ["AgeAppropriate:Kids", "search=spider-man%20toys", "S=4"]
|
"expected": [
|
||||||
}
|
"AgeAppropriate:Kids",
|
||||||
|
"search=spider-man%20toys",
|
||||||
|
"S=4"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user