[Sugar-devel] Build breakage in sugar-web

Daniel Narvaez dwnarvaez at gmail.com
Thu Aug 29 10:49:00 EDT 2013


Hello,

as discussed in irc, the karma tests are failing

http://buildbot.sugarlabs.org/builders/quick/builds/80/steps/shell_2/logs/modules

The following fixes it for me

diff --git a/test/karma.conf.js b/test/karma.conf.js
index f8fb3cc..7d48693 100644
--- a/test/karma.conf.js
+++ b/test/karma.conf.js
@@ -19,6 +19,9 @@ files = [
         pattern: 'lib/**/*.js',
         included: false
     }, {
+        pattern: 'graphics/*.html',
+        included: false
+    }, {
         pattern: '**/*js',
         exclude: 'test/**/*js',
         included: false
diff --git a/test/loader.js b/test/loader.js
index a6019bf..7c83cc9 100644
--- a/test/loader.js
+++ b/test/loader.js
@@ -8,7 +8,8 @@ requirejs.config({

     paths: {
         "sugar-web": ".",
-        "mustache": "lib/mustache"
+        "mustache": "lib/mustache",
+        "text": "lib/text"
     },

     // ask Require.js to load these files (all our tests)


After that we run into another issue, js-beautify doesn't like
menupalette.html. I tend to think the templates should not be run through
js-beautify, they are not pure html... What about just renaming to
.mustache? I was actually uncertain if I should suggest that during the
review, maybe this is a good reason to do it.

-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130829/d0d130e5/attachment.html>


More information about the Sugar-devel mailing list