Bug 1484672 - Use node.click instead of synthesizeMouseAtCenter in browser_webconsole_object_inspector_scroll.js; r=davidwalsh
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Mon, 20 Aug 2018 14:59:13 +0000
changeset 487649 564d9c60d6e2722f396f8918f42735d87060a14b
parent 487648 a022c40e4d55f303bbaac93b33447faa02e93add
child 487650 798a3e869e24ed01213be05e536c46b73fc9904f
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidwalsh
bugs1484672
milestone63.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 1484672 - Use node.click instead of synthesizeMouseAtCenter in browser_webconsole_object_inspector_scroll.js; r=davidwalsh Differential Revision: https://phabricator.services.mozilla.com/D3774
devtools/client/webconsole/test/mochitest/browser_webconsole_object_inspector_scroll.js
--- a/devtools/client/webconsole/test/mochitest/browser_webconsole_object_inspector_scroll.js
+++ b/devtools/client/webconsole/test/mochitest/browser_webconsole_object_inspector_scroll.js
@@ -34,19 +34,17 @@ add_task(async function() {
   ok(hasVerticalOverflow(outputContainer), "There is a vertical overflow");
   const scrollTop = outputContainer.scrollTop;
 
   onOiMutation = waitForNodeMutation(objectInspector, {
     childList: true
   });
 
   info("Expand the last node");
-  const view = lastNode.ownerDocument.defaultView;
-  EventUtils.synthesizeMouseAtCenter(lastNode, {}, view);
-
+  lastNode.click();
   await onOiMutation;
 
   is(scrollTop, outputContainer.scrollTop,
     "Scroll position did not changed when expanding a node");
 });
 
 function hasVerticalOverflow(container) {
   return container.scrollHeight > container.clientHeight;