Bug 1381276: Reftest. r?jryans
MozReview-Commit-ID: IJUFMtWNETe
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-visited/visited-inherit-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<style>
+a { text-decoration: none; color: initial; display: block; margin: 2px; }
+.green { color: green; }
+</style>
+<a href="unvisited-page.html">
+ <div>
+ <span class="green">Should be green</span>
+ </div>
+</a>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-visited/visited-inherit-1.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<style>
+a { text-decoration: none; color: initial; display: block; margin: 2px; }
+.green { color: green; }
+</style>
+<a href="visited-page.html">
+ <div>
+ <span class="green">Should be green</span>
+ </div>
+</a>
--- a/layout/style/test/moz.build
+++ b/layout/style/test/moz.build
@@ -100,16 +100,18 @@ TEST_HARNESS_FILES.testing.mochitest.tes
'/layout/reftests/css-visited/selector-descendant-2.xhtml',
'/layout/reftests/css-visited/subject-of-selector-1-ref.html',
'/layout/reftests/css-visited/subject-of-selector-adj-sibling-1.html',
'/layout/reftests/css-visited/subject-of-selector-any-sibling-1.html',
'/layout/reftests/css-visited/subject-of-selector-child-1.html',
'/layout/reftests/css-visited/subject-of-selector-descendant-1.html',
'/layout/reftests/css-visited/subject-of-selector-descendant-2-ref.xhtml',
'/layout/reftests/css-visited/subject-of-selector-descendant-2.xhtml',
+ '/layout/reftests/css-visited/visited-inherit-1-ref.html',
+ '/layout/reftests/css-visited/visited-inherit-1.html',
'/layout/reftests/css-visited/visited-page.html',
'/layout/reftests/css-visited/white-to-transparent-1-ref.html',
'/layout/reftests/css-visited/white-to-transparent-1.html',
'/layout/reftests/css-visited/width-1-ref.html',
'/layout/reftests/css-visited/width-on-link-1.html',
'/layout/reftests/css-visited/width-on-visited-1.html',
'/layout/reftests/fonts/Ahem.ttf',
'/layout/reftests/svg/as-image/lime100x100.svg',
--- a/layout/style/test/test_visited_reftests.html
+++ b/layout/style/test/test_visited_reftests.html
@@ -80,16 +80,17 @@ var gTests = [
"!= svg-image-visited-2-helper.svg lime100x100.svg",
// FIXME: commented out because dynamic changes on the non-first-line
// part of the test don't work right when the link becomes visited.
//"== first-line-1.html first-line-1-ref.html",
"== white-to-transparent-1.html white-to-transparent-1-ref.html",
"== link-root-1.xhtml link-root-1-ref.xhtml",
"== mathml-links.html mathml-links-ref.html",
"== placeholder-1.html placeholder-1-ref.html",
+ "== visited-inherit-1.html visited-inherit-1-ref.html",
];
// We record the maximum number of times we had to look at a test before
// it switched to the passing state (though we assume it's 10 to start
// rather than 0 so that we have a reasonable default). Then we make a
// test "time out" if it takes more than gTimeoutFactor times that
// amount of time. This allows us to report a test failure rather than
// making a test failure just show up as a timeout.