summaryrefslogtreecommitdiffstats
path: root/layout/reftests/reftest-sanity/defaults-tests.list
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/reftest-sanity/defaults-tests.list
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/reftest-sanity/defaults-tests.list')
-rw-r--r--layout/reftests/reftest-sanity/defaults-tests.list30
1 files changed, 30 insertions, 0 deletions
diff --git a/layout/reftests/reftest-sanity/defaults-tests.list b/layout/reftests/reftest-sanity/defaults-tests.list
new file mode 100644
index 0000000000..d6e90100c3
--- /dev/null
+++ b/layout/reftests/reftest-sanity/defaults-tests.list
@@ -0,0 +1,30 @@
+# test defaults
+
+# test defaults with a pref()
+defaults pref(font.size.variable.x-western,24)
+!= font-default.html font-size-16.html
+== font-default.html font-size-24.html
+
+# test that a default preference can be overridden
+pref(font.size.variable.x-western,16) == font-default.html font-size-16.html
+pref(font.size.variable.x-western,16) != font-default.html font-size-24.html
+
+# test that default preferences are kept when other test-specific preferences are set
+pref(font.size.variable.zh-HK,36) != font-default.html font-size-16.html
+pref(font.size.variable.zh-HK,36) == font-default.html font-size-24.html
+
+# test defaults with test-pref() and ref-pref()
+defaults test-pref(font.size.variable.x-western,16) ref-pref(font.size.variable.x-western,24)
+!= font-default.html font-default.html
+== font-default.html font-size-16.html
+== font-size-24.html font-default.html
+
+# test defaults with skip and skip-if
+defaults skip
+== font-size-16.html font-size-24.html
+defaults skip-if(true)
+== font-size-16.html font-size-24.html
+
+# test resetting defaults
+defaults
+== font-default.html font-default.html