mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Adding tests to check behavior. There are 3 files that will test:
a) If the groove border is different from a black border (the bug that this patch set fixes); b) If a ridge border is different from a black border (samething); c) If groove is different from ridge (they should be inverse of each other). All 3 new tests passes on OSX Yosemite (10.10).
This commit is contained in:
parent
fcc0229d5e
commit
4d5cca2c69
4 changed files with 65 additions and 0 deletions
|
@ -194,3 +194,6 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== outlines_simple_a.html outlines_simple_ref.html
|
||||
== outlines_wrap_a.html outlines_wrap_ref.html
|
||||
== letter_spacing_a.html letter_spacing_ref.html
|
||||
!= border_black_groove.html border_black_solid.html
|
||||
!= border_black_ridge.html border_black_solid.html
|
||||
!= border_black_ridge.html border_black_groove.html
|
||||
|
|
21
tests/ref/border_black_groove.html
Normal file
21
tests/ref/border_black_groove.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 10px;
|
||||
border-width: 20px;
|
||||
border-color: black;
|
||||
border-style: groove;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Test mixed border styles. Expect a square with borders with
|
||||
2 colors (dark/lighter), it fails if it has a solid dark border.
|
||||
-->
|
||||
<div class="box"></div>
|
||||
</body>
|
||||
</html>
|
21
tests/ref/border_black_ridge.html
Normal file
21
tests/ref/border_black_ridge.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 10px;
|
||||
border-width: 20px;
|
||||
border-color: black;
|
||||
border-style: ridge;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Test mixed border styles. Expect a square with borders with
|
||||
2 colors (lighter/dark), it fails if it has a solid dark border.
|
||||
-->
|
||||
<div class="box"></div>
|
||||
</body>
|
||||
</html>
|
20
tests/ref/border_black_solid.html
Normal file
20
tests/ref/border_black_solid.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 10px;
|
||||
border-width: 20px;
|
||||
border-color: black;
|
||||
border-style: solid;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Test mixed border styles. Expect a square with solid dark border.
|
||||
-->
|
||||
<div class="box"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue