1
0
Fork 0

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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