108 lines
2.7 KiB
JSON
108 lines
2.7 KiB
JSON
{
|
|
"id": "74d5859f-ed66-4d3e-aa0e-93d7a592ce41",
|
|
"snapshot": "chrome",
|
|
"instruction": "Help me to get an initial setup of web extension with help of https://webext.eu . Tag the extension as \"happy-extension v0.0.1\". Leave description as blank for now. A background script and browser action is needed, while other features are not. Place the auto-generated folder under folder \"~/Projects\".",
|
|
"source": "authors",
|
|
"config": [],
|
|
"trajectory": "trajectories/74d5859f-ed66-4d3e-aa0e-93d7a592ce41",
|
|
"related_apps": [
|
|
"chrome",
|
|
"os"
|
|
],
|
|
"evaluator": {
|
|
"func": [
|
|
"check_json",
|
|
"diff_text_file",
|
|
"diff_text_file",
|
|
"diff_text_file",
|
|
"diff_text_file"
|
|
],
|
|
"result": [
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Projects/happy-extension/manifest.json",
|
|
"dest": "manifest.json"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Projects/happy-extension/background_script.js",
|
|
"dest": "background_script.js"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Projects/happy-extension/browserAction/index.html",
|
|
"dest": "index.html"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Projects/happy-extension/browserAction/style.css",
|
|
"dest": "style.css"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Projects/happy-extension/browserAction/script.js",
|
|
"dest": "script.js"
|
|
}
|
|
],
|
|
"expected": [
|
|
{
|
|
"type": "rule",
|
|
"rules": {
|
|
"expect": [
|
|
{
|
|
"key": ["name"],
|
|
"method": "eq",
|
|
"ref": "happy-extension"
|
|
},
|
|
{
|
|
"key": ["version"],
|
|
"method": "eq",
|
|
"ref": "0.0.1"
|
|
},
|
|
{
|
|
"key": ["background", "scripts"],
|
|
"method": "eq",
|
|
"ref": ["background_script.js"]
|
|
},
|
|
{
|
|
"key": ["browser_action", "default_icon"],
|
|
"method": "eq",
|
|
"ref": {"64": "icons/icon.png"}
|
|
},
|
|
{
|
|
"key": ["browser_action", "default_popup"],
|
|
"method": "eq",
|
|
"ref": "browserAction/index.html"
|
|
},
|
|
{
|
|
"key": ["browser_action", "default_title"],
|
|
"method": "eq",
|
|
"ref": "happy-extension"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=1t5Llhn6seDUXVs-eILu6CjwFEQL9Z5Qm&export=download",
|
|
"dest": "background_script.js"
|
|
},
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=19fMAsWd6q4ElLdOceJ-otHbxRJA_pc_U&export=download",
|
|
"dest": "index.html"
|
|
},
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=1fwfiRPjdug8uh6z23RFO1JtlGH_L_Hl_&export=download",
|
|
"dest": "style.css"
|
|
},
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=14YYnhCfRtHQNk8M4fBPaUQeteoFMGBsA&export=download",
|
|
"dest": "script.js"
|
|
}
|
|
]
|
|
}
|
|
}
|