Bug 1696626 - Move ldap/xpcom/tests to mailnews/addrbook/test and run against JS implementation. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D117143 --HG-- rename : ldap/xpcom/tests/unit/test_ldapquery.js => mailnews/addrbook/test/unit/test_ldapquery.js rename : ldap/xpcom/tests/unit/test_nsLDAPSyncQuery.js => mailnews/addrbook/test/unit/test_nsLDAPSyncQuery.js rename : ldap/xpcom/tests/unit/test_nsLDAPURL.js => mailnews/addrbook/test/unit/test_nsLDAPURL.js
This commit is contained in:
Родитель
3cdaced20d
Коммит
5cdece69e0
|
@ -7,5 +7,3 @@ DIRS += [
|
||||||
"public",
|
"public",
|
||||||
"src",
|
"src",
|
||||||
]
|
]
|
||||||
|
|
||||||
TEST_DIRS += ["tests"]
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
# vim: set filetype=python:
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell.ini"]
|
|
|
@ -1,7 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
head =
|
|
||||||
tail =
|
|
||||||
|
|
||||||
[test_nsLDAPURL.js]
|
|
||||||
[test_nsLDAPSyncQuery.js]
|
|
||||||
[test_ldapquery.js]
|
|
|
@ -13,7 +13,7 @@ const { LDAPDaemon, LDAPHandlerFn } = ChromeUtils.import(
|
||||||
const { BinaryServer } = ChromeUtils.import(
|
const { BinaryServer } = ChromeUtils.import(
|
||||||
"resource://testing-common/mailnews/Binaryd.jsm"
|
"resource://testing-common/mailnews/Binaryd.jsm"
|
||||||
);
|
);
|
||||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adaptor class to implement nsILDAPMessageListener with a promise.
|
* Adaptor class to implement nsILDAPMessageListener with a promise.
|
|
@ -10,7 +10,7 @@ const { LDAPDaemon, LDAPHandlerFn } = ChromeUtils.import(
|
||||||
const { BinaryServer } = ChromeUtils.import(
|
const { BinaryServer } = ChromeUtils.import(
|
||||||
"resource://testing-common/mailnews/Binaryd.jsm"
|
"resource://testing-common/mailnews/Binaryd.jsm"
|
||||||
);
|
);
|
||||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
const nsILDAPSyncQuery = Ci.nsILDAPSyncQuery;
|
const nsILDAPSyncQuery = Ci.nsILDAPSyncQuery;
|
||||||
const LDAPSyncQueryContractID = "@mozilla.org/ldapsyncquery;1";
|
const LDAPSyncQueryContractID = "@mozilla.org/ldapsyncquery;1";
|
|
@ -45,3 +45,4 @@ tags = vcard
|
||||||
tags = vcard
|
tags = vcard
|
||||||
|
|
||||||
[include:xpcshell_ldap.ini]
|
[include:xpcshell_ldap.ini]
|
||||||
|
[test_nsLDAPURL.js]
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
[test_ldap1.js]
|
[test_ldap1.js]
|
||||||
[test_ldap2.js]
|
[test_ldap2.js]
|
||||||
[test_ldapOffline.js]
|
[test_ldapOffline.js]
|
||||||
|
[test_ldapquery.js]
|
||||||
[test_ldapReplication.js]
|
[test_ldapReplication.js]
|
||||||
skip-if = debug # Fails for unknown reasons.
|
skip-if = debug # Fails for unknown reasons.
|
||||||
|
[test_nsLDAPSyncQuery.js]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче