Skip to content

Commit 7027c8e

Browse files
author
Philip Guo
committed
bam
1 parent e57a4c8 commit 7027c8e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

edu-python-questions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ function genTestResultHandler(idx) {
131131
return ret;
132132
}
133133

134-
function genDebugLinkHandler(testResult) {
134+
function genDebugLinkHandler(failingTestIndex) {
135135
function ret() {
136-
//console.log('DEBUG', testResult);
136+
console.log('DEBUG', failingTestIndex);
137137

138-
// TODO: switch back to visualize mode, populating all the edit
139-
// fields with the input and outputs from the failing test input
140-
// but keeping the user's submitted solution code unchanged
138+
// TODO: switch back to visualize mode, populating the "test" input
139+
// field with the failing test case, and RE-RUN the back-end to
140+
// visualize execution (with proper IDs)
141141

142142
return false; // don't reload the page
143143
}
@@ -288,7 +288,7 @@ function readyToGradeSubmission() {
288288
$("#gradeMatrix tr.gradeMatrixRow:last").append('<td>' + sadFaceImg + debugMeSpan + '</td>');
289289

290290
$('#' + linkID).unbind(); // unbind it just to be paranoid
291-
$('#' + linkID).click(genDebugLinkHandler(res));
291+
$('#' + linkID).click(genDebugLinkHandler(i));
292292
}
293293
}
294294

0 commit comments

Comments
 (0)