зеркало из https://github.com/mozilla/gecko-dev.git
Bug 557406 - Intermittent xpcshell failure in test_bookmarks.js | false == true (via shaver, test landing to see orange effect)
This commit is contained in:
Родитель
20f4c2b865
Коммит
51553b4259
|
@ -180,8 +180,8 @@ function run_test() {
|
||||||
|
|
||||||
// Workaround possible VM timers issues moving lastModified and dateAdded
|
// Workaround possible VM timers issues moving lastModified and dateAdded
|
||||||
// to the past.
|
// to the past.
|
||||||
bmsvc.setItemLastModified(newId, --lastModified);
|
bmsvc.setItemLastModified(newId, (lastModified -= 1000));
|
||||||
bmsvc.setItemDateAdded(newId, --dateAdded);
|
bmsvc.setItemDateAdded(newId, (dateAdded -= 1000));
|
||||||
|
|
||||||
// set bookmark title
|
// set bookmark title
|
||||||
bmsvc.setItemTitle(newId, "Google");
|
bmsvc.setItemTitle(newId, "Google");
|
||||||
|
@ -356,8 +356,8 @@ function run_test() {
|
||||||
|
|
||||||
// Workaround possible VM timers issues moving lastModified and dateAdded
|
// Workaround possible VM timers issues moving lastModified and dateAdded
|
||||||
// to the past.
|
// to the past.
|
||||||
bmsvc.setItemLastModified(kwTestItemId, --lastModified);
|
bmsvc.setItemLastModified(kwTestItemId, (lastModified -= 1000));
|
||||||
bmsvc.setItemDateAdded(kwTestItemId, --dateAdded);
|
bmsvc.setItemDateAdded(kwTestItemId, (dateAdded -= 1000));
|
||||||
|
|
||||||
bmsvc.setKeywordForBookmark(kwTestItemId, "bar");
|
bmsvc.setKeywordForBookmark(kwTestItemId, "bar");
|
||||||
|
|
||||||
|
@ -483,8 +483,8 @@ function run_test() {
|
||||||
|
|
||||||
// Workaround possible VM timers issues moving lastModified and dateAdded
|
// Workaround possible VM timers issues moving lastModified and dateAdded
|
||||||
// to the past.
|
// to the past.
|
||||||
bmsvc.setItemLastModified(newId10, --lastModified);
|
bmsvc.setItemLastModified(newId10, (lastModified -= 1000));
|
||||||
bmsvc.setItemDateAdded(newId10, --dateAdded);
|
bmsvc.setItemDateAdded(newId10, (dateAdded -= 1000));
|
||||||
|
|
||||||
bmsvc.changeBookmarkURI(newId10, uri("http://foo11.com/"));
|
bmsvc.changeBookmarkURI(newId10, uri("http://foo11.com/"));
|
||||||
|
|
||||||
|
@ -647,8 +647,8 @@ function run_test() {
|
||||||
|
|
||||||
function testSimpleFolderResult() {
|
function testSimpleFolderResult() {
|
||||||
// the time before we create a folder, in microseconds
|
// the time before we create a folder, in microseconds
|
||||||
// Workaround possible VM timers issues subtracting 1us.
|
// Workaround possible VM timers issues subtracting 1ms.
|
||||||
var beforeCreate = Date.now() * 1000 - 1;
|
var beforeCreate = (Date.now() - 1) * 1000;
|
||||||
do_check_true(beforeCreate > 0);
|
do_check_true(beforeCreate > 0);
|
||||||
|
|
||||||
// create a folder
|
// create a folder
|
||||||
|
@ -661,8 +661,8 @@ function testSimpleFolderResult() {
|
||||||
do_check_true(dateCreated > beforeCreate);
|
do_check_true(dateCreated > beforeCreate);
|
||||||
|
|
||||||
// the time before we insert, in microseconds
|
// the time before we insert, in microseconds
|
||||||
// Workaround possible VM timers issues subtracting 1us.
|
// Workaround possible VM timers issues subtracting 1ms.
|
||||||
var beforeInsert = Date.now() * 1000 - 1;
|
var beforeInsert = (Date.now() - 1) * 1000;
|
||||||
do_check_true(beforeInsert > 0);
|
do_check_true(beforeInsert > 0);
|
||||||
|
|
||||||
// insert a separator
|
// insert a separator
|
||||||
|
|
Загрузка…
Ссылка в новой задаче