Ver código fonte

tests changes

Raanan Weber 7 anos atrás
pai
commit
a16e0d47cf

+ 3 - 2
Viewer/tests/unit/src/index.ts

@@ -1,5 +1,6 @@
 import { main } from '../../commons/boot';
-if (window && !window['validation'])
+if (window && !window['validation']) {
     main();
-export * from './Viewer/viewer';
+}
+export * from './viewer/viewer';
 export * from '../../../src'

+ 1 - 2
Viewer/tests/validation/config.json

@@ -78,8 +78,7 @@
                 },
                 "model": {
                     "position": {
-                        "x": 0.2,
-                        "y": 0
+                        "x": 0.2
                     },
                     "rotation": {
                         "y": 0.9

+ 2 - 1
Viewer/tests/validation/validation.js

@@ -206,6 +206,7 @@ function runTest(index, done) {
     //envirnonment directory
     configuration.lab = configuration.lab || {};
     configuration.lab.environmentAssetsRootURL = "/dist/assets/environment/";
+    configuration.lab.environmentMap = false;
 
     //model config
     configuration.model = configuration.model || {};
@@ -221,7 +222,7 @@ function runTest(index, done) {
     currentViewer.onInitDoneObservable.add(() => {
 
         var currentFrame = 0;
-        var waitForFrame = test.waitForFrame || 1;
+        var waitForFrame = test.waitForFrame || 4;
 
         if (test.model) {
             currentViewer.initModel(test.model);