Bug 1431539: Tests. r=dholbert

MozReview-Commit-ID: FSkzeMjIWN1
This commit is contained in:
Emilio Cobos Álvarez 2018-01-22 11:27:12 +01:00
parent 74880efa24
commit 61d84af1db
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test reference for bug 1431539</title>
<style>
a { text-decoration: none }
span { color: green }
</style>
</head>
<body>
<span>
<span>visited</span>
<span>Should be green</span>
</span>
</body>
</html>

View File

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test for bug 1431539</title>
<style>
a { text-decoration: none }
:visited { color: green }
:-moz-any(:visited) + span {
color: red;
}
</style>
</head>
<body>
<a href="visited-page.html">
<a href="visited-page.html">visited</a>
<span>Should be green</span>
</a>
</body>
</html>

View File

@ -90,6 +90,8 @@ TEST_HARNESS_FILES.testing.mochitest.tests.layout.style.test['css-visited'] += [
'/layout/reftests/css-visited/selector-adj-sibling-1.html',
'/layout/reftests/css-visited/selector-adj-sibling-2-ref.html',
'/layout/reftests/css-visited/selector-adj-sibling-2.html',
'/layout/reftests/css-visited/selector-adj-sibling-3-ref.xhtml',
'/layout/reftests/css-visited/selector-adj-sibling-3.xhtml',
'/layout/reftests/css-visited/selector-any-sibling-1-ref.html',
'/layout/reftests/css-visited/selector-any-sibling-1.html',
'/layout/reftests/css-visited/selector-any-sibling-2-ref.html',

View File

@ -69,6 +69,7 @@ var gTests = [
"== selector-child-2.xhtml selector-child-2-ref.xhtml",
"== selector-adj-sibling-1.html selector-adj-sibling-1-ref.html",
"== selector-adj-sibling-2.html selector-adj-sibling-2-ref.html",
"== selector-adj-sibling-3.xhtml selector-adj-sibling-3-ref.xhtml",
"== selector-any-sibling-1.html selector-any-sibling-1-ref.html",
"== selector-any-sibling-2.html selector-any-sibling-2-ref.html",
"== subject-of-selector-descendant-1.html subject-of-selector-1-ref.html",