Skip to content

Commit

Permalink
handle new require for Mann-Whitney U statistics test.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 1, 2016
1 parent a628f62 commit e0e1052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lighthouse-core/lib/traces/tracing-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Object.keys(glMatrixModule).forEach(exportName => {
});
// from catapult/tracing/tracing/extras/importer/jszip.html
global.JSZip = require('jszip/dist/jszip.min.js');
global.mannwhitneyu = {};

global.HTMLImportsLoader = {};
global.HTMLImportsLoader.hrefToAbsolutePath = function(path) {
Expand All @@ -45,6 +46,9 @@ global.HTMLImportsLoader.hrefToAbsolutePath = function(path) {
if (path === '/jszip.min.js') {
return 'jszip/dist/jszip.min.js';
}
if (path === '/mannwhitneyu.js') {
return '../../../lib/empty-stub.js';
}
};

require('../../third_party/traceviewer-js/');
Expand Down

0 comments on commit e0e1052

Please sign in to comment.