Auto merge of #8316 - Ms2ger:test-ref, r=frewsxcv

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/8316)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-04 02:07:59 +05:30
commit 8cbd8e6b45
11 changed files with 100 additions and 4 deletions

View file

@ -899,6 +899,18 @@
"url": "/_mozilla/css/box_shadow_default_color_a.html"
}
],
"css/box_shadow_inset_a.html": [
{
"path": "css/box_shadow_inset_a.html",
"references": [
[
"/_mozilla/css/box_shadow_inset_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_inset_a.html"
}
],
"css/box_shadow_inset_bg.html": [
{
"path": "css/box_shadow_inset_bg.html",
@ -911,6 +923,18 @@
"url": "/_mozilla/css/box_shadow_inset_bg.html"
}
],
"css/box_shadow_inset_parsing_a.html": [
{
"path": "css/box_shadow_inset_parsing_a.html",
"references": [
[
"/_mozilla/css/box_shadow_inset_parsing_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_inset_parsing_a.html"
}
],
"css/box_shadow_paint_order_a.html": [
{
"path": "css/box_shadow_paint_order_a.html",
@ -923,6 +947,18 @@
"url": "/_mozilla/css/box_shadow_paint_order_a.html"
}
],
"css/box_shadow_spread_a.html": [
{
"path": "css/box_shadow_spread_a.html",
"references": [
[
"/_mozilla/css/box_shadow_spread_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_spread_a.html"
}
],
"css/box_sizing_border_box_a.html": [
{
"path": "css/box_sizing_border_box_a.html",
@ -1019,6 +1055,18 @@
"url": "/_mozilla/css/canvas_over_area.html"
}
],
"css/canvas_radial_gradient_a.html": [
{
"path": "css/canvas_radial_gradient_a.html",
"references": [
[
"/_mozilla/css/canvas_radial_gradient_ref.html",
"=="
]
],
"url": "/_mozilla/css/canvas_radial_gradient_a.html"
}
],
"css/case-insensitive-font-family.html": [
{
"path": "css/case-insensitive-font-family.html",
@ -5640,6 +5688,18 @@
"url": "/_mozilla/css/box_shadow_default_color_a.html"
}
],
"css/box_shadow_inset_a.html": [
{
"path": "css/box_shadow_inset_a.html",
"references": [
[
"/_mozilla/css/box_shadow_inset_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_inset_a.html"
}
],
"css/box_shadow_inset_bg.html": [
{
"path": "css/box_shadow_inset_bg.html",
@ -5652,6 +5712,18 @@
"url": "/_mozilla/css/box_shadow_inset_bg.html"
}
],
"css/box_shadow_inset_parsing_a.html": [
{
"path": "css/box_shadow_inset_parsing_a.html",
"references": [
[
"/_mozilla/css/box_shadow_inset_parsing_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_inset_parsing_a.html"
}
],
"css/box_shadow_paint_order_a.html": [
{
"path": "css/box_shadow_paint_order_a.html",
@ -5664,6 +5736,18 @@
"url": "/_mozilla/css/box_shadow_paint_order_a.html"
}
],
"css/box_shadow_spread_a.html": [
{
"path": "css/box_shadow_spread_a.html",
"references": [
[
"/_mozilla/css/box_shadow_spread_ref.html",
"=="
]
],
"url": "/_mozilla/css/box_shadow_spread_a.html"
}
],
"css/box_sizing_border_box_a.html": [
{
"path": "css/box_sizing_border_box_a.html",
@ -5760,6 +5844,18 @@
"url": "/_mozilla/css/canvas_over_area.html"
}
],
"css/canvas_radial_gradient_a.html": [
{
"path": "css/canvas_radial_gradient_a.html",
"references": [
[
"/_mozilla/css/canvas_radial_gradient_ref.html",
"=="
]
],
"url": "/_mozilla/css/canvas_radial_gradient_a.html"
}
],
"css/case-insensitive-font-family.html": [
{
"path": "css/case-insensitive-font-family.html",

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<head>
<!-- Tests that box-shadow inset works. -->
<link rel=match href=box_shadow_inset_ref.html>
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
box-shadow: inset 50px 10px gold;
}
</style>
</head>
<body>
<section></section>
</body>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<head>
<!-- Tests that box-shadow inset parsing quirks work properly. -->
<link rel=match href=box_shadow_inset_parsing_ref.html>
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
border: solid black 1px;
box-shadow: inset 0 0 1em gold;
}
</style>
</head>
<body>
<section></section>
</body>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<head>
<!-- Tests that box-shadow inset parsing quirks work properly. -->
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
border: solid black 1px;
box-shadow: 0 0 1em gold inset;
}
</style>
</head>
<body>
<section></section>
</body>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<head>
<!-- Tests that box-shadow inset works. -->
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: gold;
}
nav {
display: block;
position: absolute;
width: 50px;
height: 90px;
background: white;
left: 50px;
top: 10px;
}
</style>
</head>
<body>
<section><nav></nav></section>
</body>

View file

@ -0,0 +1,18 @@
<head>
<!-- Tests that spread works. -->
<link rel=match href=box_shadow_spread_ref.html>
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
box-shadow: 0 0 0 25px;
}
</style>
</head>
<body>
<section></section>
</body>

View file

@ -0,0 +1,18 @@
<head>
<!-- Tests that spread works. -->
<style>
section {
position: absolute;
width: 100px;
height: 100px;
top: 75px;
left: 75px;
border: solid black 25px;
}
</style>
</head>
<body>
<section></section>
</body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<link rel=match href=canvas_radial_gradient_ref.html>
<style>
html, body {
margin: 0;
padding: 0;
}
canvas {
background-color: green;
}
</style>
<canvas id="c" width="200" height="200">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("c");
var ctx = c.getContext("2d");
var grd = ctx.createRadialGradient(60, 60, 0, 60, 60, 150);
grd.addColorStop(0, "red");
grd.addColorStop(1, "yellow");
ctx.fillStyle = grd;
ctx.fillRect(10, 10, 180, 180);
</script>
</body>
</html>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<body>
<style>
html, body {
margin: 0;
padding: 0;
}
</style>
<img src="canvas_radial_gradient.png">
</body>
</html>