-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Usage of Worker class break unit tests #36
Comments
Having same problem on universal_html: ^2.0.7: import "package:universal_html/html.dart" as html; Building Windows application... |
I'm going to just post my complete function where I use your library I wrote other day so it hopefully helps you: open_file3(BuildContext context) async {
} For calling it on WEB vs mobile/desktop I just use: with GetX framework, hope this helps. |
For information, I tried to isolate my Worker usage in a specific file and tried using a deferred loading only on web but it still doesn't work. Found a workaround:
|
Hi! Thanks for the issue report! I fixed this in version 2.0.8. |
Works perfectly, thank-you. |
Hi,
I am currently using version 1.2.4 of universal_html.
I tried using the Worker class in order to execute a js script to upload a large file to an external server. It works fine in practice but it broke my unit test. I guess since the tests doesn't execute in the same environment as a web browser, the Worker class isn't defined. My tests can't compile and I get this kind of errors:
Should I upgrade universal_html to 2.X (hence my flutter version which is still in a pre release version)?
Thanks
The text was updated successfully, but these errors were encountered: