Skip to content

Commit

Permalink
Updated GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
paultannenbaum committed May 5, 2016
1 parent 1669306 commit d9f8281
Show file tree
Hide file tree
Showing 13 changed files with 15,002 additions and 26,891 deletions.
633 changes: 299 additions & 334 deletions priv/ember_riak_explorer/dist/assets/ember-riak-explorer.css

Large diffs are not rendered by default.

194 changes: 98 additions & 96 deletions priv/ember_riak_explorer/dist/assets/ember-riak-explorer.css.map

Large diffs are not rendered by default.

16,876 changes: 7,722 additions & 9,154 deletions priv/ember_riak_explorer/dist/assets/ember-riak-explorer.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

104 changes: 0 additions & 104 deletions priv/ember_riak_explorer/dist/assets/test-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,107 +97,3 @@ define("ember-cli/test-loader",
}
);
})();

/*global QUnit, blanket, mocha, $ */

function sendCoverage() {
try {
var data = JSON.stringify(window._$blanket_coverageData);
$.ajax({
type: 'POST',
url:'/write-blanket-coverage',
datatype: 'json',
contentType:'application/json; charset=utf-8',
data: data
});
} catch(err) {
console.error('JSON stringify error:', err);
throw err;
}
}

var origBlanketOnTestsDone = blanket.onTestsDone;

function cliFinish() {
origBlanketOnTestsDone.apply(blanket);
sendCoverage();
}

blanket.onTestsDone = cliFinish;

if (typeof(QUnit) === 'object') {
QUnit.config.autostart = blanket.options('cliOptions').autostart !== false;
}
else if (typeof(mocha) === 'object') {

/*
* Mocha-BlanketJS adapter
* Adds a BlanketJS coverage report at the bottom of the HTML Mocha report
* Only needed for in-browser report; not required for the grunt/phantomjs task
*
* Distributed as part of the grunt-blanket-mocha plugin
* https://github.com/ModelN/grunt-blanket-mocha
* (C)2013 Model N, Inc.
* Distributed under the MIT license
*
* Code originally taken from the BlanketJS project:
* https://github.com/alex-seville/blanket/blob/master/src/adapters/mocha-blanket.js
* Distributed under the MIT license
*/
(function() {

if(!mocha) {
throw new Error("mocha library does not exist in global namespace!");
}


/*
* Mocha Events:
*
* - `start` execution started
* - `end` execution complete
* - `suite` (suite) test suite execution started
* - `suite end` (suite) all tests (and sub-suites) have finished
* - `test` (test) test execution started
* - `test end` (test) test completed
* - `hook` (hook) hook execution started
* - `hook end` (hook) hook complete
* - `pass` (test) test passed
* - `fail` (test, err) test failed
*
*/

var originalReporter = mocha._reporter;

var blanketReporter = function(runner) {
runner.on('start', function() {
blanket.setupCoverage();
});

runner.on('end', function() {
blanket.onTestsDone();
});
runner.on('suite', function() {
blanket.onModuleStart();
});

runner.on('test', function() {
blanket.onTestStart();
});

runner.on('test end', function(test) {
blanket.onTestDone(test.parent.tests.length, test.state === 'passed');
});

//I dont know why these became global leaks
runner.globals(['stats', 'failures', 'runner', '_$blanket']);

originalReporter.apply(this, [runner]);
};

blanketReporter.prototype = originalReporter.prototype;

mocha.reporter(blanketReporter);
})();
}
//# sourceMappingURL=test-loader.map
Loading

0 comments on commit d9f8281

Please sign in to comment.