Bug 1543639 - Fix svg-glyph-extents reftest timeouts when running on Fennec with webcompat extension installed. r=heycam, a=RyanVM
authorLuca Greco <lgreco@mozilla.com>
Sun, 08 Sep 2019 23:21:47 +0000
changeset 554998 6249300e94a498cb8c3fb9425bf89e76f6d1e055
parent 554997 68adb97cc0f86c757c2f115c1af2e9108bf08c14
child 554999 6e1216ffc35ad6e45b0cf6cfe6775dd1d7adb1ef
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam, RyanVM
bugs1543639
milestone70.0
Bug 1543639 - Fix svg-glyph-extents reftest timeouts when running on Fennec with webcompat extension installed. r=heycam, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D45028
layout/reftests/text-svgglyphs/svg-glyph-extents.html
--- a/layout/reftests/text-svgglyphs/svg-glyph-extents.html
+++ b/layout/reftests/text-svgglyphs/svg-glyph-extents.html
@@ -14,28 +14,32 @@ body {
 @keyframes test {
   from {
     font-size: 100px;
   }
   to {
     font-size: 10px;
   }
 }
-div {
+#start-animation div {
   display: inline-block;
   height: 100px;
   width: 100px;
   animation-duration: 3s;
   animation-name: test;
 }
 </style>
 <script type="text/javascript">
 function setup() {
   var e = document.getElementById("watchme");
   e.addEventListener("animationend", listener);
+
+  // Start the animation after the animationend listener has been subscribed
+  // (See Bug 1543639 Comment 25 for a rationale).
+  document.body.id = "start-animation";
 }
 function listener() {
   document.documentElement.className = "";
 }
 </script>
 </head>
 <body onload="setup()">
 <div>A</div>