Bug 1497321 [wpt PR 13372] - Fix typo in focus-visible selector test., a=testonly
authorJosh Matthews <josh@joshmatthews.net>
Thu, 11 Oct 2018 09:30:28 +0000
changeset 489232 bf9667abba51109254ad238200f9ad5ae013e7b4
parent 489231 28e4a41b82890ca85a1bd557ef46d63813e339d5
child 489233 cb1d335ae21b8eb8d711d0fedaafdf93a4bea0db
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstestonly
bugs1497321, 13372
milestone64.0a1
Bug 1497321 [wpt PR 13372] - Fix typo in focus-visible selector test., a=testonly Automatic update from web-platform-testsFix typo in focus-visible selector test. -- wpt-commits: 1400d501f1b4eca2552fc2cfc2faf7d0495934ba wpt-pr: 13372
testing/web-platform/tests/css/selectors/focus-visible-009.html
--- a/testing/web-platform/tests/css/selectors/focus-visible-009.html
+++ b/testing/web-platform/tests/css/selectors/focus-visible-009.html
@@ -28,17 +28,17 @@
   <script>
     async_test(function(t) {
       button.addEventListener("focus", t.step_func(function() {
         assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 100, 0)");
         t.done();
       }));
 
       // Handle the case where the button is focused before the test runs.
-     if (document.activeButtonement === button) {
+     if (document.activeElement === button) {
         assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 100, 0)");
         t.done();
      }
 
     }, "Autofocus should match :focus-visible");
   </script>
 </body>
 </html>