🔧 Add doom tests

This commit is contained in:
Simon Schneegans
2022-08-28 07:30:09 +02:00
parent 743f5657c7
commit 70392cd56f
19 changed files with 10 additions and 3 deletions
+8 -3
View File
@@ -50,10 +50,15 @@ var Doom = class {
// screen. This ensures that the melted window will not be cut off.
let actorScale = 2.0 * Math.max(1.0, global.stage.height / actor.height);
// If we are currently performing integration test, nothing will be visible in the
// test images as the animation has passed the center of the window already. To
// fix this, we set the scales to a pretty high value when performing tests.
const testMode = settings.get_boolean('test-mode');
// clang-format off
shader.set_uniform_float(shader._uActorScale, 1, [actorScale]);
shader.set_uniform_float(shader._uHorizontalScale, 1, [settings.get_double('doom-horizontal-scale')]);
shader.set_uniform_float(shader._uVerticalScale, 1, [settings.get_double('doom-vertical-scale')]);
shader.set_uniform_float(shader._uActorScale, 1, [testMode ? 1.0 : actorScale]);
shader.set_uniform_float(shader._uHorizontalScale, 1, [testMode ? 50.0 : settings.get_double('doom-horizontal-scale')]);
shader.set_uniform_float(shader._uVerticalScale, 1, [testMode ? 200.0 : settings.get_double('doom-vertical-scale')]);
shader.set_uniform_float(shader._uPixelSize, 1, [settings.get_double('doom-pixel-size')]);
// clang-format on
});
+1
View File
@@ -177,6 +177,7 @@ capture_effect "wisps"
if [[ "${FEDORA_VERSION}" -gt 32 ]]; then
capture_effect "apparition"
capture_effect "doom"
fi
if [[ "${FEDORA_VERSION}" -gt 33 ]]; then
Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

+1
View File
@@ -206,6 +206,7 @@ test_effect "wisps"
if [[ "${FEDORA_VERSION}" -gt 32 ]]; then
test_effect "apparition"
test_effect "doom"
fi
if [[ "${FEDORA_VERSION}" -gt 33 ]]; then