tests: Expect <rate> 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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2465>
This commit is contained in:
Daniel van Vugt 2022-06-16 14:44:55 +08:00 committed by Marge Bot
parent 8711d44991
commit a2636ce2df
8 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,7 @@
<mode> <mode>
<width>3840</width> <width>3840</width>
<height>2160</height> <height>2160</height>
<rate>29.981103897094727</rate> <rate>29.981</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>
@ -32,7 +32,7 @@
<mode> <mode>
<width>1920</width> <width>1920</width>
<height>1080</height> <height>1080</height>
<rate>60.049972534179688</rate> <rate>60.050</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>
@ -52,7 +52,7 @@
<mode> <mode>
<width>1920</width> <width>1920</width>
<height>1080</height> <height>1080</height>
<rate>60</rate> <rate>60.000</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>
@ -70,7 +70,7 @@
<mode> <mode>
<width>1920</width> <width>1920</width>
<height>1080</height> <height>1080</height>
<rate>60.049468994140625</rate> <rate>60.049</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -18,7 +18,7 @@
<mode> <mode>
<width>3840</width> <width>3840</width>
<height>2160</height> <height>2160</height>
<rate>29.981103897094727</rate> <rate>29.981</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>
@ -36,7 +36,7 @@
<mode> <mode>
<width>1920</width> <width>1920</width>
<height>1080</height> <height>1080</height>
<rate>60.049972534179688</rate> <rate>60.050</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -15,7 +15,7 @@
<mode> <mode>
<width>800</width> <width>800</width>
<height>600</height> <height>600</height>
<rate>60</rate> <rate>60.000</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -19,7 +19,7 @@
<mode> <mode>
<width>800</width> <width>800</width>
<height>600</height> <height>600</height>
<rate>60</rate> <rate>60.000</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -19,7 +19,7 @@
<mode> <mode>
<width>800</width> <width>800</width>
<height>600</height> <height>600</height>
<rate>60</rate> <rate>60.000</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -15,7 +15,7 @@
<mode> <mode>
<width>3840</width> <width>3840</width>
<height>2160</height> <height>2160</height>
<rate>60</rate> <rate>60.000</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -19,7 +19,7 @@
<mode> <mode>
<width>800</width> <width>800</width>
<height>600</height> <height>600</height>
<rate>60.000801086425781</rate> <rate>60.001</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>

View File

@ -19,7 +19,7 @@
<mode> <mode>
<width>800</width> <width>800</width>
<height>600</height> <height>600</height>
<rate>60.000801086425781</rate> <rate>60.001</rate>
</mode> </mode>
</monitor> </monitor>
</logicalmonitor> </logicalmonitor>