Backed out changeset 5fb14f57f34a (bug 784558)

This commit is contained in:
Tim Taubert
2012-08-22 16:02:25 -07:00
parent edcb487b19
commit 3c7343b1da
2 changed files with 1 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ function runTests() {
// clear last 10 mins of history
yield clearHistory(true);
yield whenFileRemoved();
ok(!copy.exists(), "copy of thumbnail has been removed");
}
function clearHistory(aUseRange) {
@@ -65,12 +65,10 @@ function clearHistory(aUseRange) {
if (aUseRange) {
let usec = Date.now() * 1000;
s.range = [usec - 10 * 60 * 1000 * 1000, usec];
s.ignoreTimespan = false;
}
s.sanitize();
s.range = null;
s.ignoreTimespan = true;
executeSoon(function () {
if (PageThumbsStorage.getFileForURL(URL).exists())
@@ -89,13 +87,3 @@ function whenFileExists() {
executeSoon(callback);
}
function whenFileRemoved() {
let callback = whenFileRemoved;
let file = PageThumbsStorage.getFileForURL(URL);
if (!file.exists())
callback = next;
executeSoon(callback);
}