further improvements to coursewares and bonfires
This commit is contained in:
@ -729,7 +729,7 @@ div.CodeMirror-scroll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.test-vertical-center {
|
.test-vertical-center {
|
||||||
margin-top: 15px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cm-s-monokai.CodeMirror {
|
.cm-s-monokai.CodeMirror {
|
||||||
|
@ -201,7 +201,7 @@ var createTestDisplay = function() {
|
|||||||
.prependTo($('#testSuite'))
|
.prependTo($('#testSuite'))
|
||||||
} else {
|
} else {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html("<div class='row'><div class='col-xs-1 text-center'><i class='ion-checkmark-circled big-success-icon'></i></div><div class='col-xs-11 test-output test-vertical-center wrappable grayed-out-test-output'>" + test.text + "</div></div><div class='ten-pixel-break'/>")
|
.html("<div class='row'><div class='col-xs-1 text-center'><i class='ion-checkmark-circled big-success-icon'></i></div><div class='col-xs-11 test-output test-vertical-center wrappable '>" + test.text + "</div></div><div class='ten-pixel-break'/>")
|
||||||
.appendTo($('#testSuite'));
|
.appendTo($('#testSuite'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -56,7 +56,7 @@ var allTests = '';
|
|||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var otherTestsForNow = "<script src='/js/lib/coursewares/iFrameScripts_.0.0.1.js'></script>";
|
var otherTestsForNow = "<script src='/js/lib/coursewares/iFrameScripts_0.0.1.js'></script>";
|
||||||
|
|
||||||
var delay;
|
var delay;
|
||||||
// Initialize CodeMirror editor with a nice html5 canvas demo.
|
// Initialize CodeMirror editor with a nice html5 canvas demo.
|
||||||
@ -92,7 +92,7 @@ var postSuccess = function(data) {
|
|||||||
var postError = function(data) {
|
var postError = function(data) {
|
||||||
var testDoc = document.createElement("div");
|
var testDoc = document.createElement("div");
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html("<div class='row'><div class='col-xs-2 text-center'><i class='ion-close-circled big-error-icon'></i></div><div class='col-xs-10 test-output wrappable'>" + JSON.parse(data) + "</div></div><div class='ten-pixel-break'/>")
|
.html("<div class='row'><div class='col-xs-2 text-center'><i class='ion-close-circled big-error-icon'></i></div><div class='col-xs-10 test-vertical-center test-output wrappable'>" + JSON.parse(data) + "</div></div><div class='ten-pixel-break'/>")
|
||||||
.prependTo($('#testSuite'))
|
.prependTo($('#testSuite'))
|
||||||
};
|
};
|
||||||
var goodTests = 0;
|
var goodTests = 0;
|
||||||
|
@ -182,7 +182,7 @@ var createTestDisplay = function() {
|
|||||||
if (test.err != null) {
|
if (test.err != null) {
|
||||||
console.log('Should be displaying bad tests');
|
console.log('Should be displaying bad tests');
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html("<div class='row'><div class='col-xs-2 text-center'><i class='ion-close-circled big-error-icon'></i></div><div class='col-xs-10 test-output wrappable grayed-out-test-output'>" + test.text + "</div><div class='col-xs-10 test-output wrappable'>" + test.err + "</div></div><div class='ten-pixel-break'/>")
|
.html("<div class='row'><div class='col-xs-2 text-center'><i class='ion-close-circled big-error-icon'></i></div><div class='col-xs-10 test-output wrappable test-vertical-center grayed-out-test-output'>" + test.text + "</div><div class='col-xs-10 test-output wrappable'>" + test.err + "</div></div><div class='ten-pixel-break'/>")
|
||||||
.prependTo($('#testSuite'))
|
.prependTo($('#testSuite'))
|
||||||
} else {
|
} else {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
allTestsGood = false;
|
allTestsGood = false;
|
||||||
thisTest = false;
|
thisTest = false;
|
||||||
parent.postError(JSON.stringify(tests[i].message));
|
parent.postError(JSON.stringify(err.message.split(':').shift()));
|
||||||
} finally {
|
} finally {
|
||||||
if (thisTest) {
|
if (thisTest) {
|
||||||
parent.postSuccess(JSON.stringify(tests[i]));
|
parent.postSuccess(JSON.stringify(tests[i].split(',').pop().replace(/\'/g, '').replace(/\)/, '')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user