diff --git a/test/integration/browser_yaml_suite/esjs_reporter.css b/test/integration/browser_yaml_suite/esjs_reporter.css deleted file mode 100644 index 4659a3ccd..000000000 --- a/test/integration/browser_yaml_suite/esjs_reporter.css +++ /dev/null @@ -1,14 +0,0 @@ -#mocha h1 { - font-size: .7em; -} - -.test { - font-size: .8em; - color: yellow; -} -.test.passed { - color: green; -} -.test.failed { - color: red; -} diff --git a/test/integration/browser_yaml_suite/esjs_reporter.js b/test/integration/browser_yaml_suite/esjs_reporter.js deleted file mode 100644 index e56151ce9..000000000 --- a/test/integration/browser_yaml_suite/esjs_reporter.js +++ /dev/null @@ -1,216 +0,0 @@ -(function (global) { - /* jshint browser:true */ - /* global alert, BROWSER_NAME */ - - /** - * Save timer references to avoid Sinon interfering (see GH-237). - */ - - var Date = global.Date; - var setTimeout = global.setTimeout; - var setInterval = global.setInterval; - var clearTimeout = global.clearTimeout; - var clearInterval = global.clearInterval; - var mocha = global.mocha; - var Base = mocha.reporter('base')._reporter; - var $ = global.jQuery; - - /** - * Expose `HTML`. - */ - - global.EsjsReporter = EsjsReporter; - - /** - * Initialize a new `HTML` reporter. - * - * @param {Runner} runner - * @api public - */ - - function EsjsReporter(runner, root) { - Base.call(this, runner); - - var stats = this.stats; - var rootSuite = { - $el: $(''), - name: 'root', - start: Date.now(), - results: [], - suites: [], - stdout: '', - stderr: '', - }; - - - var stack = [rootSuite]; - rootSuite.$el.appendTo(root || '#mocha'); - - runner.on('suite', function (suite) { - if (suite.root) { - $.post('/tests-started'); - return; - } - - // suite - suite = { - name: suite.title, - results: [], - start: Date.now(), - stdout: '', - stderr: '', - $el: $('
  • ').append($('

    ').text(suite.title)), - $results: $('