From 45d4954a433881508f7f0460a3a21a539ea503e8 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 18 May 2015 22:25:48 -0700 Subject: [PATCH] fix script tag importing issue in coursewares --- .../js/lib/coursewares/coursewaresHCJQFramework_0.1.1.js | 4 ++-- seed_data/coursewares.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.1.js b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.1.js index f91de93e29..192083f0a2 100644 --- a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.1.js +++ b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.1.js @@ -107,11 +107,11 @@ var tests = tests || []; var allSeeds = ''; (function() { challengeSeed.forEach(function(elem) { - allSeeds += elem + '\n'; + allSeeds += elem.replace(/fccss/g, '') + '\n'; }); + editor.setValue(allSeeds); })(); -editor.setValue(allSeeds); function doLinting () { editor.operation(function () { diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index 39b5a14978..0cbce3b770 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -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": [ - "", + "fcces", "" ], "challengeType": 0