Fix browser_UITour_loop bustage from bug 1142522 - update for new required room structure. rs=bustage-fix for CLOSED TREE
authorMark Banner <standard8@mozilla.com>
Mon, 13 Apr 2015 14:10:33 +0100
changeset 257720 5109c1949c7a5418d571aa9df80d82c179279cc9
parent 257719 67683aaa2041b08f074bc6a2ec5a439d9969f052
child 257721 6e88231f30ba70f3d3b6094e205c9416d3aea1ff
push id8007
push userraliiev@mozilla.com
push dateMon, 11 May 2015 19:23:16 +0000
treeherdermozilla-aurora@e2ce1aac996e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1142522
milestone40.0a1
Fix browser_UITour_loop bustage from bug 1142522 - update for new required room structure. rs=bustage-fix for CLOSED TREE
browser/components/uitour/test/browser_UITour_loop.js
--- a/browser/components/uitour/test/browser_UITour_loop.js
+++ b/browser/components/uitour/test/browser_UITour_loop.js
@@ -386,18 +386,19 @@ function checkLoopPanelIsHidden() {
   ok(!loopPanel.hasAttribute("noautohide"), "@noautohide on the loop panel should have been cleaned up");
   ok(!loopPanel.hasAttribute("panelopen"), "The panel shouldn't have @panelopen");
   isnot(loopPanel.state, "open", "The panel shouldn't be open");
   is(loopButton.hasAttribute("open"), false, "Loop button should know that the panel is closed");
 }
 
 function setupFakeRoom() {
   let room = {};
-  for (let prop of ["roomToken", "roomName", "roomOwner", "roomUrl", "participants"])
+  for (let prop of ["roomToken", "roomOwner", "roomUrl", "participants"])
     room[prop] = "fakeTourRoom";
+  room.decryptedContext = {roomName: "fakeTourRoom"};
   let roomsMap = new Map([
     [room.roomToken, room]
   ]);
   LoopRooms.stubCache(roomsMap);
   return roomsMap;
 }
 
 if (Services.prefs.getBoolPref("loop.enabled")) {