Nathan Adams
06361ce01d
tests: Add overlay_onto_stage test to ensure blend buffers are cleared before use
2023-01-29 20:45:01 +01:00
Moulins
e36b03bce9
core::html: correctly encode text in FormatSpans::to_html
...
Fixes issue #9327
2023-01-29 11:19:16 -06:00
CUB3D
f829157deb
avm1: Defining a local that already exists on the target of a with scope, defines it on the target not the parent
2023-01-29 18:05:25 +01:00
Nathan Adams
7b1c101c81
wgpu: Fix repeat & reflect gradients
2023-01-29 17:17:44 +01:00
Nathan Adams
85dc100ee9
avm2: Implement Sprite.dropTarget - though it's wrong right now
2023-01-29 00:52:52 +01:00
Nathan Adams
d918d47f66
tests: Temporarily remove EditText from text_blocks_clicks as it's broken in ruffle atm
2023-01-29 00:39:06 +01:00
Nathan Adams
8108e64bfa
tests: Add avm1 text_blocks_clicks test
2023-01-29 00:39:06 +01:00
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
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
Nathan Adams
48c9cdd5ad
tests: Ported visual tests from ruffle-rs/visual-tests repo
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
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
Aaron Hill
6fe7af58d5
Move back to upstream wgpu repository
...
We're relying on unreleased changes, so we depend on the latest commit
from their repository.
2023-01-23 11:31:04 +01:00
EmperorBale
954a7513f8
tests: Update date tests
2023-01-16 21:48:00 +01:00
Nathan Adams
8db8e4669a
wgpu: Implement Multiply blend mode as a trivial blend
2023-01-12 10:54:03 -05:00
Nathan Adams
09608c2abc
wgpu: Implement Screen blend mode as a trivial blend
2023-01-12 10:54:03 -05:00
dependabot[bot]
b7986406a8
build(deps): bump regex from 1.7.0 to 1.7.1
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.7.0...1.7.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 14:27:19 +02:00
MrCheeze
d1b01c9db7
tests: Update AVM2 currentLabels test for case insensitivity
2023-01-10 11:28:56 -05:00
CUB3D
ea6ea8074a
tests: Add tests for BitmapData.threshold, fix issues found as a result
2023-01-10 13:59:06 +01:00
MrCheeze
c2ad376e2c
tests: Add test for AVM2 hitTestPoint (without shapeFlag) and hitTestObject.
...
This is a port of a similar regression test written for AVM1.
AVM1 also has a test for hitTestPoint with shapeFlag=true, but it can't
be ported for now, because the implementation of AVM2 hit testing is not
yet accurate enough for it.
2023-01-10 12:53:20 +01:00