Add tests for #14952

This commit is contained in:
Michael Howell 2017-01-12 20:03:00 +00:00
parent cef4ebed20
commit d4ea380440
3 changed files with 44 additions and 0 deletions

View file

@ -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",

View file

@ -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>

View file

@ -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>