bimplus-renderer 1.8.20-glb-gltf-obj-support-05 → 1.8.20-glb-gltf-obj-support-07

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/eslint.config.mjs CHANGED
@@ -1,38 +1,38 @@
1
- import globals from "globals";
2
- import js from "@eslint/js";
3
-
4
- export default [
5
- js.configs.recommended,
6
- // File-pattern specific overrides
7
- {
8
- files: ["src/**/*", "test/**/*"],
9
- rules: {
10
- semi: ["warn", "always"], // check for missing semicolons at line ends
11
- },
12
- },
13
- {
14
- ignores: [
15
- "./recordings/*", // don't check *.har recordings
16
- "src/compiledWorkers/*", // don't check compiled worker files
17
- ],
18
- },
19
- {
20
- languageOptions: {
21
- ecmaVersion: 2022,
22
- sourceType: "module",
23
- globals: {
24
- ...globals.browser,
25
- $: true,
26
- jQuery: true,
27
- QUnit: true,
28
- // needed for webpack files
29
- define: true,
30
- require: true,
31
- module: true,
32
- __dirname: true,
33
- },
34
- },
35
- plugins: {},
36
- rules: {},
37
- },
38
- ];
1
+ import globals from "globals";
2
+ import js from "@eslint/js";
3
+
4
+ export default [
5
+ js.configs.recommended,
6
+ // File-pattern specific overrides
7
+ {
8
+ files: ["src/**/*", "test/**/*"],
9
+ rules: {
10
+ semi: ["warn", "always"], // check for missing semicolons at line ends
11
+ },
12
+ },
13
+ {
14
+ ignores: [
15
+ "./recordings/*", // don't check *.har recordings
16
+ "src/compiledWorkers/*", // don't check compiled worker files
17
+ ],
18
+ },
19
+ {
20
+ languageOptions: {
21
+ ecmaVersion: 2022,
22
+ sourceType: "module",
23
+ globals: {
24
+ ...globals.browser,
25
+ $: true,
26
+ jQuery: true,
27
+ QUnit: true,
28
+ // needed for webpack files
29
+ define: true,
30
+ require: true,
31
+ module: true,
32
+ __dirname: true,
33
+ },
34
+ },
35
+ plugins: {},
36
+ rules: {},
37
+ },
38
+ ];
@@ -1,158 +1,159 @@
1
- module.exports = {
2
- // list of files / patterns to load in the browser
3
- files: [
4
- { pattern: "src/wasm/*.wasm", included: false, served: true, type: "wasm" },
5
- { pattern: "bin/*.js", included: false, served: true /*, type: 'wasm'*/ },
6
- { pattern: 'test/data/*.obj', watched: false, included: false, served: true },
7
- { pattern: 'test/data/*.gltf', watched: false, included: false, served: true },
8
- // "bin/**/*.js",
9
- "src/**/*.js",
10
- // Load custom assertions first (isZeroFloat, floatEqual, etc.)
11
- "test/customAsserts.js",
12
- // Load test files
13
- "test/**/*.js",
14
-
15
- // For testing only specific files/file
16
- // "test/tests/AmbientOcclusionSettingsTests.js",
17
- // "test/tests/BackgroundTests.js",
18
- // "test/tests/BasicTests.js",
19
- // "test/tests/ClashesTests.js",
20
- // "test/tests/ClippingBoxTests.js",
21
- // "test/tests/ClippingPlaneSettingsTests.js",
22
- // "test/tests/ClippingPlaneSpotTests.js",
23
- // "test/tests/ClippingPlaneTests.js",
24
- // "test/tests/ColorizeTests.js",
25
- // "test/tests/ContentLoaderGLBTests.js",
26
- // "test/tests/DiagnosticTests.js",
27
- // "test/tests/DisciplineNodeStoreTests.js",
28
- // "test/tests/DivisionsTests.js",
29
- // "test/tests/DrawRangeTests.js",
30
- // "test/tests/FingerprintCursorTests.js",
31
- // "test/tests/FileViewTests.js",
32
- // "test/tests/GLTFLoaderTests.js",
33
- // "test/tests/GPUPickerTests.js",
34
- // "test/tests/HideObjectTests.js",
35
- // "test/tests/HighlightObjectEdgesPollyTests.js",
36
- // "test/tests/HighlightObjectEdgesTests.js",
37
- // "test/tests/HoverObjectTests.js",
38
- // "test/tests/LayersTests.js",
39
- // "test/tests/LookupTextureTests.js",
40
- // "test/tests/LookupTextureIndexCounterTests.js",
41
- // "test/tests/MeshPartSearcher*.js",
42
- // "test/tests/NavigationMapTests.js",
43
- // "test/tests/ObjectPreviewTests.js",
44
- // "test/tests/ObjectsContainerTests.js",
45
- // "test/tests/OverlayPollyTests.js",
46
- // "test/tests/OverlayTests.js",
47
- // "test/tests/PinsTests.js",
48
- // "test/tests/PollyProjectLoaderTests.js",
49
- // "test/tests/ProjectContentTests.js",
50
- // "test/tests/RendererTests.js",
51
- // "test/tests/RevisionCompareTests.js",
52
- // "test/tests/RevisionsTests.js",
53
- // "test/tests/SceneTests.js",
54
- // "test/tests/SectionCutGeneralTests.js",
55
- // "test/tests/SectionCutTests.js",
56
- // "test/tests/SelectionModeTests.js",
57
- // "test/tests/SelectionTests.js",
58
- // "test/tests/SlideTests.js",
59
- // "test/tests/ThreeContentLoaderTests.js",
60
- // "test/tests/Viewport3dSunCalculationTests.js",
61
- // "test/tests/Viewport3dTests.js",
62
- // "test/tests/VisibilityTests.js",
63
- // "test/tests/VisualObjectStoreTests.js",
64
- // "test/tests/VisualObjectMeshDataTests.js",
65
- // "test/tests/VisualObjectTests.js",
66
- // "test/tests/IfcContentLoaderTests.js",
67
-
68
- // "test/tests/commands/CommandAddToSetTests.js",
69
- // "test/tests/commands/CommandColorizeTests.js",
70
- // "test/tests/commands/CommandHoverTests.js",
71
- // "test/tests/commands/CommandIsolateHideTests.js",
72
- // "test/tests/commands/CommandSelectTests.js",
73
-
74
- // "test/tests/connexis/ConnectionElementTests.js",
75
-
76
- // "test/tests/parser/DisciplineNodeParserTests.js",
77
- // "test/tests/parser/SharedGlbProcessorWorkerQueueTests.js",
78
-
79
- // "test/tests/markups/AnnotationMaterialsTests.js",
80
- // "test/tests/markups/AnnotationSettingsTests.js",
81
- // "test/tests/markups/AnnotationTests.js",
82
- // "test/tests/markups/DimensionAngleTests.js",
83
- // "test/tests/markups/DimensionEdgeTests.js",
84
- // "test/tests/markups/DimensionExtensionHelperLineTests.js",
85
- // "test/tests/markups/DimensionAxesHelperLinesTests.js",
86
- // "test/tests/markups/DimensionLineTests.js",
87
- // "test/tests/markups/DimensionPerpendicularLineTests.js",
88
- // "test/tests/markups/DimensionLocalPointTests.js",
89
- // "test/tests/markups/DimensionCalibrationPointTests.js",
90
- // "test/tests/markups/DimensionPointHelperTests.js",
91
- // "test/tests/markups/DimensionSettingsTests.js",
92
- // "test/tests/markups/DimensionSlopeTests.js",
93
- // "test/tests/markups/DimensionTextCreatorTests.js",
94
- // "test/tests/markups/LocalCoordSystemManagerTests.js",
95
- // "test/tests/markups/MarkupBaseTests.js",
96
- // "test/tests/markups/MarkupsContainerTests.js",
97
- // "test/tests/markups/ObjectPropsTests.js",
98
-
99
- // "test/tests/interactors/AnnotationInteractorTests*.js",
100
- // "test/tests/interactors/LaserMeasurementInteractor*.js",
101
- // "test/tests/interactors/LocalCoordSystemInteractorTests*.js",
102
- // "test/tests/interactors/InteractorMouseMovePollyTests*.js",
103
- // "test/tests/interactors/MarkupBaseInteractorTests*.js",
104
- // "test/tests/interactors/MarkupNoInputInteractorTests*.js",
105
- // "test/tests/interactors/MeasureAngleInteractorTests*.js",
106
- // "test/tests/interactors/MeasureAutoEdgesInteractorTests*.js",
107
- // "test/tests/interactors/MeasureEdgeInteractorTests*.js",
108
- // "test/tests/interactors/MeasureFreeInteractorTests*.js",
109
- // "test/tests/interactors/MeasurePerpendicularInteractorTests*.js",
110
- // "test/tests/interactors/MeasureLocalPointInteractorTests*.js",
111
- // "test/tests/interactors/MeasureCalibratedPointInteractorTests*.js",
112
- // "test/tests/interactors/MoveModelInteractorTests*.js",
113
- // "test/tests/interactors/ObjectPropsInteractorTests*.js",
114
- // "test/tests/interactors/SectionPlaneInteractorTests*.js",
115
- // "test/tests/interactors/SelectPointsForOverlayInteractorTests*.js",
116
- // "test/tests/interactors/ViewportInteractorTests*.js",
117
-
118
- // "test/tests/utils/AssertUtilsTests.js",
119
- // "test/tests/utils/BoundingBoxTests.js",
120
- // "test/tests/utils/CameraUtilsTests.js",
121
- // "test/tests/utils/EventUtilsTests.js",
122
- // "test/tests/utils/FrustumVisualizerTests.js",
123
- // "test/tests/utils/GeometryUtilsTests.js",
124
- // "test/tests/utils/GeometryUtilsViewportTests.js",
125
- // "test/tests/utils/GlobalAxesVisualizerTests.js",
126
- // "test/tests/utils/MathExtensionsTests.js",
127
- // "test/tests/utils/MeasureUtilsTests.js",
128
- // "test/tests/utils/ParserUtilsTests.js",
129
- // "test/tests/utils/RandomGeneratorTests.js",
130
- // "test/tests/utils/SphereVisualizerTests.js",
131
- // "test/tests/utils/SunCalculationTests.js",
132
- // "test/tests/utils/TouchModeHelperTests.js",
133
- // "test/tests/utils/ValueValidatorTests.js",
134
-
135
- // "test/tests/frameSelection/FrameSelectionTests.js",
136
- // "test/tests/frameSelection/FrameSelectionEventCheckerTests.js",
137
- // "test/tests/frameSelection/EdgesFrustumCheckerTests.js",
138
- // "test/tests/frameSelection/SelectionBoxTests.js",
139
- // "test/tests/frameSelection/SelectionHelperTests.js",
140
- // "test/tests/frameSelection/VerticesFrustumCheckerTests.js",
141
-
142
- // "test/tests/overlays/CropBoxTests.js",
143
- // "test/tests/overlays/UndoRedoManagerTests.js",
144
- // "test/tests/overlays/ViewportCropBoxTests.js"
145
-
146
- // "test/tests/viewControls/fileViewControlTests.js",
147
- // "test/tests/viewControls/navigationMapViewControlTests.js",
148
- // "test/tests/viewControls/orbitViewControlTests.js",
149
- // "test/tests/viewControls/ViewControlTests.js",
150
-
151
- // "test/tests/viewers/ProjectViewerTests.js",
152
- // "test/tests/viewers/ViewStateBuilderTests.js",
153
-
154
- // "test/performance/CommandColorizeTests.js",
155
- // "test/performance/DisciplineNodeStoreTests.js",
156
- // "test/performance/ObjectsContainerTests.js",
157
- ],
158
- };
1
+ module.exports = {
2
+ // list of files / patterns to load in the browser
3
+ files: [
4
+ { pattern: "src/wasm/*.wasm", included: false, served: true, type: "wasm" },
5
+ { pattern: "bin/*.js", included: false, served: true /*, type: 'wasm'*/ },
6
+ { pattern: 'test/data/*.obj', watched: false, included: false, served: true },
7
+ { pattern: 'test/data/*.gltf', watched: false, included: false, served: true },
8
+ { pattern: 'test/data/*.glb', watched: false, included: false, served: true },
9
+ // "bin/**/*.js",
10
+ "src/**/*.js",
11
+ // Load custom assertions first (isZeroFloat, floatEqual, etc.)
12
+ "test/customAsserts.js",
13
+ // Load test files
14
+ "test/**/*.js",
15
+
16
+ // For testing only specific files/file
17
+ // "test/tests/AmbientOcclusionSettingsTests.js",
18
+ // "test/tests/BackgroundTests.js",
19
+ // "test/tests/BasicTests.js",
20
+ // "test/tests/ClashesTests.js",
21
+ // "test/tests/ClippingBoxTests.js",
22
+ // "test/tests/ClippingPlaneSettingsTests.js",
23
+ // "test/tests/ClippingPlaneSpotTests.js",
24
+ // "test/tests/ClippingPlaneTests.js",
25
+ // "test/tests/ColorizeTests.js",
26
+ // "test/tests/ContentLoaderGLBTests.js",
27
+ // "test/tests/DiagnosticTests.js",
28
+ // "test/tests/DisciplineNodeStoreTests.js",
29
+ // "test/tests/DivisionsTests.js",
30
+ // "test/tests/DrawRangeTests.js",
31
+ // "test/tests/FingerprintCursorTests.js",
32
+ // "test/tests/FileViewTests.js",
33
+ // "test/tests/GLTFLoaderTests.js",
34
+ // "test/tests/GPUPickerTests.js",
35
+ // "test/tests/HideObjectTests.js",
36
+ // "test/tests/HighlightObjectEdgesPollyTests.js",
37
+ // "test/tests/HighlightObjectEdgesTests.js",
38
+ // "test/tests/HoverObjectTests.js",
39
+ // "test/tests/LayersTests.js",
40
+ // "test/tests/LookupTextureTests.js",
41
+ // "test/tests/LookupTextureIndexCounterTests.js",
42
+ // "test/tests/MeshPartSearcher*.js",
43
+ // "test/tests/NavigationMapTests.js",
44
+ // "test/tests/ObjectPreviewTests.js",
45
+ // "test/tests/ObjectsContainerTests.js",
46
+ // "test/tests/OverlayPollyTests.js",
47
+ // "test/tests/OverlayTests.js",
48
+ // "test/tests/PinsTests.js",
49
+ // "test/tests/PollyProjectLoaderTests.js",
50
+ // "test/tests/ProjectContentTests.js",
51
+ // "test/tests/RendererTests.js",
52
+ // "test/tests/RevisionCompareTests.js",
53
+ // "test/tests/RevisionsTests.js",
54
+ // "test/tests/SceneTests.js",
55
+ // "test/tests/SectionCutGeneralTests.js",
56
+ // "test/tests/SectionCutTests.js",
57
+ // "test/tests/SelectionModeTests.js",
58
+ // "test/tests/SelectionTests.js",
59
+ // "test/tests/SlideTests.js",
60
+ // "test/tests/ThreeContentLoaderTests.js",
61
+ // "test/tests/Viewport3dSunCalculationTests.js",
62
+ // "test/tests/Viewport3dTests.js",
63
+ // "test/tests/VisibilityTests.js",
64
+ // "test/tests/VisualObjectStoreTests.js",
65
+ // "test/tests/VisualObjectMeshDataTests.js",
66
+ // "test/tests/VisualObjectTests.js",
67
+ // "test/tests/IfcContentLoaderTests.js",
68
+
69
+ // "test/tests/commands/CommandAddToSetTests.js",
70
+ // "test/tests/commands/CommandColorizeTests.js",
71
+ // "test/tests/commands/CommandHoverTests.js",
72
+ // "test/tests/commands/CommandIsolateHideTests.js",
73
+ // "test/tests/commands/CommandSelectTests.js",
74
+
75
+ // "test/tests/connexis/ConnectionElementTests.js",
76
+
77
+ // "test/tests/parser/DisciplineNodeParserTests.js",
78
+ // "test/tests/parser/SharedGlbProcessorWorkerQueueTests.js",
79
+
80
+ // "test/tests/markups/AnnotationMaterialsTests.js",
81
+ // "test/tests/markups/AnnotationSettingsTests.js",
82
+ // "test/tests/markups/AnnotationTests.js",
83
+ // "test/tests/markups/DimensionAngleTests.js",
84
+ // "test/tests/markups/DimensionEdgeTests.js",
85
+ // "test/tests/markups/DimensionExtensionHelperLineTests.js",
86
+ // "test/tests/markups/DimensionAxesHelperLinesTests.js",
87
+ // "test/tests/markups/DimensionLineTests.js",
88
+ // "test/tests/markups/DimensionPerpendicularLineTests.js",
89
+ // "test/tests/markups/DimensionLocalPointTests.js",
90
+ // "test/tests/markups/DimensionCalibrationPointTests.js",
91
+ // "test/tests/markups/DimensionPointHelperTests.js",
92
+ // "test/tests/markups/DimensionSettingsTests.js",
93
+ // "test/tests/markups/DimensionSlopeTests.js",
94
+ // "test/tests/markups/DimensionTextCreatorTests.js",
95
+ // "test/tests/markups/LocalCoordSystemManagerTests.js",
96
+ // "test/tests/markups/MarkupBaseTests.js",
97
+ // "test/tests/markups/MarkupsContainerTests.js",
98
+ // "test/tests/markups/ObjectPropsTests.js",
99
+
100
+ // "test/tests/interactors/AnnotationInteractorTests*.js",
101
+ // "test/tests/interactors/LaserMeasurementInteractor*.js",
102
+ // "test/tests/interactors/LocalCoordSystemInteractorTests*.js",
103
+ // "test/tests/interactors/InteractorMouseMovePollyTests*.js",
104
+ // "test/tests/interactors/MarkupBaseInteractorTests*.js",
105
+ // "test/tests/interactors/MarkupNoInputInteractorTests*.js",
106
+ // "test/tests/interactors/MeasureAngleInteractorTests*.js",
107
+ // "test/tests/interactors/MeasureAutoEdgesInteractorTests*.js",
108
+ // "test/tests/interactors/MeasureEdgeInteractorTests*.js",
109
+ // "test/tests/interactors/MeasureFreeInteractorTests*.js",
110
+ // "test/tests/interactors/MeasurePerpendicularInteractorTests*.js",
111
+ // "test/tests/interactors/MeasureLocalPointInteractorTests*.js",
112
+ // "test/tests/interactors/MeasureCalibratedPointInteractorTests*.js",
113
+ // "test/tests/interactors/MoveModelInteractorTests*.js",
114
+ // "test/tests/interactors/ObjectPropsInteractorTests*.js",
115
+ // "test/tests/interactors/SectionPlaneInteractorTests*.js",
116
+ // "test/tests/interactors/SelectPointsForOverlayInteractorTests*.js",
117
+ // "test/tests/interactors/ViewportInteractorTests*.js",
118
+
119
+ // "test/tests/utils/AssertUtilsTests.js",
120
+ // "test/tests/utils/BoundingBoxTests.js",
121
+ // "test/tests/utils/CameraUtilsTests.js",
122
+ // "test/tests/utils/EventUtilsTests.js",
123
+ // "test/tests/utils/FrustumVisualizerTests.js",
124
+ // "test/tests/utils/GeometryUtilsTests.js",
125
+ // "test/tests/utils/GeometryUtilsViewportTests.js",
126
+ // "test/tests/utils/GlobalAxesVisualizerTests.js",
127
+ // "test/tests/utils/MathExtensionsTests.js",
128
+ // "test/tests/utils/MeasureUtilsTests.js",
129
+ // "test/tests/utils/ParserUtilsTests.js",
130
+ // "test/tests/utils/RandomGeneratorTests.js",
131
+ // "test/tests/utils/SphereVisualizerTests.js",
132
+ // "test/tests/utils/SunCalculationTests.js",
133
+ // "test/tests/utils/TouchModeHelperTests.js",
134
+ // "test/tests/utils/ValueValidatorTests.js",
135
+
136
+ // "test/tests/frameSelection/FrameSelectionTests.js",
137
+ // "test/tests/frameSelection/FrameSelectionEventCheckerTests.js",
138
+ // "test/tests/frameSelection/EdgesFrustumCheckerTests.js",
139
+ // "test/tests/frameSelection/SelectionBoxTests.js",
140
+ // "test/tests/frameSelection/SelectionHelperTests.js",
141
+ // "test/tests/frameSelection/VerticesFrustumCheckerTests.js",
142
+
143
+ // "test/tests/overlays/CropBoxTests.js",
144
+ // "test/tests/overlays/UndoRedoManagerTests.js",
145
+ // "test/tests/overlays/ViewportCropBoxTests.js"
146
+
147
+ // "test/tests/viewControls/fileViewControlTests.js",
148
+ // "test/tests/viewControls/navigationMapViewControlTests.js",
149
+ // "test/tests/viewControls/orbitViewControlTests.js",
150
+ // "test/tests/viewControls/ViewControlTests.js",
151
+
152
+ // "test/tests/viewers/ProjectViewerTests.js",
153
+ // "test/tests/viewers/ViewStateBuilderTests.js",
154
+
155
+ // "test/performance/CommandColorizeTests.js",
156
+ // "test/performance/DisciplineNodeStoreTests.js",
157
+ // "test/performance/ObjectsContainerTests.js",
158
+ ],
159
+ };
@@ -1,66 +1,66 @@
1
- // Karma configuration
2
- // http://karma-runner.github.io/4.0/config/configuration-file.html
3
-
4
- const karmaSharedConfig = require('./karma-shared-config');
5
-
6
- module.exports = function (config) {
7
- config.set({
8
-
9
- // Merge with shared configuration
10
- ...karmaSharedConfig,
11
-
12
- // list of files / patterns to load in the browser
13
- files: [
14
- {pattern: 'src/wasm/*.wasm', included: false, served: true, type: 'wasm'},
15
- {pattern: 'bin/*.js', included: false, served: true/*, type: 'wasm'*/},
16
- //'bin/**/*.js',
17
- 'src/**/*.js',
18
- 'modelviewer-data-driven-tests/tests**/*.js',
19
- ],
20
-
21
- // preprocess matching files before serving them to the browser
22
- // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
23
- preprocessors: {
24
- 'src/**/*.js': [ 'webpack', ],
25
- 'modelviewer-data-driven-tests/**/*.js': [ 'webpack', ],
26
- },
27
-
28
- // test results reporter to use
29
- // possible values: 'dots', 'progress'
30
- // available reporters: https://npmjs.org/browse/keyword/karma-reporter
31
- reporters: [
32
- 'progress'
33
- ],
34
-
35
- // client configuration
36
- client: {
37
- clearContext: false,
38
- // QUnit options for QUnit.config
39
- // https://api.qunitjs.com/config/QUnit.config
40
- qunit: {
41
- // Show list of all running tests in browser
42
- showUI: true,
43
- testTimeout: 6000000,
44
- // requireExpects: true, // The expect() method is optional by default
45
- fixture: null, // Don't clear the qunit-fixture div after each test - we try to reuse the webgl context
46
- }
47
- },
48
-
49
- // level of logging
50
- // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
51
- logLevel: config.LOG_INFO,
52
- //logLevel: config.LOG_DEBUG,
53
-
54
- // start these browsers
55
- // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
56
- // browsers: ['Chrome'],
57
- browsers: [
58
- //'Chrome',
59
- //'ChromeHeadless', //It is currently not possible to run the tests in headless mode due to random stalls
60
- // 'Firefox', // Use only one browser for test run to get correct code coverage output
61
- 'Firefox', // this will split tests between browsers
62
- //'FirefoxHeadless',
63
- ],
64
-
65
- })
66
- }
1
+ // Karma configuration
2
+ // http://karma-runner.github.io/4.0/config/configuration-file.html
3
+
4
+ const karmaSharedConfig = require('./karma-shared-config');
5
+
6
+ module.exports = function (config) {
7
+ config.set({
8
+
9
+ // Merge with shared configuration
10
+ ...karmaSharedConfig,
11
+
12
+ // list of files / patterns to load in the browser
13
+ files: [
14
+ {pattern: 'src/wasm/*.wasm', included: false, served: true, type: 'wasm'},
15
+ {pattern: 'bin/*.js', included: false, served: true/*, type: 'wasm'*/},
16
+ //'bin/**/*.js',
17
+ 'src/**/*.js',
18
+ 'modelviewer-data-driven-tests/tests**/*.js',
19
+ ],
20
+
21
+ // preprocess matching files before serving them to the browser
22
+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
23
+ preprocessors: {
24
+ 'src/**/*.js': [ 'webpack', ],
25
+ 'modelviewer-data-driven-tests/**/*.js': [ 'webpack', ],
26
+ },
27
+
28
+ // test results reporter to use
29
+ // possible values: 'dots', 'progress'
30
+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
31
+ reporters: [
32
+ 'progress'
33
+ ],
34
+
35
+ // client configuration
36
+ client: {
37
+ clearContext: false,
38
+ // QUnit options for QUnit.config
39
+ // https://api.qunitjs.com/config/QUnit.config
40
+ qunit: {
41
+ // Show list of all running tests in browser
42
+ showUI: true,
43
+ testTimeout: 6000000,
44
+ // requireExpects: true, // The expect() method is optional by default
45
+ fixture: null, // Don't clear the qunit-fixture div after each test - we try to reuse the webgl context
46
+ }
47
+ },
48
+
49
+ // level of logging
50
+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
51
+ logLevel: config.LOG_INFO,
52
+ //logLevel: config.LOG_DEBUG,
53
+
54
+ // start these browsers
55
+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
56
+ // browsers: ['Chrome'],
57
+ browsers: [
58
+ //'Chrome',
59
+ //'ChromeHeadless', //It is currently not possible to run the tests in headless mode due to random stalls
60
+ // 'Firefox', // Use only one browser for test run to get correct code coverage output
61
+ 'Firefox', // this will split tests between browsers
62
+ //'FirefoxHeadless',
63
+ ],
64
+
65
+ })
66
+ }