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 263446 8aede8703d12609c3aca797549e39711cf4617ca
parent 263445 296d8da2660933bf0928647f3625de83da5070bb
child 263447 b798fd098e098dfd313176d15879db399d62bc55
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1125115
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);