summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-27 18:25:03 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-27 18:25:03 +0200
commitfabdc0472b6f2828e34f01a13fc3fa738f9eab5d (patch)
tree3bc955c35af4e437a93ed0184c27109cce1554d9 /js/codeq
parentad1451c4d5ca6dfcb31b3559b98f78b318159a09 (diff)
Add testing functionality
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/comms.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index cff1015..c2ad715 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -121,6 +121,11 @@
return send('query', query);
},
+ sendTest: function commsSendTest (json) {
+ json['sid'] = codeq.sid;
+ return send('test', json);
+ },
+
getProblem: function commsGetProblem (language, problem_group, problem) {
return send('get_problem', {
'sid': codeq.sid,