Bug 1104927 - UITour: Update browser_UITour_loop.js with for Loop:ChatWindowShown. r=me
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Thu, 11 Dec 2014 21:37:16 -0800
changeset 245175 8778e0d6bba588ffce8a4fdb24e15b2a39dfd546
parent 245174 1f86aebdcc2e86d32674ab9d09f047418e68656e
child 245176 774b930d3c30ad23697972a2e92bec2cf2c0b4e3
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1104927
milestone37.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 1104927 - UITour: Update browser_UITour_loop.js with for Loop:ChatWindowShown. r=me
browser/modules/test/browser_UITour_loop.js
--- a/browser/modules/test/browser_UITour_loop.js
+++ b/browser/modules/test/browser_UITour_loop.js
@@ -85,19 +85,22 @@ let tests = [
         }), "Info panel should be anchored to the new room button");
       });
     });
   },
   function test_notifyLoopChatWindowOpenedClosed(done) {
     gContentAPI.observe((event, params) => {
       is(event, "Loop:ChatWindowOpened", "Check Loop:ChatWindowOpened notification");
       gContentAPI.observe((event, params) => {
-        is(event, "Loop:ChatWindowClosed", "Check Loop:ChatWindowClosed notification");
+        is(event, "Loop:ChatWindowShown", "Check Loop:ChatWindowShown notification");
         gContentAPI.observe((event, params) => {
-          ok(false, "No more notifications should have arrived");
+          is(event, "Loop:ChatWindowClosed", "Check Loop:ChatWindowClosed notification");
+          gContentAPI.observe((event, params) => {
+            ok(false, "No more notifications should have arrived");
+          });
         });
         done();
       });
       document.querySelector("#pinnedchats > chatbox").close();
     });
     LoopRooms.open("fakeTourRoom");
   },
   taskify(function* test_arrow_panel_position() {