fix script tag importing issue in coursewares

This commit is contained in:
Quincy Larson
2015-05-18 22:25:48 -07:00
parent 1c6edd6fee
commit 45d4954a43
2 changed files with 6 additions and 5 deletions

View File

@ -107,11 +107,11 @@ var tests = tests || [];
var allSeeds = '';
(function() {
challengeSeed.forEach(function(elem) {
allSeeds += elem + '\n';
allSeeds += elem.replace(/fccss/g, '<script>').replace(/fcces/g,'</script>') + '\n';
});
editor.setValue(allSeeds);
})();
editor.setValue(allSeeds);
function doLinting () {
editor.operation(function () {

View File

@ -3420,14 +3420,15 @@
],
"tests": [
"assert($('#target').hasClass('disabled'), 'The button with the ID of \"target\" should continue to have the \"disabled\" class.')",
"assert($('#target').attr('disabled', true), 'Enable the button with the ID of \"target\" by using jQuery.')"
"assert(!!$('#target[disabled]'), 'Enable the button with the ID of \"target\" by using jQuery.')",
"expect($('#target')).to.exist()"
],
"challengeSeed": [
"<script>",
"fccss",
" $(document).ready(function() {",
" $('#target').attr('disabled', true)",
" });",
"</script>",
"fcces",
"<button id='target' class='btn btn-primary btn-block'>Enable this button with jQuery</button>"
],
"challengeType": 0