From a2636ce2df1f010f1bf6b22adee63b1fb991ef78 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 16 Jun 2022 14:44:55 +0800 Subject: [PATCH] tests: Expect to always have three decimal places (rounded) At least when the XML is written by mutter it will have three decimal places. We don't enforce any precision requirements when reading the XML. Part-of: --- src/tests/migration/basic-new.xml | 8 ++++---- src/tests/migration/first-rotated-new.xml | 4 ++-- src/tests/migration/oneoff-new.xml | 2 +- src/tests/migration/rotated-new-finished.xml | 2 +- src/tests/migration/rotated-new.xml | 2 +- src/tests/migration/tiled-new.xml | 2 +- src/tests/migration/wiggle-new-finished.xml | 2 +- src/tests/migration/wiggle-new.xml | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/tests/migration/basic-new.xml b/src/tests/migration/basic-new.xml index 569d1e7cd..9da512355 100644 --- a/src/tests/migration/basic-new.xml +++ b/src/tests/migration/basic-new.xml @@ -14,7 +14,7 @@ 3840 2160 - 29.981103897094727 + 29.981 @@ -32,7 +32,7 @@ 1920 1080 - 60.049972534179688 + 60.050 @@ -52,7 +52,7 @@ 1920 1080 - 60 + 60.000 @@ -70,7 +70,7 @@ 1920 1080 - 60.049468994140625 + 60.049 diff --git a/src/tests/migration/first-rotated-new.xml b/src/tests/migration/first-rotated-new.xml index 9f875c21f..002617054 100644 --- a/src/tests/migration/first-rotated-new.xml +++ b/src/tests/migration/first-rotated-new.xml @@ -18,7 +18,7 @@ 3840 2160 - 29.981103897094727 + 29.981 @@ -36,7 +36,7 @@ 1920 1080 - 60.049972534179688 + 60.050 diff --git a/src/tests/migration/oneoff-new.xml b/src/tests/migration/oneoff-new.xml index 02d85f4de..a55647abf 100644 --- a/src/tests/migration/oneoff-new.xml +++ b/src/tests/migration/oneoff-new.xml @@ -15,7 +15,7 @@ 800 600 - 60 + 60.000 diff --git a/src/tests/migration/rotated-new-finished.xml b/src/tests/migration/rotated-new-finished.xml index a67c376dc..dedadefd5 100644 --- a/src/tests/migration/rotated-new-finished.xml +++ b/src/tests/migration/rotated-new-finished.xml @@ -19,7 +19,7 @@ 800 600 - 60 + 60.000 diff --git a/src/tests/migration/rotated-new.xml b/src/tests/migration/rotated-new.xml index f41964546..6feed883c 100644 --- a/src/tests/migration/rotated-new.xml +++ b/src/tests/migration/rotated-new.xml @@ -19,7 +19,7 @@ 800 600 - 60 + 60.000 diff --git a/src/tests/migration/tiled-new.xml b/src/tests/migration/tiled-new.xml index 9fe285ac8..3ac1d8b7e 100644 --- a/src/tests/migration/tiled-new.xml +++ b/src/tests/migration/tiled-new.xml @@ -15,7 +15,7 @@ 3840 2160 - 60 + 60.000 diff --git a/src/tests/migration/wiggle-new-finished.xml b/src/tests/migration/wiggle-new-finished.xml index c4a56556f..e023d16de 100644 --- a/src/tests/migration/wiggle-new-finished.xml +++ b/src/tests/migration/wiggle-new-finished.xml @@ -19,7 +19,7 @@ 800 600 - 60.000801086425781 + 60.001 diff --git a/src/tests/migration/wiggle-new.xml b/src/tests/migration/wiggle-new.xml index cd1acf717..4ab4cdee7 100644 --- a/src/tests/migration/wiggle-new.xml +++ b/src/tests/migration/wiggle-new.xml @@ -19,7 +19,7 @@ 800 600 - 60.000801086425781 + 60.001