зеркало из https://github.com/mozilla/pjs.git
adding some LOG() so I can figure out why the last-modified tests for places
bookmarks are failing on tinderbox. bug #381240
This commit is contained in:
Родитель
ac9eec9f08
Коммит
691e37e259
|
@ -171,6 +171,11 @@ function run_test() {
|
|||
|
||||
// check lastModified after we set the title
|
||||
var lastModified2 = bmsvc.getItemLastModified(newId);
|
||||
LOG("test setItemTitle");
|
||||
LOG("dateAdded = " + dateAdded);
|
||||
LOG("beforeSetTitle = " + beforeSetTitle);
|
||||
LOG("lastModified = " + lastModified);
|
||||
LOG("lastModified2 = " + lastModified2);
|
||||
do_check_true(lastModified2 > lastModified);
|
||||
do_check_true(lastModified2 >= dateAdded);
|
||||
do_check_true(lastModified2 >= beforeSetTitle);
|
||||
|
@ -335,10 +340,13 @@ function run_test() {
|
|||
|
||||
bmsvc.setKeywordForBookmark(kwTestItemId, "bar");
|
||||
|
||||
// XXX bug 381240
|
||||
//var lastModified2 = bmsvc.getItemLastModified(kwTestItemId);
|
||||
//do_check_true(lastModified2 > lastModified);
|
||||
//do_check_true(lastModified2 >= dateAdded);
|
||||
var lastModified2 = bmsvc.getItemLastModified(kwTestItemId);
|
||||
LOG("test setKeywordForBookmark");
|
||||
LOG("dateAdded = " + dateAdded);
|
||||
LOG("lastModified = " + lastModified);
|
||||
LOG("lastModified2 = " + lastModified2);
|
||||
do_check_true(lastModified2 > lastModified);
|
||||
do_check_true(lastModified2 >= dateAdded);
|
||||
} catch(ex) {
|
||||
do_throw("setKeywordForBookmark: " + ex);
|
||||
}
|
||||
|
@ -457,10 +465,13 @@ function run_test() {
|
|||
bmsvc.changeBookmarkURI(newId10, uri("http://foo11.com/"));
|
||||
|
||||
// check that lastModified is set after we change the bookmark uri
|
||||
// XXX bug 381240
|
||||
//var lastModified2 = bmsvc.getItemLastModified(newId10);
|
||||
//do_check_true(lastModified2 > lastModified);
|
||||
//do_check_true(lastModified2 >= dateAdded);
|
||||
var lastModified2 = bmsvc.getItemLastModified(newId10);
|
||||
LOG("test changeBookmarkURI");
|
||||
LOG("dateAdded = " + dateAdded);
|
||||
LOG("lastModified = " + lastModified);
|
||||
LOG("lastModified2 = " + lastModified2);
|
||||
do_check_true(lastModified2 > lastModified);
|
||||
do_check_true(lastModified2 >= dateAdded);
|
||||
|
||||
do_check_eq(observer._itemChangedId, newId10);
|
||||
do_check_eq(observer._itemChangedProperty, "uri");
|
||||
|
|
Загрузка…
Ссылка в новой задаче