Bug 556721 - Clean up Places tests; (AAv1-CC) browser_library_views_liveupdate.js: Just copy FF fix.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 09 Feb 2011 22:25:34 +0100
changeset 7116 929e3d2b3fc8470deb52c8b707edb307418357f9
parent 7115 eb1b068abaa3e220ed4684bff6715b6aa27519d3
child 7117 e592a1db76523a566e97fcaf02153bac6eaec2b1
push idunknown
push userunknown
push dateunknown
bugs556721
Bug 556721 - Clean up Places tests; (AAv1-CC) browser_library_views_liveupdate.js: Just copy FF fix. no-review.
suite/common/places/tests/browser/browser_library_views_liveupdate.js
--- a/suite/common/places/tests/browser/browser_library_views_liveupdate.js
+++ b/suite/common/places/tests/browser/browser_library_views_liveupdate.js
@@ -250,17 +250,17 @@ var bookmarksObserver = {
         var uriString = PlacesUtils.bookmarks.getBookmarkURI(aItemId).spec;
         var isQuery = uriString.substr(0, 6) == "place:";
         if (isQuery) {
           isnot(node, null, "Found new Places node in left pane");
           ok(index >= 0, "Node is at index " + index);
           break;
         }
         // Fallback to separator case if this is not a query.
-      case type == PlacesUtils.bookmarks.TYPE_SEPARATOR:
+      case PlacesUtils.bookmarks.TYPE_SEPARATOR:
         is(node, null, "New Places node not added in left pane");
         break;
       default:
         isnot(node, null, "Found new Places node in left pane");
         ok(index >= 0, "Node is at index " + index);
     }
   },