File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments