Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
29 changes: 29 additions & 0 deletions tests/tests/swfs/avm2/bitmapdata_drawwithquality/fonts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Place in ~/.config/fontconfig/fonts.conf -->
<fontconfig>
<match target="pattern">
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Times New Roman</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Times</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
</fontconfig>
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 20 additions & 6 deletions tests/tests/swfs/avm2/bitmapdata_drawwithquality/test.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
num_frames = 1

[image_comparisons.output]
tolerance = 8
max_outliers = 3
# FIXME: Device text should never be drawn with low quality.

[player_options]
[default_fonts]
serif = ["Noto Sans"]

[fonts.noto_sans]
family = "Noto Sans"
path = "NotoSans.ttf"

[subtests.low.image_comparisons."output.low"]
tolerance = 16
max_outliers = 3200

[subtests.low.player_options]
with_renderer = { quality = "low" }
# TODO Fix this test. It shouldn't depend on the default font.
with_default_font = true

[subtests.high.image_comparisons."output.high"]
tolerance = 16
max_outliers = 3200

[subtests.high.player_options]
with_renderer = { quality = "high" }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions tests/tests/swfs/avm2/blend_shader_luma_lighten/test.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
num_ticks = 1

# FIXME: Ruffle doesn't do a good job at antialiasing here.

[[image_comparisons.output.checks]]
filter = 'not(arch = "aarch64")'
tolerance = 2
max_outliers = 3200

[[image_comparisons.output.checks]]
filter = 'arch = "aarch64"'
tolerance = 2
tolerance = 64
max_outliers = 150

# TODO There's an off-by-1-pixel line on AArch64
max_outliers = 340
[[image_comparisons.output.checks]]
tolerance = 180
max_outliers = 0

[player_options]
with_renderer = { optional = false, quality = "low" }
with_renderer = { optional = false, quality = "high" }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
num_frames = 1

# FIXME: Ruffle is pretty bad due to shape scaling and off-by-1 bounds.

[image_comparisons.output]
tolerance = 0
max_outliers = 3800

[player_options]
with_renderer = { optional = false, quality = "low" }
with_renderer = { optional = false, quality = "high" }
Binary file modified tests/tests/swfs/avm2/graphics_bitmaps/output.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 14 additions & 3 deletions tests/tests/swfs/avm2/graphics_bitmaps/test.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
num_frames = 1

[image_comparisons.output]
tolerance = 1
# FIXME: We could be better here.

[[image_comparisons.output.checks]]
tolerance = 8
max_outliers = 4000

[[image_comparisons.output.checks]]
tolerance = 16
max_outliers = 800

[[image_comparisons.output.checks]]
tolerance = 32
max_outliers = 600

[player_options]
with_renderer = { optional = false, quality = "low" }
with_renderer = { optional = false, quality = "high" }
Binary file modified tests/tests/swfs/avm2/graphics_direct_commands/output.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions tests/tests/swfs/avm2/graphics_direct_commands/test.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
num_frames = 1

[image_comparisons.output]
tolerance = 1
# FIXME: We could do better here.

[[image_comparisons.output.checks]]
tolerance = 0
max_outliers = 6000

[[image_comparisons.output.checks]]
tolerance = 16
max_outliers = 4000

[[image_comparisons.output.checks]]
tolerance = 32
max_outliers = 1800

[[image_comparisons.output.checks]]
tolerance = 64
max_outliers = 300

[player_options]
with_renderer = { optional = false, quality = "low" }
with_renderer = { optional = false, quality = "high" }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions tests/tests/swfs/visual/blend_modes/overlay_onto_stage/test.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
num_frames = 1

[image_comparisons.output]
tolerance = 2
[[image_comparisons.output.checks]]
tolerance = 0
max_outliers = 40000

[[image_comparisons.output.checks]]
tolerance = 16
max_outliers = 1300

[[image_comparisons.output.checks]]
tolerance = 32
max_outliers = 60

[[image_comparisons.output.checks]]
tolerance = 64
max_outliers = 0

[player_options]
with_renderer = { quality = "low" }
with_renderer = { quality = "high" }
Loading