Bug 993712 - Try to fix permanent orange in browser_984455_bookmarks_items_reparenting.js by making sure test for 968447 fully closes its window. r=jaws.
authorMike Conley <mconley@mozilla.com>
Mon, 21 Apr 2014 20:07:00 -0400
changeset 180036 ff282758a46d5f42ecd0ad0183e19df41223a0bc
parent 180035 6bdd0bb387d628d92cdb16ac29eacbebdc1a9b6c
child 180037 b9f340c5b1c9801be2132fd6363383055bc29050
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersjaws
bugs993712, 968447
milestone31.0a1
Bug 993712 - Try to fix permanent orange in browser_984455_bookmarks_items_reparenting.js by making sure test for 968447 fully closes its window. r=jaws.
browser/components/customizableui/test/browser_968447_bookmarks_toolbar_items_in_panel.js
--- a/browser/components/customizableui/test/browser_968447_bookmarks_toolbar_items_in_panel.js
+++ b/browser/components/customizableui/test/browser_968447_bookmarks_toolbar_items_in_panel.js
@@ -22,11 +22,11 @@ add_task(function() {
   let newWin = yield openAndLoadWindow();
   yield newWin.PanelUI.show();
   let newWinBookmarksToolbarPlaceholder = newWin.document.getElementById(buttonId);
   ok(newWinBookmarksToolbarPlaceholder.classList.contains("toolbarbutton-1"),
      "Button in new window should have toolbarbutton-1 class");
   is(newWinBookmarksToolbarPlaceholder.getAttribute("wrap"), "true",
      "Button in new window should have 'wrap' attribute");
   yield newWin.PanelUI.hide();
-  newWin.close();
+  yield promiseWindowClosed(newWin);
   CustomizableUI.reset();
 });