mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset b5e71f873231 (bug 1148990)
This commit is contained in:
parent
3b95a4999d
commit
5c841d4bbb
@ -14,38 +14,25 @@ EXTRA_COMPONENTS += [
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES['services-common'] += [
|
||||
'hawkclient.js',
|
||||
'hawkrequest.js',
|
||||
'logmanager.js',
|
||||
'stringbundle.js',
|
||||
'tokenserverclient.js',
|
||||
'utils.js',
|
||||
]
|
||||
|
||||
if CONFIG['OS_TARGET'] != 'Android':
|
||||
EXTRA_JS_MODULES['services-common'] += [
|
||||
'hawkclient.js',
|
||||
'hawkrequest.js',
|
||||
'tokenserverclient.js',
|
||||
]
|
||||
|
||||
TESTING_JS_MODULES.services.common += [
|
||||
'modules-testing/storageserver.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_SERVICES_HEALTHREPORT']:
|
||||
EXTRA_PP_JS_MODULES['services-common'] += [
|
||||
'bagheeraclient.js',
|
||||
]
|
||||
TESTING_JS_MODULES.services.common += [
|
||||
'modules-testing/bagheeraserver.js',
|
||||
]
|
||||
|
||||
EXTRA_PP_JS_MODULES['services-common'] += [
|
||||
'async.js',
|
||||
'bagheeraclient.js',
|
||||
'observers.js',
|
||||
'rest.js',
|
||||
]
|
||||
|
||||
TESTING_JS_MODULES.services.common += [
|
||||
'modules-testing/bagheeraserver.js',
|
||||
'modules-testing/logging.js',
|
||||
'modules-testing/storageserver.js',
|
||||
'modules-testing/utils.js',
|
||||
]
|
||||
|
||||
|
@ -1,63 +1,30 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
Components.utils.import("resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
const MODULE_BASE = "resource://services-common/";
|
||||
const shared_modules = [
|
||||
const modules = [
|
||||
"async.js",
|
||||
"bagheeraclient.js",
|
||||
"logmanager.js",
|
||||
"rest.js",
|
||||
"stringbundle.js",
|
||||
"tokenserverclient.js",
|
||||
"utils.js",
|
||||
];
|
||||
|
||||
const non_android_modules = [
|
||||
"bagheeraclient.js",
|
||||
"tokenserverclient.js",
|
||||
];
|
||||
|
||||
const TEST_BASE = "resource://testing-common/services/common/";
|
||||
const shared_test_modules = [
|
||||
"logging.js",
|
||||
];
|
||||
|
||||
const non_android_test_modules = [
|
||||
const test_modules = [
|
||||
"bagheeraserver.js",
|
||||
"logging.js",
|
||||
"storageserver.js",
|
||||
];
|
||||
|
||||
function expectImportsToSucceed(mm, base=MODULE_BASE) {
|
||||
for each (let m in mm) {
|
||||
let resource = base + m;
|
||||
function run_test() {
|
||||
for each (let m in modules) {
|
||||
let resource = "resource://services-common/" + m;
|
||||
Components.utils.import(resource, {});
|
||||
}
|
||||
|
||||
for each (let m in test_modules) {
|
||||
let resource = "resource://testing-common/services/common/" + m;
|
||||
Components.utils.import(resource, {});
|
||||
}
|
||||
}
|
||||
|
||||
function expectImportsToFail(mm, base=MODULE_BASE) {
|
||||
for each (let m in mm) {
|
||||
let resource = base + m;
|
||||
let succeeded = false;
|
||||
try {
|
||||
Components.utils.import(resource, {});
|
||||
succeeded = true;
|
||||
} catch (e) {}
|
||||
|
||||
if (succeeded) {
|
||||
throw "Importing " + m + " should have failed!";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function run_test() {
|
||||
expectImportsToSucceed(shared_modules);
|
||||
expectImportsToSucceed(shared_test_modules, base=TEST_BASE);
|
||||
|
||||
if (AppConstants.platform != "android") {
|
||||
expectImportsToSucceed(non_android_modules);
|
||||
expectImportsToSucceed(non_android_test_modules, base=TEST_BASE);
|
||||
} else {
|
||||
expectImportsToFail(non_android_modules);
|
||||
expectImportsToFail(non_android_test_modules, base=TEST_BASE);
|
||||
}
|
||||
}
|
||||
|
@ -25,27 +25,16 @@ skip-if = toolkit == 'gonk'
|
||||
|
||||
[test_async_chain.js]
|
||||
[test_async_querySpinningly.js]
|
||||
|
||||
[test_bagheera_server.js]
|
||||
skip-if = os == "android"
|
||||
|
||||
[test_bagheera_client.js]
|
||||
skip-if = os == "android"
|
||||
|
||||
[test_hawkclient.js]
|
||||
skip-if = os == "android"
|
||||
[test_hawkrequest.js]
|
||||
skip-if = os == "android"
|
||||
|
||||
[test_logmanager.js]
|
||||
[test_observers.js]
|
||||
[test_restrequest.js]
|
||||
|
||||
[test_tokenauthenticatedrequest.js]
|
||||
skip-if = os == "android"
|
||||
|
||||
[test_tokenserverclient.js]
|
||||
skip-if = os == "android"
|
||||
|
||||
[test_storage_server.js]
|
||||
skip-if = os == "android"
|
||||
|
Loading…
Reference in New Issue
Block a user