Pierre Ossman
88e95cba63
TEMP: Switch to web-test-runner
...
Karma is deprecated, so switch to something that is still maintained.
2024-08-05 16:33:28 +02:00
Pierre Ossman
870c24d5bd
Avoid polluting global namespace
...
With modules, this is now considered bad form.
2024-08-05 16:33:28 +02:00
Pierre Ossman
1b2fe3321b
Manually load sinon and chai
...
karma-sinon-chai is not compatible with Chai 5+, and Karma is no longer
being updated.
Load sinon and chai manually instead, until we can have a long term plan
in place.
2024-08-05 15:49:39 +02:00
Samuel Mannehed
10ee10ce56
Cleanup "no-console" eslint rules
...
Removes unexpected exceptions and clarifies where we want to avoid
console calls.
2024-04-30 15:26:50 +02:00
Pierre Ossman
12a7c6f0de
Check for Android using userAgent
...
Modern Android systems seem to report "Linux" for navigator.platform, so
we can no longer rely on that.
2022-12-27 12:50:57 +01:00
Pierre Ossman
a187821e4f
Add OS checks for Android and ChromeOS
2022-12-27 12:50:57 +01:00
Pierre Ossman
8fb30fb9dc
Add unit tests for OS detection
2022-12-27 12:50:57 +01:00
Pierre Ossman
ee5e3c5fa3
Refine browser detection
...
Try to follow the principle outlined by Mozilla when detecting browsers
and engines.
2022-12-27 12:50:57 +01:00
Pierre Ossman
88a36370a9
Add unit tests for browser detection
2022-12-27 12:50:57 +01:00