mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed Integration-Tests
This commit is contained in:
Vendored
+5
-5
File diff suppressed because one or more lines are too long
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
@@ -26,12 +27,18 @@ module.exports = function(config) {
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.jsx'],
|
||||
root: path.resolve(__dirname),
|
||||
alias: {
|
||||
'input_stream$': path.resolve(__dirname, 'src/input_stream'),
|
||||
'frame_grabber$': path.resolve(__dirname, 'src/frame_grabber')
|
||||
}
|
||||
'input_stream$': 'src/input/input_stream',
|
||||
'frame_grabber$': 'src/input/frame_grabber'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
ENV: require(path.join(__dirname, './env/production'))
|
||||
})
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
'karma-chrome-launcher',
|
||||
'karma-mocha',
|
||||
|
||||
+3
-2
@@ -33,9 +33,10 @@ module.exports = function(config) {
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.jsx'],
|
||||
root: path.resolve(__dirname),
|
||||
alias: {
|
||||
'input_stream$': path.resolve(__dirname, 'src/input_stream'),
|
||||
'frame_grabber$': path.resolve(__dirname, 'src/frame_grabber')
|
||||
'input_stream$': 'src/input/input_stream',
|
||||
'frame_grabber$': 'src/input/frame_grabber'
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
@@ -34,8 +34,8 @@ module.exports = {
|
||||
halfSample: true,
|
||||
patchSize: "medium", // x-small, small, medium, large, x-large
|
||||
debug: {
|
||||
showCanvas: true,
|
||||
showPatches: true,
|
||||
showCanvas: false,
|
||||
showPatches: false,
|
||||
showFoundPatches: false,
|
||||
showSkeleton: false,
|
||||
showLabels: false,
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
initConfig();
|
||||
|
||||
function initCanvas() {
|
||||
if (typeof document !== 'undefined') {
|
||||
if (ENV.development && typeof document !== 'undefined') {
|
||||
var $debug = document.querySelector("#debug.detection");
|
||||
_canvas.dom.frequency = document.querySelector("canvas.frequency");
|
||||
if (!_canvas.dom.frequency) {
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
}
|
||||
|
||||
function initConfig() {
|
||||
if (typeof document !== 'undefined') {
|
||||
if (ENV.development && typeof document !== 'undefined') {
|
||||
var i,
|
||||
vis = [{
|
||||
node: _canvas.dom.frequency,
|
||||
|
||||
Reference in New Issue
Block a user