aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2017-01-12 20:03:00 +0000
committerMichael Howell <michael@notriddle.com>2017-01-13 01:30:14 +0000
commitd4ea380440153ebc06b79646262801ea553e2b83 (patch)
treec25aa9b07a763440019c82d00461c8dcb80fb3bb
parentcef4ebed2088ea5e4c457eba34fbd48f00fefaff (diff)
downloadservo-d4ea380440153ebc06b79646262801ea553e2b83.tar.gz
servo-d4ea380440153ebc06b79646262801ea553e2b83.zip
Add tests for #14952
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/text_overflow_reflow.html15
-rw-r--r--tests/wpt/mozilla/tests/css/text_overflow_reflow_ref.html5
3 files changed, 44 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 5b3faa75be7..3f3b41a79ea 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -5544,6 +5544,18 @@
"url": "/_mozilla/css/text_overflow_ellipsis.html"
}
],
+ "css/text_overflow_reflow.html": [
+ {
+ "path": "css/text_overflow_reflow.html",
+ "references": [
+ [
+ "/_mozilla/css/text_overflow_reflow_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/text_overflow_reflow.html"
+ }
+ ],
"css/text_overflow_string.html": [
{
"path": "css/text_overflow_string.html",
@@ -20874,6 +20886,18 @@
"url": "/_mozilla/css/text_overflow_ellipsis.html"
}
],
+ "css/text_overflow_reflow.html": [
+ {
+ "path": "css/text_overflow_reflow.html",
+ "references": [
+ [
+ "/_mozilla/css/text_overflow_reflow_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/text_overflow_reflow.html"
+ }
+ ],
"css/text_overflow_string.html": [
{
"path": "css/text_overflow_string.html",
diff --git a/tests/wpt/mozilla/tests/css/text_overflow_reflow.html b/tests/wpt/mozilla/tests/css/text_overflow_reflow.html
new file mode 100644
index 00000000000..958e2826fa4
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/text_overflow_reflow.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<html class="reftest-wait">
+<meta charset="utf-8">
+<title>Text overflow should disappear when the container becomes large enough</title>
+<meta name="description" content="This test is targetted at bug #14952 in Servo's incremental reflow engine.">
+<link rel="match" href="text_overflow_reflow_ref.html">
+<style>html{font-family:Ahem}</style>
+<div id=goat style="width:5em"><p style="text-overflow:ellipsis;overflow:hidden">XXXXXXXXXX</p></div>
+<script>
+var goat = document.getElementById("goat");
+requestAnimationFrame(function() {
+ goat.style.width = "20em";
+ document.documentElement.className = "";
+});
+</script>
diff --git a/tests/wpt/mozilla/tests/css/text_overflow_reflow_ref.html b/tests/wpt/mozilla/tests/css/text_overflow_reflow_ref.html
new file mode 100644
index 00000000000..3997908406b
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/text_overflow_reflow_ref.html
@@ -0,0 +1,5 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>Text overflow should disappear when the container becomes large enough</title>
+<style>html{font-family:Ahem}</style>
+<div style="width:20em"><p style="text-overflow:ellipsis;overflow:hidden">XXXXXXXXXX</p></div>