Virgil Dupras avatar Virgil Dupras committed 2c60f6e Draft

Applied some more suggestions from mak.

Comments (0)

Files changed (1)

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();
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.