mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
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.
This commit is contained in:
parent
15783d6598
commit
99672a2691
@ -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…
Reference in New Issue
Block a user