Skip to content

Commit

Permalink
Remove draco tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Apr 27, 2024
1 parent 8268cac commit 130e527
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions test/tests/importergltf_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
12 changes: 1 addition & 11 deletions test/utils/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
}
}
},
Expand Down

0 comments on commit 130e527

Please sign in to comment.