blob: 72296b67821246afb548b237c28e1522b798da60 [file] [log] [blame]
{
"skfiddle": {
"urls": ["https://fiddle.skia.org"],
"method": "GET",
"expected": [200],
"body": "",
"mimetype": ""
},
"skfiddle_compile_bad": {
"urls": ["https://fiddle.skia.org/_/run"],
"method": "POST",
"expected": [200],
"body": "{\"code\":\"void draw(SkCanvas* canvas)\",\"name\":\"\",\"options\":{\"width\":256,\"height\":256}}",
"mimetype": "application/json",
"responsetest":"skfiddleJSONBad"
},
"skfiddle_compile_good": {
"urls": ["https://fiddle.skia.org/_/run"],
"method": "POST",
"expected": [200],
"body": "{\"code\":\"void draw(SkCanvas* canvas) {SkPaint p;canvas->drawLine(0, 0, 10, 10, p);}\",\"options\":{\"width\":10,\"height\":10}}",
"mimetype": "application/json",
"responsetest":"skfiddleJSONGood"
},
// Confirm that an attempted security violation gets caught.
"skfiddle_compile_secviolation": {
"urls": ["https://fiddle.skia.org/_/run"],
"method": "POST",
"expected": [200],
"body": "{\"code\":\"void draw(SkCanvas* canvas) {fopen(\\\"/etc/passwd\\\", \\\"rw\\\");}\",\"options\":{\"width\":10,\"height\":10}}",
"mimetype": "application/json",
"responsetest":"skfiddleJSONSecViolation"
},
}