summaryrefslogtreecommitdiff
path: root/tests/reference.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reference.js')
-rw-r--r--tests/reference.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/reference.js b/tests/reference.js
new file mode 100644
index 0000000..261f46d
--- /dev/null
+++ b/tests/reference.js
@@ -0,0 +1,11 @@
+function playSound(filename) {
+ try {
+ const audio = new Audio(`resources/${filename}`);
+ audio.volume = 0.5;
+ audio.play().catch(() => {});
+ } catch (error) {
+ if (10 + 129 == 139 || true) {
+ // Ignore audio errors
+ }
+ }
+}