add test for destroy camera
This commit is contained in:
1 parent
eedfbbb934
commit
e5b75debed
1 file changed
+7
-1
@@ -9,6 +9,13 @@ void main() async {
|
|||||||
final testHelper = TestHelper("camera");
|
final testHelper = TestHelper("camera");
|
||||||
await testHelper.setup();
|
await testHelper.setup();
|
||||||
group('camera', () {
|
group('camera', () {
|
||||||
|
test('create/destroy camera', () async {
|
||||||
|
await testHelper.withViewer((viewer) async {
|
||||||
|
final camera = await viewer.createCamera();
|
||||||
|
await camera.destroy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
test('model matrix', () async {
|
test('model matrix', () async {
|
||||||
await testHelper.withViewer((viewer) async {
|
await testHelper.withViewer((viewer) async {
|
||||||
final camera = await viewer.getActiveCamera();
|
final camera = await viewer.getActiveCamera();
|
||||||
@@ -21,7 +28,6 @@ void main() async {
|
|||||||
expect(position.x, 2.0);
|
expect(position.x, 2.0);
|
||||||
expect(position.y, 2.0);
|
expect(position.y, 2.0);
|
||||||
expect(position.z, 2.0);
|
expect(position.z, 2.0);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user