Commits

Virgil Dupras  committed 2c60f6e Draft

Applied some more suggestions from mak.

  • Participants
  • Parent commits 1584d04

Comments (0)

Files changed (1)

File toolkit/components/places/tests/unit/test_bookmarks_html_singleframe.js

 function after_import(success) {
   do_check_true(success);
   let root = PlacesUtils.getFolderContents(PlacesUtils.bookmarksMenuFolderId).root;
-  root.containerOpen = true;
   do_check_eq(root.childCount, 1);
   let folder = root.getChild(0);
   PlacesUtils.asContainer(folder).containerOpen = true;
   let bookmark = folder.getChild(0);
   do_check_eq(bookmark.uri, "http://www.mozilla.org/");
   do_check_eq(bookmark.title, "Mozilla");
-  PlacesUtils.asContainer(folder).containerOpen = false;
-  root.containerOpen = false;
+  folder.containerOpen = false;
   do_test_finished();
 }