Skip to content

Commit

Permalink
Add a reftest for the pseudo element
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunjunekim committed Apr 11, 2014
1 parent 5c15f24 commit a6066e8
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/html/test_pseudo.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.servo1:before { display:inline; content:'Hello'; color:blue}
span.servo1:after { display:inline; content:'ervo'; color:blue}
div.servo2:before { display:inline; content:'Hello'; color:blue}
div.servo2:after { display:inline; content:'ervo'; color:blue}
span.servo3:before { display:block; content:'Smile'; color:blue}
span.servo3:after { display:block; content:'And thanks';}
div.rust:before { display:block; content:'Hello,';}
div.rust:after { display:inline; content:'ust';}
</style>
</head>

<body>
<span class="servo1">, S</span>
<div class="servo2">, S</div>
<span class="servo3">Servo</span>
<div class="rust">R</div>
</body>
</html>
1 change: 1 addition & 0 deletions src/test/ref/basic.list
Expand Up @@ -66,3 +66,4 @@
== background_repeat_none_a.html background_repeat_none_b.html
== background_repeat_both_a.html background_repeat_both_b.html
== setattribute_id_restyle_a.html setattribute_id_restyle_b.html
== pseudo_element_a.html pseudo_element_b.html
22 changes: 22 additions & 0 deletions src/test/ref/pseudo_element_a.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.servo1:before { display:inline; content:'Hello';}
span.servo1:after { display:inline; content:'ervo';}
div.servo2:before { display:inline; content:'Hello';}
div.servo2:after { display:inline; content:'ervo';}
span.servo3:before { display:block; content:'Smile'; color:blue}
span.servo3:after { display:block; content:'And thanks'; color:blue}
div.rust:before { display:block; content:'Hello,';}
div.rust:after { display:inline; content:'ust';}
</style>
</head>

<body>
<span class="servo1">, S</span>
<div class="servo2">, S</div>
<span class="servo3">Servo</span>
<div class="rust">R</div>
</body>
</html>
18 changes: 18 additions & 0 deletions src/test/ref/pseudo_element_b.html
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<style>
.col { color:blue; }
</style>
</head>

<body>
Hello,<span> Servo</span>
<div class="servo">Hello, Servo</div>
<div class="col">Smile</div>
<span>Servo</span>
<div class="col">And thanks</div>
<div>Hello,</div>
<span>Rust</span>
</body>
</html>

9 comments on commit a6066e8

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging hyunjunekim/servo/try = a6066e8 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hyunjunekim/servo/try = a6066e8 merged ok, testing candidate = e787fbe

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging hyunjunekim/servo/try = a6066e8 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hyunjunekim/servo/try = a6066e8 merged ok, testing candidate = 257e1c0

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 257e1c0

Please sign in to comment.