mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Import Tycho weave client
This commit is contained in:
parent
e4ac0e17f8
commit
c53787dfdb
183 changed files with 7272 additions and 16759 deletions
|
|
@ -16,8 +16,8 @@ var IOService = Cc["@mozilla.org/network/io-service;1"]
|
|||
|
||||
|
||||
Service.engineManager.register(BookmarksEngine);
|
||||
var engine = Service.engineManager.get("bookmarks");
|
||||
var store = engine._store;
|
||||
let engine = Service.engineManager.get("bookmarks");
|
||||
let store = engine._store;
|
||||
|
||||
// Clean up after other tests. Only necessary in XULRunner.
|
||||
store.wipe();
|
||||
|
|
@ -57,7 +57,7 @@ function serverForFoo(engine) {
|
|||
|
||||
// Verify that Places smart bookmarks have their annotation uploaded and
|
||||
// handled locally.
|
||||
add_task(function *test_annotation_uploaded() {
|
||||
add_test(function test_annotation_uploaded() {
|
||||
let server = serverForFoo(engine);
|
||||
new SyncTestingInfrastructure(server.server);
|
||||
|
||||
|
|
@ -110,9 +110,9 @@ add_task(function *test_annotation_uploaded() {
|
|||
let collection = server.user("foo").collection("bookmarks");
|
||||
|
||||
try {
|
||||
yield sync_engine_and_validate_telem(engine, false);
|
||||
engine.sync();
|
||||
let wbos = collection.keys(function (id) {
|
||||
return ["menu", "toolbar", "mobile", "unfiled"].indexOf(id) == -1;
|
||||
return ["menu", "toolbar", "mobile"].indexOf(id) == -1;
|
||||
});
|
||||
do_check_eq(wbos.length, 1);
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ add_task(function *test_annotation_uploaded() {
|
|||
do_check_eq(smartBookmarkCount(), startCount);
|
||||
|
||||
_("Sync. Verify that the downloaded record carries the annotation.");
|
||||
yield sync_engine_and_validate_telem(engine, false);
|
||||
engine.sync();
|
||||
|
||||
_("Verify that the Places DB now has an annotated bookmark.");
|
||||
_("Our count has increased again.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue