Auto merge of #8514 - Ms2ger:test-ref, r=Manishearth

Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8514)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-13 22:31:18 +05:30
commit 9bcaedde82
13 changed files with 150 additions and 45 deletions

View file

@ -2271,6 +2271,18 @@
"url": "/_mozilla/css/layerization_z_order_a.html"
}
],
"css/legacy_cellspacing_attribute_a.html": [
{
"path": "css/legacy_cellspacing_attribute_a.html",
"references": [
[
"/_mozilla/css/border_spacing_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_cellspacing_attribute_a.html"
}
],
"css/legacy_input_size_attribute_override_a.html": [
{
"path": "css/legacy_input_size_attribute_override_a.html",
@ -2307,6 +2319,30 @@
"url": "/_mozilla/css/legacy_td_bgcolor_attribute_a.html"
}
],
"css/legacy_td_width_attribute_a.html": [
{
"path": "css/legacy_td_width_attribute_a.html",
"references": [
[
"/_mozilla/css/legacy_td_width_attribute_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_td_width_attribute_a.html"
}
],
"css/legacy_th_width_attribute_a.html": [
{
"path": "css/legacy_th_width_attribute_a.html",
"references": [
[
"/_mozilla/css/legacy_td_width_attribute_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_th_width_attribute_a.html"
}
],
"css/letter_spacing_a.html": [
{
"path": "css/letter_spacing_a.html",
@ -2343,6 +2379,18 @@
"url": "/_mozilla/css/line_breaking_whitespace_collapse_a.html"
}
],
"css/line_height_a.html": [
{
"path": "css/line_height_a.html",
"references": [
[
"/_mozilla/css/line_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/line_height_a.html"
}
],
"css/line_height_float_placement_a.html": [
{
"path": "css/line_height_float_placement_a.html",
@ -2355,6 +2403,18 @@
"url": "/_mozilla/css/line_height_float_placement_a.html"
}
],
"css/linear_gradients_corners_a.html": [
{
"path": "css/linear_gradients_corners_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_corners_ref.html",
"!="
]
],
"url": "/_mozilla/css/linear_gradients_corners_a.html"
}
],
"css/linear_gradients_lengths_a.html": [
{
"path": "css/linear_gradients_lengths_a.html",
@ -2391,6 +2451,18 @@
"url": "/_mozilla/css/linear_gradients_reverse_a.html"
}
],
"css/linear_gradients_smoke_a.html": [
{
"path": "css/linear_gradients_smoke_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_smoke_ref.html",
"!="
]
],
"url": "/_mozilla/css/linear_gradients_smoke_a.html"
}
],
"css/linebreak_inline_span_a.html": [
{
"path": "css/linebreak_inline_span_a.html",
@ -7378,6 +7450,18 @@
"url": "/_mozilla/css/layerization_z_order_a.html"
}
],
"css/legacy_cellspacing_attribute_a.html": [
{
"path": "css/legacy_cellspacing_attribute_a.html",
"references": [
[
"/_mozilla/css/border_spacing_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_cellspacing_attribute_a.html"
}
],
"css/legacy_input_size_attribute_override_a.html": [
{
"path": "css/legacy_input_size_attribute_override_a.html",
@ -7414,6 +7498,30 @@
"url": "/_mozilla/css/legacy_td_bgcolor_attribute_a.html"
}
],
"css/legacy_td_width_attribute_a.html": [
{
"path": "css/legacy_td_width_attribute_a.html",
"references": [
[
"/_mozilla/css/legacy_td_width_attribute_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_td_width_attribute_a.html"
}
],
"css/legacy_th_width_attribute_a.html": [
{
"path": "css/legacy_th_width_attribute_a.html",
"references": [
[
"/_mozilla/css/legacy_td_width_attribute_ref.html",
"=="
]
],
"url": "/_mozilla/css/legacy_th_width_attribute_a.html"
}
],
"css/letter_spacing_a.html": [
{
"path": "css/letter_spacing_a.html",
@ -7450,6 +7558,18 @@
"url": "/_mozilla/css/line_breaking_whitespace_collapse_a.html"
}
],
"css/line_height_a.html": [
{
"path": "css/line_height_a.html",
"references": [
[
"/_mozilla/css/line_height_ref.html",
"=="
]
],
"url": "/_mozilla/css/line_height_a.html"
}
],
"css/line_height_float_placement_a.html": [
{
"path": "css/line_height_float_placement_a.html",
@ -7462,6 +7582,18 @@
"url": "/_mozilla/css/line_height_float_placement_a.html"
}
],
"css/linear_gradients_corners_a.html": [
{
"path": "css/linear_gradients_corners_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_corners_ref.html",
"!="
]
],
"url": "/_mozilla/css/linear_gradients_corners_a.html"
}
],
"css/linear_gradients_lengths_a.html": [
{
"path": "css/linear_gradients_lengths_a.html",
@ -7498,6 +7630,18 @@
"url": "/_mozilla/css/linear_gradients_reverse_a.html"
}
],
"css/linear_gradients_smoke_a.html": [
{
"path": "css/linear_gradients_smoke_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_smoke_ref.html",
"!="
]
],
"url": "/_mozilla/css/linear_gradients_smoke_a.html"
}
],
"css/linebreak_inline_span_a.html": [
{
"path": "css/linebreak_inline_span_a.html",

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that the legacy `cellspacing` attribute works. -->
<link rel=match href=border_spacing_ref.html>
<style>
body, html {
margin: 0;
}
table {
border: none;
padding: 0;
}
tr {
padding: 0;
}
td {
border: none;
padding: 0;
background: blue;
}
</style>
</head>
<body>
<table cellspacing=6>
<tr><td width=32 style="height: 32px;"></td><td width=64></td></tr>
<tr><td width=32 style="height: 32px;"></td><td width=64></td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=legacy_td_width_attribute_ref.html>
<style>
.a {
height: 16px;
background: blue;
}
.b {
background: green;
}
</style>
</head>
<body>
<table><tr><td width=30 class=a></td><td width=200 class=b></td></tr></table>
<table><tr><td width="30 " class=a></td><td width=" 200 " class=b></td></tr></table>
<table><tr><td width="30asdf" class=a></td><td width=200haha class=b></td></tr></table>
</table>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style>
.a {
height: 16px;
width: 30px;
background: blue;
}
.b {
width: 200px;
background: green;
}
</style>
</head>
<body>
<table><tr><td class=a></td><td class=b></td></tr></table>
<table><tr><td class=a></td><td class=b></td></tr></table>
<table><tr><td class=a></td><td class=b></td></tr></table>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=legacy_td_width_attribute_ref.html>
<style>
.a {
height: 16px;
background: blue;
}
.b {
background: green;
}
</style>
</head>
<body>
<table><tr><th width=30 class=a></th><th width=200 class=b></th></tr></table>
<table><tr><td width="30 " class=a></td><td width=" 200 " class=b></td></tr></table>
<table><tr><td width="30asdf" class=a></td><td width=200haha class=b></td></tr></table>
</table>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<link rel=match href=line_height_ref.html>
<style>
body {
margin: 0;
padding: 0;
background-color: white;
}
span {
color: yellow;
font-family: ahem;
font-size: 128px;
}
</style>
</head>
<body>
<span>X</span>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
background-color: white;
}
span {
color: yellow;
font-family: ahem;
font-size: 128px;
line-height: 1.0;
}
</style>
</head>
<body>
<span>X</span>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that corners are not handled incorrectly. -->
<link rel=mismatch href=linear_gradients_corners_ref.html>
<style>
section {
display: block;
width: 300px;
height: 150px;
border: solid black 1px;
}
#a {
background: linear-gradient(to top right, white, black);
}
</style>
</head>
<body>
<section id=a></section>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that corners are not handled incorrectly. -->
<style>
section {
display: block;
width: 300px;
height: 150px;
border: solid black 1px;
}
#a {
background: linear-gradient(45deg, white, black);
}
</style>
</head>
<body>
<section id=a></section>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that linear gradients render *something*. -->
<link rel=mismatch href=linear_gradients_smoke_ref.html>
<style>
section {
display: block;
width: 300px;
height: 150px;
border: solid black 1px;
}
#a {
background: linear-gradient(to bottom, white, black);
}
#b {
background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that linear gradients render *something*. -->
<style>
section {
display: block;
width: 300px;
height: 150px;
border: solid black 1px;
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
</body>
</html>