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
relrelb
0fa24b4ce0
web: Migrate file-loader to asset modules
...
file-loader is deprecated and asset modules are the recommended
alternative.
2021-04-21 19:03:19 -07:00
relrelb
201c4f5db0
web: Use relative paths for webpack entries
...
Only output.path needs to be absolute.
2021-04-21 19:03:19 -07:00
relrelb
690b51f15b
web: Shorten CopyWebpackPlugin to CopyPlugin
2021-03-05 23:07:55 -08:00
Mike Welsh
f6f7222221
web: Remove clean-webpack-plugin dependency
2021-03-03 06:44:45 -08:00
relrelb
8b7b5caa95
web: Upgrade all wdio packages
2021-02-19 16:28:09 -08:00
relrelb
1c21856980
web: General refactoring
...
* web: Don't load a random SWF Instead, show a prompt to select or drag an SWF.
* web: Refactor webpack.config.js
* demo: Refactor index.js
* demo: Cleanup CSS
2021-02-16 20:39:46 -08:00
dependabot-preview[bot]
cea703ad03
build(deps-dev): bump @wdio/cli from 6.12.1 to 7.0.3 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.12.1 to 7.0.3.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.12.1...v7.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-15 09:46:55 -08:00
Mike Welsh
c2b768c453
web: Fallback to instantiate with improper MIME type
...
Use --target web in wasm-bindgen and file-loader for WASM files,
allowing wasm-bindgen's built-in fallback from
WebAssembly.instantiateStreaming to instantiate.
file-loader spits out the WASM file directly in the output folder,
and imports will resolve to the URL, so that we can load the file
directly, avoiding webpack's built-in wasm loaders.
This allows Ruffle to function on web servers even if they serve
WASM files with the incorrect MIME type, fixing one of our biggest
support requests (#400 , #1458 ). There is some performance impact
on loading with the fallback, but this is preferable to not
working at all.
2021-01-16 15:30:11 -08: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
3ca08c881f
docs: Update `streamSwfUrl` to `load`
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
600d267bf3
web: We no longer need git dependency in webpack builds - fixes #1517
2020-11-24 16:36:33 -08:00
Nathan Adams
f5667fc987
web: Fix up documentation to reflect the new state of core vs selfhosted (basically npm vs manual)
2020-11-24 16:36:33 -08:00
Nathan Adams
41bf30efc8
web: Rename public_path to publicPath
2020-11-24 16:36:33 -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
Nathan Adams
4f297948d0
web: Rename RufflePlayer.stream_swf_url to RufflePlayer.streamSwfUrl
2020-11-24 16:36:33 -08:00
Nathan Adams
8abb8df299
web: core no longer uses webpack, but selfhosted still does
2020-11-24 16:36:33 -08:00
Nathan Adams
5ff7168fe9
web: Switched core package from javascript to typescript
2020-11-24 16:36:33 -08:00
Nathan Adams
dab79107b2
web: Include git details into the build
2020-11-04 16:46:14 -08:00
Mike Welsh
cd96df7ee7
web: Disable automatic publicPath in webpack configs
2020-10-21 15:19:36 -07:00
dependabot-preview[bot]
a965d2f6ba
build(deps-dev): bump webpack-cli from 3.3.12 to 4.0.0 in /web
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 3.3.12 to 4.0.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@4.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-17 15:33:13 -07:00
Mike Welsh
990052db77
chore: Bump to webpack 5
2020-10-17 14:07:28 -07:00
Nathan Adams
b7b67cacb2
web: Merge flashvars with swf url query vars
2020-10-12 15:28:16 -07:00
Nathan Adams
30fffa8022
test: Add tests for flashvars on web
2020-10-12 15:28:16 -07:00
Toad06
904b5c1463
web: Add missing file for the case-insensitive test
2020-10-09 12:25:37 -07:00
Toad06
6589710a61
web: Add tests to check swf extension
2020-10-09 12:25:37 -07:00
JustinCB
d4fa329c54
web(test): Add test for fixed issue
2020-10-08 23:35:33 -07:00
Nathan Adams
085c61b94f
tests: In browser based tests, actually press play and check that the movie spits out some text
2020-09-13 13:51:39 -07:00
Toad06
048bfaf53d
tests: Add polyfill samples from #457
2020-09-07 13:16:44 -07:00
Nathan Adams
db86cdab79
chore: Workaround for chrome not being found on windows tests
2020-09-04 11:31:39 -07:00
JustinCB
808b6588ab
web(test): Add test for spl
2020-08-20 05:30:28 -07:00
Justin-CB
0cdad7520f
web(tests): Enable pdf test, which works now
2020-08-18 11:25:15 -07:00
JustinCB
4f755eafff
web: Add tests for new behaviour
2020-07-14 09:12:36 -07:00
Nathan Adams
c07dbbb748
web: Remove & disable package-lock for subpackages, only root should have it
2020-06-13 12:35:14 -07:00
Nathan Adams
d7092d0f30
web: Hoist common dev dependencies up to the top (except CLI) and hopefully improve how we bootstrap
2020-06-13 12:35:14 -07:00
dependabot-preview[bot]
94ad4a82c4
build(deps-dev): bump mocha from 7.2.0 to 8.0.1 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 7.2.0 to 8.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v7.2.0...v8.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-11 10:04:46 -07:00
Nathan Adams
9376003459
tests: Increase polyfill timeout to 30 seconds. Fixes #657
2020-06-09 16:47:34 -07:00
dependabot-preview[bot]
ebe1f930f3
build(deps-dev): bump @wdio/local-runner from 6.1.16 to 6.1.17 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.1.16 to 6.1.17.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.16...v6.1.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 11:43:45 -07:00
dependabot-preview[bot]
469cea6804
build(deps-dev): bump @wdio/mocha-framework in /web
...
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio ) from 6.1.14 to 6.1.17.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.14...v6.1.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 10:34:33 -07:00
dependabot-preview[bot]
413d7b83d8
build(deps-dev): bump @wdio/cli from 6.1.16 to 6.1.17 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.1.16 to 6.1.17.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.16...v6.1.17 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 10:33:22 -07:00
dependabot-preview[bot]
78e475c89d
build(deps-dev): bump @wdio/local-runner from 6.1.14 to 6.1.16 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.1.14 to 6.1.16.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.14...v6.1.16 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 10:24:56 -07:00
dependabot-preview[bot]
fb5b72ecf1
build(deps-dev): bump @wdio/cli from 6.1.15 to 6.1.16 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.1.15 to 6.1.16.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.15...v6.1.16 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 09:43:51 -07:00
dependabot-preview[bot]
55b229f439
build(deps-dev): bump @wdio/cli from 6.1.14 to 6.1.15 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.1.14 to 6.1.15.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.14...v6.1.15 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 16:08:30 +00:00
dependabot-preview[bot]
f59c8bcfa0
build(deps-dev): bump @wdio/cli from 6.1.12 to 6.1.14 in /web
...
Bumps [@wdio/cli](https://github.com/webdriverio/webdriverio ) from 6.1.12 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.12...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 17:04:25 -07:00
dependabot-preview[bot]
a3b66d095f
build(deps-dev): bump @wdio/static-server-service in /web
...
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio ) from 6.0.16 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.0.16...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 17:04:11 -07:00
dependabot-preview[bot]
83147b271b
build(deps-dev): bump @wdio/local-runner from 6.1.12 to 6.1.14 in /web
...
Bumps [@wdio/local-runner](https://github.com/webdriverio/webdriverio ) from 6.1.12 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.12...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 00:02:30 +00:00
dependabot-preview[bot]
ee036a1b3a
build(deps-dev): bump @wdio/mocha-framework from 6.1.8 to 6.1.14 in /web
...
Bumps [@wdio/mocha-framework](https://github.com/webdriverio/webdriverio ) from 6.1.8 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.8...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 00:01:55 +00:00
dependabot-preview[bot]
f2543ea355
build(deps-dev): bump @wdio/spec-reporter from 6.1.12 to 6.1.14 in /web
...
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio ) from 6.1.12 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.12...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 00:01:13 +00:00
dependabot-preview[bot]
499aa9ac0a
build(deps-dev): bump @wdio/sync from 6.1.8 to 6.1.14 in /web
...
Bumps [@wdio/sync](https://github.com/webdriverio/webdriverio ) from 6.1.8 to 6.1.14.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.1.8...v6.1.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 00:00:06 +00:00
Nathan Adams
e466060a50
chore: Copy LICENSE* to relevant places where package managers complain if they don't exist, and make sure they're included in distributions
2020-05-27 00:11:02 -07:00
Nathan Adams
77b0216579
chore: Update package.infos in web
2020-05-27 00:11:02 -07:00
Nathan Adams
75759d9b3b
chore: Document web with readmes
2020-05-27 00:11:02 -07:00
Nathan Adams
df6764a69c
chore: Add license metadata to all packages & crates
2020-05-27 00:11:02 -07:00
JustinCB
e4f7c950bb
chore: Enable fixed tests
2020-05-26 23:56:36 -07:00
Nathan Adams
d846ed943b
web: Split frame/iframe polyfill tests into provided vs injected, as we see issues with one or the other
2020-05-24 08:57:16 -07:00
Nathan Adams
8a32f0d053
web: Add polyfill test for <iframe>s
2020-05-24 08:57:16 -07:00
Nathan Adams
a7abdba49c
web: Add test for classic <frame>s
2020-05-24 08:57:16 -07:00
Nathan Adams
a0bfe72b19
web: Add polyfill tests
2020-05-24 08:57:16 -07:00
Nathan Adams
82c1930c0f
web: web doesn't need install before bootstrap now
2020-05-19 11:42:57 +02:00
Nathan Adams
11f68b90f9
web: Switch to using commonjs style require/exports
...
It looks like things still don't play nice with modules yet :(
2020-05-19 11:42:55 +02:00
Nathan Adams
55c9672921
web: Simplified export interface of ruffle-core
2020-05-19 11:42:54 +02:00
Nathan Adams
0ab3c9f69b
web: Made demo use ruffle-selfhosted
2020-05-19 11:42:54 +02:00
Nathan Adams
e9a394ac27
web: Only core will build ruffle, the other packages will use that
2020-05-19 11:42:54 +02:00
Nathan Adams
7b8a4ffed1
web: Switch to using lerna for package management
2020-05-19 11:42:53 +02:00
Nathan Adams
b6523324ed
web: Move each web package into a packages/ directory
2020-05-19 11:42:53 +02:00