Bug 1381276: Reftest. r?jryans draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sun, 16 Jul 2017 16:20:38 +0200
changeset 610185 2dd0c91370ba3678f6caa551b9074d20764b8153
parent 610184 113bdc4b5ab6987ea4f8205a4eae4d085a4107f9
child 637774 fac49f469250f35c2e2f70873a037ea49624c1bf
push id68796
push userbmo:emilio+bugs@crisal.io
push dateMon, 17 Jul 2017 23:39:29 +0000
reviewersjryans
bugs1381276
milestone56.0a1
Bug 1381276: Reftest. r?jryans MozReview-Commit-ID: IJUFMtWNETe
layout/reftests/css-visited/visited-inherit-1-ref.html
layout/reftests/css-visited/visited-inherit-1.html
layout/style/test/moz.build
layout/style/test/test_visited_reftests.html
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.