Backed out changeset 96a5b2854978 (bug 527444) for android xpcshell bustage on a CLOSED TREE

This commit is contained in:
Wes Kocher 2014-12-12 12:57:14 -08:00
Родитель fb2134a71e
Коммит 0ab3aacaed
21 изменённых файлов: 73 добавлений и 48 удалений

Просмотреть файл

@ -44,13 +44,3 @@ if (tmpFile.exists())
tmpFile.remove(true);
var zipW = new ZipWriter();
do_register_cleanup(function tail_zipwriter() {
try {
zipW.close();
} catch (e) {
// Just ignore a failure here and attempt to delete the file anyway.
}
if (tmpFile.exists())
tmpFile.remove(true);
});

Просмотреть файл

@ -0,0 +1,14 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
try {
zipW.close();
}
catch (e) {
// Just ignore a failure here and attempt to delete the file anyway.
}
if (tmpFile.exists())
tmpFile.remove(true);

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_zipwriter.js
tail = tail_zipwriter.js
skip-if = toolkit == 'gonk'
support-files =
data/test_bug446708/thumbs/st14-1.tiff

Просмотреть файл

@ -164,7 +164,3 @@ if (!inChildProcess()) {
prefBranch.setBoolPref("browser.preferences.content.log", true);
}
do_register_cleanup(function tail_contentPrefs() {
ContentPrefTest.deleteDatabase();
ContentPrefTest.__dirSvc = null;
});

Просмотреть файл

@ -0,0 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ContentPrefTest.deleteDatabase();
ContentPrefTest.__dirSvc = null;

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_contentPrefs.js
tail = tail_contentPrefs.js
skip-if = toolkit == 'gonk'
[test_bug248970.js]

Просмотреть файл

@ -231,13 +231,3 @@ function oldDownloadManagerDisabled() {
}
return false;
}
do_register_cleanup(function tail_download_manager() {
add_task(function test_common_terminate() {
// Stop the HTTP server. We must do this inside a task in "tail.js" until the
// xpcshell testing framework supports asynchronous termination functions.
let deferred = Promise.defer();
gHttpServer.stop(deferred.resolve);
yield deferred.promise;
});
});

Просмотреть файл

@ -0,0 +1,24 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* Provides infrastructure for automated download components tests.
*/
"use strict";
////////////////////////////////////////////////////////////////////////////////
//// Termination functions common to all tests
add_task(function test_common_terminate()
{
// Stop the HTTP server. We must do this inside a task in "tail.js" until the
// xpcshell testing framework supports asynchronous termination functions.
let deferred = Promise.defer();
gHttpServer.stop(deferred.resolve);
yield deferred.promise;
});

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_download_manager.js
tail = tail_download_manager.js
firefox-appdir = browser
skip-if = toolkit == 'android' || toolkit == 'gonk'
support-files =

Просмотреть файл

@ -367,7 +367,3 @@ LFSRgenerator.prototype = {
};
cleanUp();
do_register_cleanup(function tail_ulrclassifier() {
cleanUp();
});

Просмотреть файл

@ -0,0 +1 @@
cleanUp();

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_urlclassifier.js
tail = tail_urlclassifier.js
skip-if = toolkit == 'android' || toolkit == 'gonk'
support-files =
data/digest1.chunk

Просмотреть файл

@ -129,11 +129,4 @@ function do_get_webappsdir() {
Services.dirsvc.QueryInterface(Ci.nsIDirectoryService).registerProvider(provider);
}
do_register_cleanup(function tail_apps() {
if (gClient) {
// Close the test remote connection before leaving this test.
gClient.close(function tail_apps_close() {
run_next_test();
});
}
});

Просмотреть файл

@ -0,0 +1,6 @@
if (gClient) {
// Close the test remote connection before leaving this test
gClient.close(function () {
run_next_test();
});
}

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_apps.js
tail = tail_apps.js
skip-if = toolkit == 'android'
support-files =
data/app.zip

Просмотреть файл

@ -253,11 +253,4 @@ do_register_cleanup(function() {
Services.prefs.setBoolPref("identity.fxaccounts.enabled", initialPrefFXAValue);
});
do_register_cleanup(function tail_identity() {
// Pre-emptively shut down to clear resources.
if (typeof IdentityService !== "undefined") {
IdentityService.shutdown();
} else if (typeof IDService !== "undefined") {
IDService.shutdown();
}
});

Просмотреть файл

@ -0,0 +1,8 @@
// pre-emptively shut down to clear resources
if (typeof IdentityService !== "undefined") {
IdentityService.shutdown();
} else if (typeof IDService !== "undefined") {
IDService.shutdown();
}

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_identity.js
tail = tail_identity.js
skip-if = toolkit == 'gonk'
support-files =
data/idp_1/.well-known/browserid

Просмотреть файл

@ -161,7 +161,3 @@ var HandlerServiceTest = {
};
HandlerServiceTest.init();
do_register_cleanup(function tail_handleService() {
HandlerServiceTest.destroy();
});

Просмотреть файл

@ -0,0 +1,5 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
HandlerServiceTest.destroy();

Просмотреть файл

@ -1,5 +1,6 @@
[DEFAULT]
head = head_handlerService.js
tail = tail_handlerService.js
skip-if = toolkit == 'gonk'
run-sequentially = Bug 912235 - Intermittent failures