Skip to content
Browse files

quick hack to get the browser runner going again for #283

  • Loading branch information...
1 parent 0396ee1 commit 19fa2609a18d236b4d9cd6494c2332db02089259 @gtanner gtanner committed Mar 10, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 build/btest.js
View
9 build/btest.js
@@ -20,6 +20,7 @@ module.exports = function () {
tests = [],
html = fs.readFileSync(__dirname + "/btest/test.html", "utf-8"),
pack = require('./build/pack'),
+ conf = require('./build/conf'),
doc,
modules,
specs,
@@ -37,10 +38,16 @@ module.exports = function () {
})
);
- utils.collect(__dirname + "/../test", tests);
+ //HACK: Openlayers causes weird stuff with the browser runner, so lets pop it off the list until we fix it
+ var openlayers = conf.thirdpartyIncludes.pop();
+ if (openlayers !== "OpenLayers.js") {
+ console.log("HACK: we wanted to pop OpenLayers off but it looks like it wasn't the last one anymore");
+ }
modules = pack();
+ utils.collect(__dirname + "/../test", tests);
+
specs = tests.reduce(function (str, file) {
str += '<script src="' +
file.replace(/^.*test/, "test") +

0 comments on commit 19fa260

Please sign in to comment.
Something went wrong with that request. Please try again.