Bug 1125115 - Remove (now) pointless test that is failing to reopen a CLOSED TREE
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 20 Mar 2015 12:08:47 +0100
changeset 251853 8aede8703d12609c3aca797549e39711cf4617ca
parent 251852 296d8da2660933bf0928647f3625de83da5070bb
child 251854 b798fd098e098dfd313176d15879db399d62bc55
push id1156
push userpbrosset@mozilla.com
push dateFri, 20 Mar 2015 16:00:24 +0000
bugs1125115
milestone39.0a1
Bug 1125115 - Remove (now) pointless test that is failing to reopen a CLOSED TREE
toolkit/components/places/tests/bookmarks/test_bookmarks.js
--- a/toolkit/components/places/tests/bookmarks/test_bookmarks.js
+++ b/toolkit/components/places/tests/bookmarks/test_bookmarks.js
@@ -316,37 +316,18 @@ add_task(function test_bookmarks() {
 
   // test get folder's index 
   let tmpFolder = bs.createFolder(testRoot, "tmp", 2);
   do_check_eq(bs.getItemIndex(tmpFolder), 2);
 
   // test setKeywordForBookmark
   let kwTestItemId = bs.insertBookmark(testRoot, uri("http://keywordtest.com"),
                                        bs.DEFAULT_INDEX, "");
+  bs.setKeywordForBookmark(kwTestItemId, "bar");
 
-  dateAdded = bs.getItemDateAdded(kwTestItemId);
-  // after just inserting, modified should not be set
-  lastModified = bs.getItemLastModified(kwTestItemId);
-  do_check_eq(lastModified, dateAdded);
-  // Workaround possible VM timers issues moving lastModified and dateAdded
-  // to the past.
-  lastModified -= 1000;
-  bs.setItemLastModified(kwTestItemId, lastModified);
-  dateAdded -= 1000;
-  bs.setItemDateAdded(kwTestItemId, dateAdded);
-  bs.setKeywordForBookmark(kwTestItemId, "bar");
-  lastModified2 = bs.getItemLastModified(kwTestItemId);
-  LOG("test setKeywordForBookmark");
-  LOG("dateAdded = " + dateAdded);
-  LOG("lastModified = " + lastModified);
-  LOG("lastModified2 = " + lastModified2);
-  do_check_true(is_time_ordered(lastModified, lastModified2));
-  do_check_true(is_time_ordered(dateAdded, lastModified2));
-
-  let lastModified3 = bs.getItemLastModified(kwTestItemId);
   // test getKeywordForBookmark
   let k = bs.getKeywordForBookmark(kwTestItemId);
   do_check_eq("bar", k);
 
   // test getURIForKeyword
   let u = bs.getURIForKeyword("bar");
   do_check_eq("http://keywordtest.com/", u.spec);