зеркало из https://github.com/mozilla/gecko-dev.git
Bug 739217 - Part 1: addVisits replacement of synchronous isVisited with asynchronous isURIVisited. r=mak
This commit is contained in:
Родитель
7bd78a22f0
Коммит
397a8fa8d2
|
@ -69,10 +69,7 @@ let tests = {
|
|||
addVisits(
|
||||
{uri: testURI1, transition: PlacesUtils.history.TRANSITION_TYPED},
|
||||
window,
|
||||
function() {
|
||||
ok(PlacesUtils.ghistory2.isVisited(testURI1), MOZURISPEC + " is a visited url.");
|
||||
aCallback();
|
||||
});
|
||||
aCallback);
|
||||
},
|
||||
|
||||
makeTag: function() {
|
||||
|
|
|
@ -22,9 +22,6 @@ gTests.push({
|
|||
var infoBoxExpanderWrapper = getAndCheckElmtById("infoBoxExpanderWrapper");
|
||||
|
||||
function addVisitsCallback() {
|
||||
var bhist = PlacesUtils.history.QueryInterface(Ci.nsIBrowserHistory);
|
||||
ok(bhist.isVisited(PlacesUtils._uri(TEST_URI)), "Visit has been added.");
|
||||
|
||||
// open all bookmarks node
|
||||
PO.selectLeftPaneQuery("AllBookmarks");
|
||||
isnot(PO._places.selectedNode, null,
|
||||
|
|
|
@ -20,8 +20,6 @@ gTests.push({
|
|||
run: function() {
|
||||
function addVisitsCallback() {
|
||||
var bhist = PlacesUtils.history.QueryInterface(Ci.nsIBrowserHistory);
|
||||
// Add a visit.
|
||||
ok(bhist.isVisited(PlacesUtils._uri(TEST_URI)), "Visit has been added");
|
||||
|
||||
// Select and open the left pane "History" query.
|
||||
var PO = gLibrary.PlacesOrganizer;
|
||||
|
|
Загрузка…
Ссылка в новой задаче