summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/infrastructure
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/mozilla/tests/infrastructure')
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001-ref.html4
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001.html9
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002-ref.html4
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002.html9
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001-ref.html4
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001.html8
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002-ref.html4
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002.html8
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003-ref.html4
-rw-r--r--testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003.html9
10 files changed, 63 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001-ref.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001-ref.html
new file mode 100644
index 0000000000..1b394e0d4f
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html style="zoom: .5">
+ <div style="width: 500px; height: 500px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001.html
new file mode 100644
index 0000000000..83fc95510f
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-001.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html reftest-zoom="0">
+ <link rel="help" href="https://firefox-source-docs.mozilla.org/layout/Reftest.html#zoom-tests-reftest-zoom-float"/>
+ <link rel="match" href="clamp-full-zoom-001-ref.html"/>
+ <!-- zoom.minPercent is set to 50 in the corresponding ini file. -->
+ <meta name="assert" content="Zoom is at least by zoom.minPercent."/>
+ <script src="/_mozilla/common/reftest-zoom.js"></script>
+ <div style="width: 500px; height: 500px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002-ref.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002-ref.html
new file mode 100644
index 0000000000..e2dd42fc86
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html style="zoom: 2">
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002.html
new file mode 100644
index 0000000000..4fbe7edca1
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/clamp-full-zoom-002.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html reftest-zoom="10">
+ <link rel="help" href="https://firefox-source-docs.mozilla.org/layout/Reftest.html#zoom-tests-reftest-zoom-float"/>
+ <link rel="match" href="clamp-full-zoom-002-ref.html"/>
+ <!-- zoom.maxPercent is set to 200 in the corresponding ini file. -->
+ <meta name="assert" content="Zoom is at most by zoom.maxPercent."/>
+ <script src="/_mozilla/common/reftest-zoom.js"></script>
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001-ref.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001-ref.html
new file mode 100644
index 0000000000..1b394e0d4f
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html style="zoom: .5">
+ <div style="width: 500px; height: 500px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001.html
new file mode 100644
index 0000000000..15c07de20d
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-001.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html reftest-zoom=".5">
+ <link rel="help" href="https://firefox-source-docs.mozilla.org/layout/Reftest.html#zoom-tests-reftest-zoom-float"/>
+ <link rel="match" href="set-full-zoom-001-ref.html"/>
+ <meta name="assert" content="Zoom less than one scales down the rect."/>
+ <script src="/_mozilla/common/reftest-zoom.js"></script>
+ <div style="width: 500px; height: 500px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002-ref.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002-ref.html
new file mode 100644
index 0000000000..e2dd42fc86
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html style="zoom: 2">
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002.html
new file mode 100644
index 0000000000..f5d5e6a777
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-002.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html reftest-zoom="2">
+ <link rel="help" href="https://firefox-source-docs.mozilla.org/layout/Reftest.html#zoom-tests-reftest-zoom-float"/>
+ <link rel="match" href="set-full-zoom-002-ref.html"/>
+ <meta name="assert" content="Zoom more than one scales up the rect."/>
+ <script src="/_mozilla/common/reftest-zoom.js"></script>
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003-ref.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003-ref.html
new file mode 100644
index 0000000000..ab500f2a2e
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<html style="zoom: 1">
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>
diff --git a/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003.html b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003.html
new file mode 100644
index 0000000000..b4bf803a89
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/infrastructure/reftest-zoom/set-full-zoom-003.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <link rel="match" href="set-full-zoom-003-ref.html"/>
+ <meta name="assert" content="Initial zoom is equal to one."/>
+ <!-- Note that when running all the tests by alphabetical order, this test
+ would fail if set-zoom-002.html does not reset the zoom to one.
+ It would pass when re-running after a browser restart, though. -->
+ <div style="width: 250px; height: 250px; background: green"></div>
+</html>