From e0e10528aa883c80466e8d4b62a38343b139056a Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Mon, 1 Aug 2016 12:29:33 -0700 Subject: [PATCH] handle new require for Mann-Whitney U statistics test. added in https://codereview.chromium.org/2085763002 --- lighthouse-core/lib/traces/tracing-processor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lighthouse-core/lib/traces/tracing-processor.js b/lighthouse-core/lib/traces/tracing-processor.js index 72b052dc4da9..6b37708428f8 100644 --- a/lighthouse-core/lib/traces/tracing-processor.js +++ b/lighthouse-core/lib/traces/tracing-processor.js @@ -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) { @@ -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/');