Skip to content

Commit

Permalink
remove unnecessary code from custom uibench
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Sep 21, 2023
1 parent ad0d53b commit 9f8bada
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions scripts/fakedom/libs/uibench.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,21 +429,6 @@
});
}

// performance.now() polyfill
// https://gist.github.com/paulirish/5438650
// prepare base perf object
if (typeof window.performance === "undefined") {
window.performance = {};
}
if (!window.performance.now) {
var nowOffset_1 = Date.now();
if (window.performance.timing && window.performance.timing.navigationStart) {
nowOffset_1 = window.performance.timing.navigationStart;
}
window.performance.now = function now() {
return Date.now() - nowOffset_1;
};
}
var TestCase = (function () {
function TestCase(name, from, to) {
this.name = name;
Expand All @@ -467,7 +452,6 @@
fullRenderTime: false,
timelineMarks: false,
disableChecks: false,
startDelay: 0,
};
var timing = {
start: 0,
Expand Down Expand Up @@ -513,9 +497,6 @@
if (qs["disableChecks"] !== undefined) {
config.disableChecks = true;
}
if (qs["startDelay"] !== undefined) {
config.startDelay = parseInt(qs["startDelay"], 10);
}
return config;
}
function initTests() {
Expand Down Expand Up @@ -863,12 +844,7 @@
e.run();
}
if (tests) {
if (config.startDelay > 0) {
setTimeout(run, config.startDelay);
}
else {
run();
}
run();
}
else {
onFinish({});
Expand Down

0 comments on commit 9f8bada

Please sign in to comment.