summaryrefslogtreecommitdiffstats
path: root/layout/reftests/tab-size
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/tab-size')
-rw-r--r--layout/reftests/tab-size/reftest-stylo.list12
-rw-r--r--layout/reftests/tab-size/reftest.list11
-rw-r--r--layout/reftests/tab-size/spaces-0.html1
-rw-r--r--layout/reftests/tab-size/spaces-1.html1
-rw-r--r--layout/reftests/tab-size/spaces-4-multiple.html1
-rw-r--r--layout/reftests/tab-size/spaces-4-offset.html6
-rw-r--r--layout/reftests/tab-size/spaces-4.html1
-rw-r--r--layout/reftests/tab-size/spaces-8.html1
-rw-r--r--layout/reftests/tab-size/tab-size-0.html2
-rw-r--r--layout/reftests/tab-size/tab-size-1.html2
-rw-r--r--layout/reftests/tab-size/tab-size-4-multiple.html1
-rw-r--r--layout/reftests/tab-size/tab-size-4-span.html1
-rw-r--r--layout/reftests/tab-size/tab-size-4-spanoffset.html6
-rw-r--r--layout/reftests/tab-size/tab-size-4.html1
-rw-r--r--layout/reftests/tab-size/tab-size-8.html1
-rw-r--r--layout/reftests/tab-size/tab-size-change-1-ref.html20
-rw-r--r--layout/reftests/tab-size/tab-size-change-1a.html33
-rw-r--r--layout/reftests/tab-size/tab-size-change-1b.html35
-rw-r--r--layout/reftests/tab-size/tab-size-initial.html1
-rw-r--r--layout/reftests/tab-size/tab-size-negative.html1
20 files changed, 138 insertions, 0 deletions
diff --git a/layout/reftests/tab-size/reftest-stylo.list b/layout/reftests/tab-size/reftest-stylo.list
new file mode 100644
index 000000000..1fc9ed7a1
--- /dev/null
+++ b/layout/reftests/tab-size/reftest-stylo.list
@@ -0,0 +1,12 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+== tab-size-8.html tab-size-8.html
+== tab-size-8.html tab-size-8.html
+== tab-size-4.html tab-size-4.html
+== tab-size-4-span.html tab-size-4-span.html
+== tab-size-4-spanoffset.html tab-size-4-spanoffset.html
+== tab-size-4-multiple.html tab-size-4-multiple.html
+== tab-size-1.html tab-size-1.html
+== tab-size-0.html tab-size-0.html
+== tab-size-negative.html tab-size-negative.html
+== tab-size-change-1a.html tab-size-change-1a.html
+== tab-size-change-1b.html tab-size-change-1b.html
diff --git a/layout/reftests/tab-size/reftest.list b/layout/reftests/tab-size/reftest.list
new file mode 100644
index 000000000..b45472585
--- /dev/null
+++ b/layout/reftests/tab-size/reftest.list
@@ -0,0 +1,11 @@
+== tab-size-8.html tab-size-initial.html
+== tab-size-8.html spaces-8.html
+== tab-size-4.html spaces-4.html
+== tab-size-4-span.html spaces-4.html
+== tab-size-4-spanoffset.html spaces-4-offset.html
+== tab-size-4-multiple.html spaces-4-multiple.html
+== tab-size-1.html spaces-1.html
+== tab-size-0.html spaces-0.html
+== tab-size-negative.html tab-size-initial.html
+== tab-size-change-1a.html tab-size-change-1-ref.html
+== tab-size-change-1b.html tab-size-change-1-ref.html
diff --git a/layout/reftests/tab-size/spaces-0.html b/layout/reftests/tab-size/spaces-0.html
new file mode 100644
index 000000000..188cb6af8
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-0.html
@@ -0,0 +1 @@
+<pre>AX</pre>
diff --git a/layout/reftests/tab-size/spaces-1.html b/layout/reftests/tab-size/spaces-1.html
new file mode 100644
index 000000000..488e943b3
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-1.html
@@ -0,0 +1 @@
+<pre>A X</pre>
diff --git a/layout/reftests/tab-size/spaces-4-multiple.html b/layout/reftests/tab-size/spaces-4-multiple.html
new file mode 100644
index 000000000..070a9f771
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-4-multiple.html
@@ -0,0 +1 @@
+<pre>A XYZ MNO</pre>
diff --git a/layout/reftests/tab-size/spaces-4-offset.html b/layout/reftests/tab-size/spaces-4-offset.html
new file mode 100644
index 000000000..0aea1aaa7
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-4-offset.html
@@ -0,0 +1,6 @@
+<pre>123456B Z
+1234567B Z
+12345678B Z
+123456789B Z
+1234567890B Z
+12345678901B Z</pre>
diff --git a/layout/reftests/tab-size/spaces-4.html b/layout/reftests/tab-size/spaces-4.html
new file mode 100644
index 000000000..ae32ea014
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-4.html
@@ -0,0 +1 @@
+<pre>A X</pre>
diff --git a/layout/reftests/tab-size/spaces-8.html b/layout/reftests/tab-size/spaces-8.html
new file mode 100644
index 000000000..383983423
--- /dev/null
+++ b/layout/reftests/tab-size/spaces-8.html
@@ -0,0 +1 @@
+<pre>A X</pre>
diff --git a/layout/reftests/tab-size/tab-size-0.html b/layout/reftests/tab-size/tab-size-0.html
new file mode 100644
index 000000000..59e0661a1
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-0.html
@@ -0,0 +1,2 @@
+<!-- this test will never insert a space -->
+<pre style="-moz-tab-size: 0">A&#9;X</pre>
diff --git a/layout/reftests/tab-size/tab-size-1.html b/layout/reftests/tab-size/tab-size-1.html
new file mode 100644
index 000000000..ddeef47c3
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-1.html
@@ -0,0 +1,2 @@
+<!-- this test will always insert a space -->
+<pre style="-moz-tab-size: 1">A&#9;X</pre>
diff --git a/layout/reftests/tab-size/tab-size-4-multiple.html b/layout/reftests/tab-size/tab-size-4-multiple.html
new file mode 100644
index 000000000..db8d04c67
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-4-multiple.html
@@ -0,0 +1 @@
+<pre style="-moz-tab-size: 4">A&#9;XYZ&#9;MNO</pre>
diff --git a/layout/reftests/tab-size/tab-size-4-span.html b/layout/reftests/tab-size/tab-size-4-span.html
new file mode 100644
index 000000000..a07a679a3
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-4-span.html
@@ -0,0 +1 @@
+<pre><span style="-moz-tab-size: 4">A&#9;X</span></pre>
diff --git a/layout/reftests/tab-size/tab-size-4-spanoffset.html b/layout/reftests/tab-size/tab-size-4-spanoffset.html
new file mode 100644
index 000000000..cf7a53815
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-4-spanoffset.html
@@ -0,0 +1,6 @@
+<pre>123456<span style="-moz-tab-size: 4">B&#9;Z</span>
+1234567<span style="-moz-tab-size: 4">B&#9;Z</span>
+12345678<span style="-moz-tab-size: 4">B&#9;Z</span>
+123456789<span style="-moz-tab-size: 4">B&#9;Z</span>
+1234567890<span style="-moz-tab-size: 4">B&#9;Z</span>
+12345678901<span style="-moz-tab-size: 4">B&#9;Z</span></pre>
diff --git a/layout/reftests/tab-size/tab-size-4.html b/layout/reftests/tab-size/tab-size-4.html
new file mode 100644
index 000000000..6d744e8a9
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-4.html
@@ -0,0 +1 @@
+<pre style="-moz-tab-size: 4">A&#9;X</pre>
diff --git a/layout/reftests/tab-size/tab-size-8.html b/layout/reftests/tab-size/tab-size-8.html
new file mode 100644
index 000000000..3e0dd4971
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-8.html
@@ -0,0 +1 @@
+<pre style="-moz-tab-size: 8">A&#9;X</pre>
diff --git a/layout/reftests/tab-size/tab-size-change-1-ref.html b/layout/reftests/tab-size/tab-size-change-1-ref.html
new file mode 100644
index 000000000..12cfdd39a
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-change-1-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style type="text/css">
+body {
+ font-family: serif;
+ padding: 2px;
+}
+span {
+ padding: 2px;
+}
+</style>
+</head>
+<body>
+<div style="white-space: pre">
+<span>one</span>&#9;<span>two</span>&#9;<span>three</span>&#9;<span>four</span>&#9;<span>five</span>
+<span>six</span>&#9;<span>seven</span>&#9;<span>eight</span>&#9;<span>nine</span>&#9;<span>ten</span>
+</div>
+</body>
+</html>
diff --git a/layout/reftests/tab-size/tab-size-change-1a.html b/layout/reftests/tab-size/tab-size-change-1a.html
new file mode 100644
index 000000000..8ef01f3d3
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-change-1a.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<style type="text/css">
+body {
+ font-family: serif;
+ padding: 2px;
+}
+span {
+ padding: 2px;
+}
+.a {
+ -moz-tab-size: 16;
+}
+</style>
+<script type="text/javascript">
+function do_test() {
+ var elem = document.getElementById("test");
+ elem.removeAttribute('class');
+ document.documentElement.removeAttribute('class');
+};
+document.addEventListener("MozReftestInvalidate", do_test, false);
+</script>
+</head>
+<!-- test for modification of tab widths, see comment at
+ https://bugzilla.mozilla.org/show_bug.cgi?id=631035#c38 -->
+<body>
+<div style="white-space: pre" id="test" class="a">
+<span>one</span>&#9;<span>two</span>&#9;<span>three</span>&#9;<span>four</span>&#9;<span>five</span>
+<span>six</span>&#9;<span>seven</span>&#9;<span>eight</span>&#9;<span>nine</span>&#9;<span>ten</span>
+</div>
+</body>
+</html>
diff --git a/layout/reftests/tab-size/tab-size-change-1b.html b/layout/reftests/tab-size/tab-size-change-1b.html
new file mode 100644
index 000000000..528765210
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-change-1b.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<style type="text/css">
+body {
+ font-family: serif;
+ padding: 2px;
+}
+span {
+ padding: 2px;
+}
+</style>
+<script type="text/javascript">
+function do_test() {
+ var elems = ["one","two","three","four","five","six","seven","eight","nine","ten"];
+ for (key in elems) {
+ var e = document.getElementById(elems[key]);
+ e.innerHTML = elems[key];
+ }
+ document.documentElement.removeAttribute('class');
+};
+document.addEventListener("MozReftestInvalidate", do_test, false);
+</script>
+</head>
+<!-- Test for modification of text with preformatted tabs, see
+ https://bugzilla.mozilla.org/show_bug.cgi?id=631035#c38.
+ In the first line, the tabs remain at the same offsets but widths will change;
+ in the second line, their offsets will also change. -->
+<body>
+<div style="white-space: pre">
+<span id="one">iii</span>&#9;<span id="two">iii</span>&#9;<span id="three">mmmmm</span>&#9;<span id="four">mmmm</span>&#9;<span id="five">mmmm</span>
+<span id="six">x</span>&#9;<span id="seven">x</span>&#9;<span id="eight">x</span>&#9;<span id="nine">x</span>&#9;<span id="ten">x</span>
+</div>
+</body>
+</html>
diff --git a/layout/reftests/tab-size/tab-size-initial.html b/layout/reftests/tab-size/tab-size-initial.html
new file mode 100644
index 000000000..e8682d399
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-initial.html
@@ -0,0 +1 @@
+<pre>A&#9;X</pre>
diff --git a/layout/reftests/tab-size/tab-size-negative.html b/layout/reftests/tab-size/tab-size-negative.html
new file mode 100644
index 000000000..3b8015441
--- /dev/null
+++ b/layout/reftests/tab-size/tab-size-negative.html
@@ -0,0 +1 @@
+<pre style="-moz-tab-size: -4">A&#9;X</pre>