OLD | NEW |
1 [Worker] Test IndexedDB workers, recursion, and transaction termination. | 1 [Worker] Test IndexedDB workers, recursion, and transaction termination. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Starting worker: resources/transaction-complete-workers.js | 6 Starting worker: resources/transaction-complete-workers.js |
7 [Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB
|| self.msIndexedDB || self.OIndexedDB; | 7 [Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB
|| self.msIndexedDB || self.OIndexedDB; |
8 [Worker] | 8 [Worker] |
9 [Worker] dbname = "transaction-complete-workers.js" | 9 [Worker] dbname = "transaction-complete-workers.js" |
10 [Worker] indexedDB.deleteDatabase(dbname) | 10 [Worker] indexedDB.deleteDatabase(dbname) |
11 [Worker] indexedDB.open(dbname) | 11 [Worker] indexedDB.open(dbname) |
12 [Worker] | 12 [Worker] |
13 [Worker] prepareDatabase(): | 13 [Worker] prepareDatabase(): |
14 [Worker] db.createObjectStore('store') | 14 [Worker] db.createObjectStore('store') |
15 [Worker] | 15 [Worker] |
16 [Worker] createTransaction(): | 16 [Worker] createTransaction(): |
17 [Worker] transaction = db.transaction('store') | 17 [Worker] transaction = db.transaction('store') |
18 [Worker] store = transaction.objectStore('store') | 18 [Worker] store = transaction.objectStore('store') |
19 PASS [Worker] Transaction completed | 19 PASS [Worker] Transaction completed |
20 [Worker] Expecting exception from store.get(0) | 20 [Worker] Expecting exception from store.get(0) |
21 PASS [Worker] Exception was thrown. | 21 PASS [Worker] Exception was thrown. |
22 PASS [Worker] code is 0 | 22 PASS [Worker] code is 0 |
23 PASS [Worker] ename is 'TransactionInactiveError' | 23 PASS [Worker] ename is 'TransactionInactiveError' |
24 [Worker] Exception message: The transaction has finished. | 24 [Worker] Exception message: Failed to execute 'get' on 'IDBObjectStore': The tra
nsaction has finished. |
25 [Worker] | 25 [Worker] |
26 [Worker] recursionTest(): | 26 [Worker] recursionTest(): |
27 [Worker] transaction = db.transaction('store') | 27 [Worker] transaction = db.transaction('store') |
28 [Worker] store = transaction.objectStore('store') | 28 [Worker] store = transaction.objectStore('store') |
29 [Worker] store.get(0) | 29 [Worker] store.get(0) |
30 PASS [Worker] transaction is active | 30 PASS [Worker] transaction is active |
31 [Worker] recursion depth: 1 | 31 [Worker] recursion depth: 1 |
32 [Worker] store.get(0) | 32 [Worker] store.get(0) |
33 PASS [Worker] transaction is still active | 33 PASS [Worker] transaction is still active |
34 [Worker] recursion depth: 2 | 34 [Worker] recursion depth: 2 |
35 [Worker] store.get(0) | 35 [Worker] store.get(0) |
36 PASS [Worker] transaction is still active | 36 PASS [Worker] transaction is still active |
37 [Worker] recursion depth: 3 | 37 [Worker] recursion depth: 3 |
38 [Worker] store.get(0) | 38 [Worker] store.get(0) |
39 PASS [Worker] transaction is still active | 39 PASS [Worker] transaction is still active |
40 [Worker] recursion depth: 3 | 40 [Worker] recursion depth: 3 |
41 [Worker] store.get(0) | 41 [Worker] store.get(0) |
42 PASS [Worker] transaction is still active | 42 PASS [Worker] transaction is still active |
43 [Worker] recursion depth: 2 | 43 [Worker] recursion depth: 2 |
44 [Worker] store.get(0) | 44 [Worker] store.get(0) |
45 PASS [Worker] transaction is still active | 45 PASS [Worker] transaction is still active |
46 [Worker] recursion depth: 1 | 46 [Worker] recursion depth: 1 |
47 [Worker] store.get(0) | 47 [Worker] store.get(0) |
48 PASS [Worker] transaction is still active | 48 PASS [Worker] transaction is still active |
49 PASS [Worker] transaction completed | 49 PASS [Worker] transaction completed |
50 [Worker] Expecting exception from store.get(0) | 50 [Worker] Expecting exception from store.get(0) |
51 PASS [Worker] Exception was thrown. | 51 PASS [Worker] Exception was thrown. |
52 PASS [Worker] code is 0 | 52 PASS [Worker] code is 0 |
53 PASS [Worker] ename is 'TransactionInactiveError' | 53 PASS [Worker] ename is 'TransactionInactiveError' |
54 [Worker] Exception message: The transaction has finished. | 54 [Worker] Exception message: Failed to execute 'get' on 'IDBObjectStore': The tra
nsaction has finished. |
55 [Worker] | 55 [Worker] |
56 [Worker] trying a timeout callback: | 56 [Worker] trying a timeout callback: |
57 [Worker] setTimeout(timeoutTest, 0) | 57 [Worker] setTimeout(timeoutTest, 0) |
58 [Worker] | 58 [Worker] |
59 [Worker] timeoutTest(): | 59 [Worker] timeoutTest(): |
60 [Worker] transaction = db.transaction('store') | 60 [Worker] transaction = db.transaction('store') |
61 [Worker] store = transaction.objectStore('store') | 61 [Worker] store = transaction.objectStore('store') |
62 PASS [Worker] transaction started in setTimeout() callback completed | 62 PASS [Worker] transaction started in setTimeout() callback completed |
63 [Worker] Expecting exception from store.get(0) | 63 [Worker] Expecting exception from store.get(0) |
64 PASS [Worker] Exception was thrown. | 64 PASS [Worker] Exception was thrown. |
65 PASS [Worker] code is 0 | 65 PASS [Worker] code is 0 |
66 PASS [Worker] ename is 'TransactionInactiveError' | 66 PASS [Worker] ename is 'TransactionInactiveError' |
67 [Worker] Exception message: The transaction has finished. | 67 [Worker] Exception message: Failed to execute 'get' on 'IDBObjectStore': The tra
nsaction has finished. |
68 [Worker] | 68 [Worker] |
69 [Worker] errorTest(): | 69 [Worker] errorTest(): |
70 [Worker] self.old_onerror = self.onerror | 70 [Worker] self.old_onerror = self.onerror |
71 [Worker] self.onerror = errorHandler | 71 [Worker] self.onerror = errorHandler |
72 [Worker] | 72 [Worker] |
73 [Worker] errorHandler(): | 73 [Worker] errorHandler(): |
74 [Worker] self.onerror = self.old_onerror | 74 [Worker] self.onerror = self.old_onerror |
75 [Worker] transaction = db.transaction('store') | 75 [Worker] transaction = db.transaction('store') |
76 [Worker] store = transaction.objectStore('store') | 76 [Worker] store = transaction.objectStore('store') |
77 Got expected error from worker, ignoring | 77 Got expected error from worker, ignoring |
78 event.preventDefault() | 78 event.preventDefault() |
79 PASS [Worker] Transaction completed | 79 PASS [Worker] Transaction completed |
80 [Worker] Expecting exception from store.get(0) | 80 [Worker] Expecting exception from store.get(0) |
81 PASS [Worker] Exception was thrown. | 81 PASS [Worker] Exception was thrown. |
82 PASS [Worker] code is 0 | 82 PASS [Worker] code is 0 |
83 PASS [Worker] ename is 'TransactionInactiveError' | 83 PASS [Worker] ename is 'TransactionInactiveError' |
84 [Worker] Exception message: The transaction has finished. | 84 [Worker] Exception message: Failed to execute 'get' on 'IDBObjectStore': The tra
nsaction has finished. |
85 PASS successfullyParsed is true | 85 PASS successfullyParsed is true |
86 | 86 |
87 TEST COMPLETE | 87 TEST COMPLETE |
88 | 88 |
OLD | NEW |