-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Possible fix for #5032: Don't hang forever on asset loading error #5033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
b21a413
a9c2834
53ff05a
a3dd350
d258b19
d224351
7f3ba15
c4b9f12
0f2e977
2209a49
84a0d63
c8a3806
22605bf
37aca83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title>glTF Model</title> | ||
| <meta name="description" content="glTF Model - A-Frame"> | ||
| <script src="../../../dist/aframe-master.js"></script> | ||
| </head> | ||
| <body> | ||
| <a-scene stats> | ||
| <a-assets> | ||
| <a-asset-item id="cityModel" src="invalid-file-name"></a-asset-item> | ||
| </a-assets> | ||
|
|
||
| <a-entity gltf-model="#cityModel"></a-entity> | ||
| </a-scene> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,6 +162,10 @@ suite('a-scene (without renderer)', function () { | |
|
|
||
| // mock canvas | ||
| sceneEl.canvas = { | ||
| classList: { | ||
| add: function () {}, | ||
| remove: function () {} | ||
| }, | ||
|
||
| addEventListener: function () {}, | ||
| removeEventListener: function () {}, | ||
| requestFullscreen: function () {} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's misleading the test examples are not actually tests but simple examples that test very specific features. For this we should probably write a unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK - I will have a go at a Unit Test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit Tests now added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave this in as well, or do you prefer me to delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this so
examples/testis consistent. It serves the purpose to test visually specific features. Your unit test handles the failure case.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK - removed it.