Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The Test:
- add_task(async () => {
- info("URI sent when record is in DB");
- const collection = await client.openCollection();
- await collection.clear();
- await collection.create(
- {
- id: "tld-dafsa",
- "commit-hash": "fake-commit-hash",
- attachment: {},
- },
- { synced: true }
- );
- await collection.db.saveLastModified(42); // Prevent from loading JSON dump.
- const backup = client.attachments.download;
- client.attachments.download = async rec => {
- return mockedFileURI;
- };
- const promiseSignal = TestUtils.topicObserved(SIGNAL);
- PublicSuffixList.init();
- const observed = await promiseSignal;
- Assert.equal(observed[1], mockedFileURI);
- await collection.clear();
- client.attachments.download = backup;
- });
- The error :
- 0:00.96 INFO "URI sent when record is in DB"
- 0:01.00 pid:21537 JavaScript strict warning: resource://services-common/kinto-http-client.js, line 1796: ReferenceError: reference to undefined property "initializer"
- 0:01.00 pid:21537 JavaScript strict warning: resource://services-common/kinto-http-client.js, line 1177: ReferenceError: reference to undefined property "initializer"
- 0:01.00 pid:21537 JavaScript strict warning: resource://services-common/kinto-http-client.js, line 323: ReferenceError: reference to undefined property "initializer"
- 0:01.00 INFO (xpcshell/head.js) | test run_next_test 0 finished (2)
- 0:01.00 INFO "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "ReferenceError: reference to undefined property "initializer"" {file: "resource://services-common/kinto-http-client.js" line: 1796}]"
- 0:01.00 INFO "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "ReferenceError: reference to undefined property "initializer"" {file: "resource://services-common/kinto-http-client.js" line: 1177}]"
- 0:01.00 INFO "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "ReferenceError: reference to undefined property "initializer"" {file: "resource://services-common/kinto-http-client.js" line: 323}]"
- 0:01.01 pid:21537 [21537, IPDL Background] WARNING: '!gBaseDirPath', file /builds/worker/workspace/build/src/dom/quota/ActorsParent.cpp, line 3069
- 0:01.01 pid:21537 [21537, IPDL Background] WARNING: profile-do-change must precede QuotaManager::GetOrCreate(): file /builds/worker/workspace/build/src/dom/quota/ActorsParent.cpp, line 3070
- 0:01.01 pid:21537 [21537, IPDL Background] WARNING: '!QuotaManager::Get()', file /builds/worker/workspace/build/src/dom/indexedDB/ActorsParent.cpp, line 19703
- 0:01.01 pid:21537 [21537, IPDL Background] WARNING: 'NS_FAILED(rv)', file /builds/worker/workspace/build/src/dom/indexedDB/ActorsParent.cpp, line 19859
- 0:01.01 pid:21537 [21537, IPDL Background] WARNING: Converting non-IndexedDB error code (0x80004005) to NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR: file /builds/worker/workspace/build/src/dom/indexedDB/ActorsParent.cpp, line 575
- 0:01.01 INFO "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB UnknownErr: ActorsParent.cpp:581"]"
- 0:01.01 ERROR Unexpected exception Error: IndexedDB clear() The operation failed for reasons unrelated to the database itself and not covered by any other error code. at resource://services-common/kinto-offline-client.js:579
- 0:01.01 INFO exiting test
- 0:01.05 pid:21537 JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 110: uncaught exception: Object
- 0:01.08 pid:21537 [21537, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/workspace/build/src/toolkit/crashreporter/nsExceptionHandler.cpp, line 3037
- 0:01.08 pid:21537 [21537, Main Thread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/workspace/build/src/xpcom/base/nsTraceRefcnt.cpp, line 194
- 0:01.08 pid:21537 [21537, Main Thread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/workspace/build/src/xpcom/base/nsTraceRefcnt.cpp, line 194
- 0:01.08 pid:21537 nsStringStats
- 0:01.08 pid:21537 => mAllocCount: 11232
- 0:01.08 pid:21537 => mReallocCount: 0
- 0:01.08 pid:21537 => mFreeCount: 11232
- 0:01.08 pid:21537 => mShareCount: 10177
- 0:01.08 pid:21537 => mAdoptCount: 173
- 0:01.08 pid:21537 => mAdoptFreeCount: 173
- 0:01.08 pid:21537 => Process ID: 21537, Thread ID: 139628778361984
- 0:01.09 TEST_END: FAIL, expected PASS - xpcshell return code: 0
- 0:01.09 INFO INFO | Result summary:
- 0:01.09 INFO INFO | Passed: 0
- 0:01.09 INFO INFO | Failed: 1
- 0:01.09 INFO INFO | Todo: 0
- 0:01.09 INFO INFO | Retried: 0
- 0:01.09 SUITE_END
Add Comment
Please, Sign In to add comment