Bug 1283901 - Intermittent devtools/client/webconsole/test/browser_console_error_source_click.js. r=bgrins, a=test-only
authorJarda Snajdr <jsnajdr@gmail.com>
Fri, 29 Jul 2016 08:29:00 -0400
changeset 342344 dbda9917f8367f2fa78a3c759ea71271e5a1cc48
parent 342343 6b92442b0d5c497e26a0f80a7a717edd410293d5
child 342345 8c56602e31811f13d24c51d548322a823e7bbfce
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs1283901
milestone49.0
Bug 1283901 - Intermittent devtools/client/webconsole/test/browser_console_error_source_click.js. r=bgrins, a=test-only
devtools/client/webconsole/test/browser_console_error_source_click.js
--- a/devtools/client/webconsole/test/browser_console_error_source_click.js
+++ b/devtools/client/webconsole/test/browser_console_error_source_click.js
@@ -63,17 +63,17 @@ add_task(function* () {
 
     let msg = [...result.matched][0];
     ok(msg, "message element found for: " + result.text);
     ok(!msg.classList.contains("filtered-by-type"), "message element is not filtered");
     let selector = ".message > .message-location .frame-link-source";
     let locationNode = msg.querySelector(selector);
     ok(locationNode, "message location element found");
 
-    EventUtils.synthesizeMouse(locationNode, 2, 2, {}, hud.iframeWindow);
+    locationNode.click();
 
     ok(viewSourceCalled, "view source opened");
   }
 
   hud.viewSource = viewSource;
 
   yield finishTest();
 });