fix: js perf tests

modules/js/perf/perf_helpfunc.js and target tests, e.g. perf_gaussianBlur.js contained "const isNodeJs", leading to re-definition when using associated *.html files.
pull/25961/head
gblikas 4 months ago
parent 15783d6598
commit 99672a2691
  1. 2
      modules/js/perf/perf_64bits.js
  2. 2
      modules/js/perf/perf_helpfunc.js
  3. 2
      modules/js/perf/perf_imgproc/perf_blur.js
  4. 2
      modules/js/perf/perf_imgproc/perf_cvtcolor.js
  5. 2
      modules/js/perf/perf_imgproc/perf_dilate.js
  6. 2
      modules/js/perf/perf_imgproc/perf_erode.js
  7. 2
      modules/js/perf/perf_imgproc/perf_filter2D.js
  8. 2
      modules/js/perf/perf_imgproc/perf_gaussianBlur.js
  9. 2
      modules/js/perf/perf_imgproc/perf_medianBlur.js
  10. 2
      modules/js/perf/perf_imgproc/perf_pyrDown.js
  11. 2
      modules/js/perf/perf_imgproc/perf_remap.js
  12. 2
      modules/js/perf/perf_imgproc/perf_resize.js
  13. 2
      modules/js/perf/perf_imgproc/perf_scharr.js
  14. 2
      modules/js/perf/perf_imgproc/perf_sobel.js
  15. 2
      modules/js/perf/perf_imgproc/perf_threshold.js
  16. 2
      modules/js/perf/perf_imgproc/perf_warpAffine.js
  17. 2
      modules/js/perf/perf_imgproc/perf_warpPerspective.js

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if(isNodeJs) {
var Base = require("./base");

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');

Loading…
Cancel
Save