зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d0669259020b (bug 1362937) for causing merge conflicts when merging to m-c
This commit is contained in:
Родитель
8a2dc81b1a
Коммит
b3802bb95b
|
@ -284,7 +284,7 @@ ProfileStorage.prototype = {
|
||||||
return !!name;
|
return !!name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return name && name.toLowerCase().startsWith(lcSearchString);
|
return name.toLowerCase().startsWith(lcSearchString);
|
||||||
});
|
});
|
||||||
|
|
||||||
log.debug("getByFilter: Returning", result.length, "result(s)");
|
log.debug("getByFilter: Returning", result.length, "result(s)");
|
||||||
|
|
|
@ -143,11 +143,6 @@ add_task(function* test_getByFilter() {
|
||||||
filter = {info: {fieldName: "street-address"}, searchString: ".*"};
|
filter = {info: {fieldName: "street-address"}, searchString: ".*"};
|
||||||
profiles = profileStorage.getByFilter(filter);
|
profiles = profileStorage.getByFilter(filter);
|
||||||
do_check_eq(profiles.length, 0);
|
do_check_eq(profiles.length, 0);
|
||||||
|
|
||||||
// Prevent broken while searching the property that is not existed.
|
|
||||||
filter = {info: {fieldName: "tel"}, searchString: "1"};
|
|
||||||
profiles = profileStorage.getByFilter(filter);
|
|
||||||
do_check_eq(profiles.length, 0);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
add_task(function* test_add() {
|
add_task(function* test_add() {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче