mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062894 - Fix wrong assumption in test-places-events.js. r=mossop
This commit is contained in:
parent
ebf6e4ba5f
commit
ef679c4a51
@ -143,6 +143,11 @@ function createBookmark (data) {
|
||||
}
|
||||
exports.createBookmark = createBookmark;
|
||||
|
||||
function historyBatch () {
|
||||
hsrv.runInBatchMode(() => {}, null);
|
||||
}
|
||||
exports.historyBatch = historyBatch;
|
||||
|
||||
function createBookmarkItem (data) {
|
||||
let deferred = defer();
|
||||
data = data || {};
|
||||
|
@ -29,7 +29,7 @@ const { search } = require('sdk/places/history');
|
||||
const {
|
||||
invalidResolve, invalidReject, createTree, createBookmark,
|
||||
compareWithHost, addVisits, resetPlaces, createBookmarkItem,
|
||||
removeVisits
|
||||
removeVisits, historyBatch
|
||||
} = require('./places-helper');
|
||||
const { save, MENU, UNSORTED } = require('sdk/places/bookmarks');
|
||||
const { promisedEmitter } = require('sdk/places/utils');
|
||||
@ -236,9 +236,8 @@ exports['test history-start-batch, history-end-batch, history-start-clear'] = fu
|
||||
on(startEvent, 'data', startHandler);
|
||||
on(clearEvent, 'data', clearHandler);
|
||||
|
||||
createBookmark().then(() => {
|
||||
resetPlaces(complete);
|
||||
})
|
||||
historyBatch();
|
||||
resetPlaces(complete);
|
||||
};
|
||||
|
||||
exports['test history-visit, history-title-changed'] = function (assert, done) {
|
||||
|
Loading…
Reference in New Issue
Block a user