var path = require("path");
var fs = require("fs");

// Expectation Framework
global.chai = require("chai");
global.chai.use(require("sinon-chai"));
global.expect = require("chai").expect;

// Sinon for stubbing/mocking
global.sinon = require("sinon");

// Simulate the DOM inside node
global.jsdom = require("jsdom");

// A stubbed chrome API
global.chrome = require("./support/chrome_api.js");

// jQuery loaded with the jsDOM window
global.jQuery = require("./support/jquery.js")(jsdom.jsdom().parentWindow);

// Absolute path to test directory
global.testRoot = path.normalize(__dirname);

// Load the source into a string so they
// can be used with jsdom as "src" option
var sources = {
  jQuery: fs.readFileSync(testRoot + '/support/jquery.js').toString(),
  i18n: fs.readFileSync(testRoot + '/../src/js/global/i18n.js').toString(),
  chrome: fs.readFileSync(testRoot + '/support/chrome_api.js').toString()
};
global.sources = sources;

@@ -1,57 +1,4 @@
-var path = require(%22path%22);%0Avar fs = require(%22fs%22);%0A%0A
 // E
@@ -457,434 +457,47 @@
 );%0A%0A
-// Absolute path to test directory%0Aglobal.testRoot = path.normalize(__dirname);%0A%0A// Load the source into a string so they%0A// can be used with jsdom as %22src%22 option%0Avar sources = %7B%0A  jQuery: fs.readFileSync(testRoot + '/support/jquery.js').toString(),%0A  i18n: fs.readFileSync(testRoot + '/../src/js/global/i18n.js').toString(),%0A  chrome: fs.readFileSync(testRoot + '/support/chrome_api.js').toString()%0A%7D;%0Aglobal.sources = sources
+global.Logger = %7B%0A  info: function() %7B%7D%0A%7D
 ;%0A

add stub for Logger