Commit Graph

66 Commits

Author SHA1 Message Date
Nathan Adams 3918d4b036 web: Add test to ensure redefining an EI method works 2024-08-15 12:19:15 +02:00
Nathan Adams ccbad52a1e web: Allow overriding of methods via ExternalInterface - fixes #13974 2024-08-06 16:29:10 +02:00
Nathan Adams cd8125fbf5 web: Extract interfaces for RufflePlayer 2024-08-05 04:10:43 +02:00
Nathan Adams 35fb095aa2 web: Add --browserstack for testing in the cloud 2024-07-14 18:04:14 +02:00
Nathan Adams e749a6436e web: Remove broken cors test, it hasn't run for years + technically fails if the whole thing is skipped, apparently 2024-07-14 18:04:14 +02:00
Nathan Adams 160460ef51 web: Replace switchToParentFrame with switchToFrame(null) for ios compatibility 2024-07-14 18:04:14 +02:00
Nathan Adams d037e5fa2a web: Add Edge testing, disable autoplay as edge autoplays and that messes up test order of operations slightly 2024-07-14 18:04:14 +02:00
Nathan Adams f5dc3c8975 web: Enable tseslint.configs.strict (it caught a bug!) 2024-07-08 11:34:35 +02:00
Nathan Adams 53d56573c1 web: Migrate to 'flat config' style for eslint 2024-07-08 11:34:35 +02:00
Wumbo 5addb6e349 web: Fix keyboard input test (hopefully) 2024-06-30 13:23:16 +02:00
Nathan Adams 575481f9cc web: Don't use direct eval, use indirect new Function(...) instead 2024-06-23 00:26:55 +02:00
Nathan Adams f9f7ece8e3 web: Support ExternalInterface.call("function(){....}") 2024-06-07 16:58:57 +02:00
Nathan Adams 30aad921f7 web: Add ExternalInterface tests (some skipped for not working) 2024-06-07 16:58:57 +02:00
Nathan Adams 1712cd61e5 web: Wait until the player is fully ready, for tests 2024-05-29 00:03:47 +02:00
Nathan Adams dda7411589 web: Specify polyfill/ path specifically, so it can be other paths later 2024-05-29 00:03:47 +02:00
Nathan Adams de36fc2d82 web: Clean up utils.ts optional args a bit 2024-05-29 00:03:47 +02:00
Nathan Adams c7566d5a4a web: Convert selfhosted tests to typescript 2024-05-29 00:03:47 +02:00
TÖRÖK Attila bffa2e8efd web: Port the selfhosted package to modules 2024-04-08 23:26:04 +02:00
Nathan Adams 54fae4fd5b web: Fix enter key's keyCode, + test 2023-11-13 21:08:38 +01:00
Nathan Adams 0f579ced38 web: Add getTraceOutput util 2023-11-13 21:08:38 +01:00
Nathan Adams 88d5177653 web: Await the player loading in jsApiBefore 2023-11-13 21:08:38 +01:00
Nathan Adams 7c5c4576cc web: Actually respect the swf url in jsApiBefore 2023-11-13 21:08:38 +01:00
Adrian Wielgosik c5704ed819 Revert "web: As appropriate use embed height mentioned in Mozilla bug 810082 c65"
This reverts commit b6d0e2ecce.
2023-10-05 00:50:22 +02:00
Daniel Jacobs b6d0e2ecce web: As appropriate use embed height mentioned in Mozilla bug 810082 c65 2023-10-03 20:14:42 +02:00
Nathan Adams 3447b8bfdd chore: npm run format 2023-07-20 14:00:04 +02:00
relrelb 17e0eb112b web: Enforce ESLint's `camelcase` rule 2023-05-31 08:22:15 +03:00
Nathan Adams fe49f7b872 web: Temporarily disable cors test as it's too slow for runners 2023-01-09 20:14:05 +01:00
Daniel Jacobs 992e34764e web: Fix metadata test by adding uncompressedLength 2022-08-03 09:17:24 +03:00
Daniel Jacobs 7cae84b354 tests: Add YouTube Flash embed/object tests 2022-04-10 19:25:26 -07:00
Toad06 badb91c1db web: Add `object_double_object_classid` test 2022-04-03 10:15:19 -07:00
Toad06 fdc87267cd web: Update `object_double_object` test 2022-04-03 10:15:19 -07:00
relrelb 3f8f117fd3 web: Convert .eslintrc files from JSON to YAML
YAML is shorter, more modern, readable, and flexible than JSON.
In other words, YAML >>> JSON.

Auto-converted using [`yq`](https://github.com/kislyuk/yq).
2022-01-12 20:10:00 -08:00
Toad06 5854d4a23f tests: Don't polyfill files meant to be used as fallback content 2021-10-17 11:44:15 -07:00
Chris Midgley 535b614ee4
dev: remove wdio/sync (#5105)
* dev: remove wdio/sync

* chore: fix eslint errors
2021-08-21 16:34:08 +02:00
relrelb 803da71e9c web: Remove `RufflePlayer.playButtonClicked`
Replace its few usages with `play` which is part of the public API.
Also made little cleanups to the selfhosted test utils along the way.
2021-07-12 23:21:14 +03:00
Mike Welsh 22948789b8 web: Add MovieData.isActionScript3 and backgroundColor 2021-05-23 23:02:38 -07:00
relrelb f8a8b82c04 web: Cleanup ESLint configuration
* Cleanup .eslintrc.json files.
* Avoid unnecessary eslint-* directives.
2021-04-30 18:16:55 -07:00
Mike Welsh 10b014bf18 tests: Move utils.js out of polyfill folder 2021-04-23 16:58:24 -07:00
Mike Welsh 0c5951da52 tests: Add tests for Ruffle JS API
Add some basic scaffolding for testing the JS API. Adds a test for
`RufflePlayer.load` and `RufflePlayer.metadata`.
2021-04-23 16:58:24 -07:00
Toad06 dab96ba01b tests: Don't get fooled by GET parameters that look like a file extension 2020-12-13 15:38:18 -08:00
Toad06 5d55a60924
web: Avoid double polyfilling object-inside-object
* web: Avoid double polyfilling object-inside-object
* tests: Add polyfill test for object inside object
2020-12-10 13:36:40 -08:00
Toad06 83fcd7ba40 tests: Checks that iframe correctly fires its onload event 2020-12-09 17:01:20 -08:00
Toad06 457d707ec2 tests: `polyfills` option is now a boolean, defaulting to true 2020-12-07 15:22:51 -08:00
Toad06 49d4197dbf tests: Don't polyfill an object tag if it already contains a ruffle-embed 2020-11-28 14:43:39 -08:00
Mike Welsh e84c432b00 tests: Add SWFObject.js polyfill test 2020-11-27 21:11:05 -08:00
Mike Welsh 7898776e0c tests: Add polyfill tests for missing movie 2020-11-26 18:19:57 -08:00
Mike Welsh 5d99dce16c tests: Add polyfill test for object+embed with only clsid 2020-11-26 18:19:57 -08:00
Mike Welsh b128c876ea tests: Alter embed-inside-object polyfill tests to expect ruffle-embed 2020-11-26 18:19:57 -08:00
Nathan Adams d21cb8473b web: Rename RufflePlayer.trace_observer to RufflePlayer.traceObserver 2020-11-24 16:36:33 -08:00
Nathan Adams 37ef9c15b4 web: Rename RufflePlayer.play_button_clicked to
RufflePlayer.playButtonClicked
2020-11-24 16:36:33 -08:00