Bug 1522443 - Avoid intermittent failure of viewport-no-resize-event-on-overflow-recalc.html. r=hiro
authorBotond Ballo <botond@mozilla.com>
Wed, 15 May 2019 23:43:50 +0000
changeset 532838 df182ef2d4e5a7fe9b44280139ae0fa0d5154d16
parent 532837 263b8a0e6c3460e7a7a2c5e9dd90346a7ceefcc6
child 532839 a187487af38a4caa5f125ab660c4d1d09d69aa9d
push id11272
push userapavel@mozilla.com
push dateThu, 16 May 2019 15:28:22 +0000
treeherdermozilla-beta@2265bfc5920d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershiro
bugs1522443
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1522443 - Avoid intermittent failure of viewport-no-resize-event-on-overflow-recalc.html. r=hiro Differential Revision: https://phabricator.services.mozilla.com/D31344
testing/web-platform/tests/visual-viewport/viewport-no-resize-event-on-overflow-recalc.html
--- a/testing/web-platform/tests/visual-viewport/viewport-no-resize-event-on-overflow-recalc.html
+++ b/testing/web-platform/tests/visual-viewport/viewport-no-resize-event-on-overflow-recalc.html
@@ -1,17 +1,16 @@
 <!doctype html>
 <html>
     <head>
         <title>Viewport: No Resize Event Fired on Overflow Recalc</title>
         <meta charset="utf-8">
         <meta name="viewport" content="width=device-width, minimum-scale=1">
         <script src="/resources/testharness.js"></script>
         <script src="/resources/testharnessreport.js"></script>
-        <script src="viewport_support.js"></script>
         <style>
           html {
               height: 100%;
           }
           body {
               /* Ensure overflow to start */
               height: 200%;
           }
@@ -36,14 +35,16 @@
             assert_equals(viewResized, false);
         }));
 
         document.body.style.height = "400%";
       }
 
       // Run the test after load to make sure any resize from load doesn't
       // interfere.
-      window.onload = requestAnimationFrame(runTest);
+      window.onload = requestAnimationFrame(function() {
+        requestAnimationFrame(runTest);
+      });
     </script>
     <div id="log"></div>
     </body>
 </html>