Aaron Hill
184734267d
tests: Deny unknown fields when deserializing test.toml files
...
This will catch typos and misplaced options when modifying tests.
2023-01-28 16:27:43 -06:00
Daniel Jacobs
b00628f45d
avm2: Add warning to MouseEvent.updateAfterEvent
2023-01-28 14:31:52 -06:00
Daniel Jacobs
65a0aaeb7b
avm2: Stub MouseEvent.updateAfterEvent
...
Basically a direct copy of https://github.com/ruffle-rs/ruffle/pull/7653
2023-01-28 14:31:52 -06:00
Nathan Adams
b14831417a
tests: Added avm2 click_test test from #9287 , ignored as it fails
2023-01-28 13:13:37 -07:00
Nathan Adams
666a55e503
tests: Added avm1 click_test test from #9287 , ignored as it fails
2023-01-28 13:13:37 -07:00
Aaron Hill
daeb132e53
tests: Handle trailing newlines more consistently
...
Previously, we would strip trailing newlines from the contents
of 'output.txt' files, and skip adding a trailing newline after
the final recorded `trace` call.
To reduce the amount of processing we do of expected/ruffle output,
and to make fpcompare tests easier, I've removed the special handling
of newlines. When recording `trace` calls, we now build up a single
large `String`, with a newline after every `trace` message. When
reading in an 'output.txt' file, we do not strip any newlines.
This required adding trailings newlines to lots of 'output.txt' files,
to match the behavior of Ruffle and Flash (the last 'trace' message
ends with a newline, just like every other 'trace' message).
2023-01-28 13:59:00 -06:00
p0008874
9bdc02e3a7
Update main.rs
2023-01-28 12:43:21 -07:00
p0008874
520248bc1d
Add detail on dont_warn_on_unsupported_content
2023-01-28 12:43:21 -07:00
Nathan Adams
48c9cdd5ad
tests: Ported visual tests from ruffle-rs/visual-tests repo
2023-01-28 12:15:59 -07:00
Nathan Adams
65c91fba87
ci: Enable image tests on mac
2023-01-28 12:15:59 -07:00
Nathan Adams
a6c6ae13fe
tests: Adjust tolerance of existing image tests
2023-01-28 12:15:59 -07:00
Nathan Adams
051927775c
tests: Clippy lint
2023-01-28 12:15:59 -07:00
Nathan Adams
9c4190b20b
tests: Readd suffix to actual/difference files
2023-01-28 12:15:59 -07:00
Nathan Adams
67ec70d960
tests: Set default log filter to warn for wgpu
2023-01-28 12:15:59 -07:00
Nathan Adams
cdb2c5fe04
tests: Allow image tolerance & max_outliers on image comparison tests. Changed all existing image tests to use 1 sample count since this changes them all anyway
2023-01-28 12:15:59 -07:00
Nathan Adams
d70d9067ec
tests: Fix clippy lints
2023-01-28 12:15:59 -07:00
Nathan Adams
4ef88eaaa0
tests: Fix imgchecks feature compiling
2023-01-28 12:15:59 -07:00
Nathan Adams
c73aa5b9d5
tests: Add sample_count to render options
2023-01-28 12:15:59 -07:00
Nathan Adams
cbe17c4455
tests: Filter early to avoid creating test info (and thus wgpu) for tests that won't run
2023-01-28 12:15:59 -07:00
Nathan Adams
9b43836d1d
tests: Allow executing of with_renderer tests always, but image comparison is still gated
2023-01-28 12:15:59 -07:00
Nathan Adams
836468b6dd
tests: Add player_options.with_renderer option, automatically set when image = true
2023-01-28 12:15:59 -07:00
Nathan Adams
6acf6009ef
tests: Made PlayerOptions non optional (just empty default), and it works with a PlayerBuilder instead of a Player
2023-01-28 12:15:59 -07:00
Nathan Adams
e614f788af
tests: Refactor code so all testing goes through Test::test(), allows for approximations with custom hooks
2023-01-28 12:15:59 -07:00
Nathan Adams
8b02045c6b
tests: Readd custom assert_eq
2023-01-28 12:15:59 -07:00
Nathan Adams
a340318486
tests: Refactor runner methods to take in &Test and not direct values
2023-01-28 12:15:59 -07:00
Nathan Adams
56bc2b5051
tests: Added Test::should_run()
2023-01-28 12:15:59 -07:00
Nathan Adams
dda8debadc
tests: Move shared object tests to their own file
2023-01-28 12:15:59 -07:00
Nathan Adams
792d68d370
tests: Move TestLogBackend to runner
2023-01-28 12:15:59 -07:00
Nathan Adams
99da686822
tests: Move external interface tests to their own file
2023-01-28 12:15:59 -07:00
Nathan Adams
ccc7c0a424
tests: Move ExternalInterfaceTestProvider to its own mod
2023-01-28 12:15:59 -07:00
Nathan Adams
c5ab440083
tests: Move run_test(test) to Test::run()
2023-01-28 12:15:59 -07:00
Nathan Adams
6384034e47
tests: Move test_swf_with_hooks to util/runner
2023-01-28 12:15:59 -07:00
Nathan Adams
ce8cb9501b
tests: Move test_swf_approx to util/runner
2023-01-28 12:15:59 -07:00
Nathan Adams
818897b74e
tests: Move run_swf to util/runner
2023-01-28 12:15:59 -07:00
Nathan Adams
4418431bfe
tests: Move assert_eq to utils
2023-01-28 12:15:59 -07:00
Nathan Adams
a741f373b4
tests: Take in a &Path for various paths
2023-01-28 12:15:59 -07:00
Nathan Adams
83af3e6b4e
tests: Extract Test struct that contains all the info for a test
2023-01-28 12:15:59 -07:00
Nathan Adams
ff8506d351
tests: Extract TestOptions::read() for parsing a file
2023-01-28 12:15:59 -07:00
Nathan Adams
316df5b415
tests: Extract TestOptions into its own file
2023-01-28 12:15:59 -07:00
David Wendt
cfa259fe57
chore: Reproducible archive should include the whole project, not just the web subdir
2023-01-27 18:01:51 -07:00
Nathan Adams
7d234956eb
tests: Move tests away from giant macro to individual test.toml files that describe the test
2023-01-27 13:53:43 +01:00
renovate[bot]
175d131986
fix(deps): update rust crate webbrowser to 0.8.6
2023-01-27 01:00:30 +01:00
CUB3D
56fd9adbf9
web: Add key code for NumpadEnter
2023-01-24 22:12:32 -06:00
CUB3D
f559fe0077
desktop: Add key code for Numpad Enter
2023-01-24 22:12:32 -06:00
CUB3D
92d1e81a16
desktop: Add keycodes for Tab, Return and Backspace
2023-01-24 22:12:32 -06:00
Aaron Hill
7ba960987c
core: Display class name in ErrorObject debug impl
...
This lets us know something about the type of error
that was thrown, and doesn't require an Activation/UpdateContext.
2023-01-24 20:38:45 -06:00
TÖRÖK Attila
e3ed59cfa7
chore: Run cargo update
2023-01-24 20:10:40 -06:00
TÖRÖK Attila
e77b1e379c
core/audio: mp3: Use MpaReader instead of the deprecated Mp3Reader from Symphonia
2023-01-24 20:10:40 -06:00
renovate[bot]
8b6eef1715
fix(deps): update rust dependencies
2023-01-24 20:10:40 -06:00
David Wendt
f213ec40fc
chore: `npm ci` must run before any other Node scripts
2023-01-24 01:45:43 +01:00