Bug 1232204 - Disable checks of number of buttons in browser_ProcessHangNotifications.js since they fail to properly identify when it is a mozilla-aurora on-push build being tested, a=testonly
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 14 Dec 2015 18:52:36 -0800
changeset 317122 1c4b9f6f5dfa917426bcf559ee78c6dc54157bef
parent 317121 b2a299017e273d21c11ebaa55958691e80f3f27c
child 317123 98dc080d53ca3f5c9414008a27ae16f06fb65e24
push id8643
push usermconley@mozilla.com
push dateTue, 22 Dec 2015 18:28:20 +0000
reviewerstestonly
bugs1232204
milestone45.0a2
Bug 1232204 - Disable checks of number of buttons in browser_ProcessHangNotifications.js since they fail to properly identify when it is a mozilla-aurora on-push build being tested, a=testonly CLOSED TREE
browser/modules/test/browser_ProcessHangNotifications.js
--- a/browser/modules/test/browser_ProcessHangNotifications.js
+++ b/browser/modules/test/browser_ProcessHangNotifications.js
@@ -97,17 +97,18 @@ let buttonCount = (UpdateUtils.UpdateCha
  */
 
 add_task(function* terminateScriptTest() {
   let promise = promiseNotificationShown(window, "process-hang");
   Services.obs.notifyObservers(gTestHangReport, "process-hang-report", null);
   let notification = yield promise;
 
   let buttons = notification.currentNotification.getElementsByTagName("button");
-  is(buttons.length, buttonCount, "proper number of buttons");
+  // Fails on aurora on-push builds, bug 1232204
+  // is(buttons.length, buttonCount, "proper number of buttons");
 
   // Click the "Stop It" button, we should get a terminate script callback
   gTestHangReport.hangType = gTestHangReport.SLOW_SCRIPT;
   promise = promiseReportCallMade(gTestHangReport.TEST_CALLBACK_TERMSCRIPT);
   buttons[0].click();
   yield promise;
 });
 
@@ -117,17 +118,18 @@ add_task(function* terminateScriptTest()
  */
 
 add_task(function* waitForScriptTest() {
   let promise = promiseNotificationShown(window, "process-hang");
   Services.obs.notifyObservers(gTestHangReport, "process-hang-report", null);
   let notification = yield promise;
 
   let buttons = notification.currentNotification.getElementsByTagName("button");
-  is(buttons.length, buttonCount, "proper number of buttons");
+  // Fails on aurora on-push builds, bug 1232204
+  // is(buttons.length, buttonCount, "proper number of buttons");
 
   yield pushPrefs(["browser.hangNotification.waitPeriod", 1000],
                   ["browser.hangNotification.expiration", 2000]);
 
   function nocbcheck() {
     ok(false, "received a callback?");
   }
   let oldcb = gTestHangReport.testCallback;
@@ -170,16 +172,17 @@ add_task(function* hangGoesAwayTest() {
  */
 
 add_task(function* terminatePluginTest() {
   let promise = promiseNotificationShown(window, "process-hang");
   Services.obs.notifyObservers(gTestHangReport, "process-hang-report", null);
   let notification = yield promise;
 
   let buttons = notification.currentNotification.getElementsByTagName("button");
-  is(buttons.length, buttonCount, "proper number of buttons");
+  // Fails on aurora on-push builds, bug 1232204
+  // is(buttons.length, buttonCount, "proper number of buttons");
 
   // Click the "Stop It" button, we should get a terminate script callback
   gTestHangReport.hangType = gTestHangReport.PLUGIN_HANG;
   promise = promiseReportCallMade(gTestHangReport.TEST_CALLBACK_TERMPLUGIN);
   buttons[0].click();
   yield promise;
 });