From 130e527af382b30548f72f13aefa547447e60044 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sat, 27 Apr 2024 14:33:29 +0200 Subject: [PATCH] Remove draco tests. --- package.json | 3 +-- test/tests/importergltf_test.js | 3 +-- test/utils/globals.js | 12 +----------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index cc9b308..50dbf73 100644 --- a/package.json +++ b/package.json @@ -70,8 +70,7 @@ "rollup": "^4.0.2", "run-python3": "^0.0.5", "svgo": "^3.0.2", - "typescript": "^5.0.4", - "draco3d": "1.5.7" + "typescript": "^5.0.4" }, "dependencies": { "@simonwep/pickr": "1.9.0", diff --git a/test/tests/importergltf_test.js b/test/tests/importergltf_test.js index 8892630..2aace45 100644 --- a/test/tests/importergltf_test.js +++ b/test/tests/importergltf_test.js @@ -66,8 +66,7 @@ describe ('Gltf Importer', function () { let testFileList = [ ['Box/glTF', 'Box.gltf'], ['Box/glTF-Embedded', 'Box.gltf'], - ['Box/glTF-Binary', 'Box.glb'], - ['Box/glTF-Draco', 'Box.gltf'] + ['Box/glTF-Binary', 'Box.glb'] ]; let processed = 0; for (let i = 0; i < testFileList.length; i++) { diff --git a/test/utils/globals.js b/test/utils/globals.js index 79b3e19..83ab7c8 100644 --- a/test/utils/globals.js +++ b/test/utils/globals.js @@ -81,17 +81,7 @@ export function SetGlobals () head : { appendChild : function (element) { if (element.type === 'text/javascript') { - console.log (element.src); - if (element.src.indexOf ('draco_decoder_nodejs.min.js') !== -1) { - import ('draco3d').then (mod => { - global.DracoDecoderModule = function () { - return mod.createDecoderModule (); - }; - element.onload (); - }); - } else { - element.onerror (); - } + element.onerror (); } } },