Skip to content

Commit a047da9

Browse files
committed
Try non-qml test 4
1 parent 10d58bc commit a047da9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/compare.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const tested = describe('Screenshots', () => {
3535
// const texture = await texturePromise;
3636
// assert.ok(texture);
3737

38-
await new Promise((res) => setTimeout(res, 100));
39-
renderer.render(scene, camera);
38+
// await new Promise((res) => setTimeout(res, 100));
39+
// renderer.render(scene, camera);
4040

4141
// assert.ok(await screenshot('ui', doc, Image));
4242
});

test/init.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
const three = require('three');
22
const { init, addThreeHelpers } = require('3d-core-raub');
3-
// const { init: initQml } = require('..');
3+
const { init: initQml } = require('..');
44

55
const initForTest = () => {
66
const node3d = init({
77
isGles3: true, isWebGL2: true,
88
width: 200, height: 200,
99
});
1010

11-
// const { doc, gl } = node3d;
12-
const { gl } = node3d;
11+
const { doc, gl } = node3d;
12+
// const { gl } = node3d;
1313

1414
addThreeHelpers(three, gl);
1515

16-
// const inited = initQml({ doc, gl, cwd: __dirname, three });
17-
// return { ...node3d, ...inited };
18-
return node3d;
16+
const inited = initQml({ doc, gl, cwd: __dirname, three });
17+
return { ...node3d, ...inited };
18+
// return node3d;
1919
};
2020

2121
module.exports = initForTest;

0 commit comments

Comments
 (0)