Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function rerunStep3(processorConfig) {
// make sure we can scroll enough to hide the loader/logo
d3.select(".test-sets").style('min-height', "100%");
var loadConfig = processorConfig.loaded.config;
var loaded = Processor.load(loadConfig);
processorConfig.loaded = loaded;
renderer = Processor.run(processorConfig);
// make sure the tests ares still scrolled to the top
var topBar = d3.select(".top-bar").property("scrollHeight");
var offsetTop = d3.select("#info-top-bar").property("offsetTop") - topBar;
var column1 = d3.select(".column-1");
column1.node().scrollTop = offsetTop;
}
ipc.on("last-file-selected", function(event, file) {
var loadConfig = {
ext: file.name.split(".").pop(),
filepath: file.path,
filename: file.name,
sampleOpts: {
sampleSize: 0.25,
sampleMin: 1000,
sampleMax: 10000
}
};
var loaded = Processor.load(loadConfig);
lastProcessorConfig = {
suites: SUITES,
renderer: HTMLRenderer,
input: {},
loaded: loaded
};
});