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] | 25 [Worker] |
25 [Worker] recursionTest(): | 26 [Worker] recursionTest(): |
26 [Worker] transaction = db.transaction('store') | 27 [Worker] transaction = db.transaction('store') |
27 [Worker] store = transaction.objectStore('store') | 28 [Worker] store = transaction.objectStore('store') |
28 [Worker] store.get(0) | 29 [Worker] store.get(0) |
29 PASS [Worker] transaction is active | 30 PASS [Worker] transaction is active |
30 [Worker] recursion depth: 1 | 31 [Worker] recursion depth: 1 |
31 [Worker] store.get(0) | 32 [Worker] store.get(0) |
32 PASS [Worker] transaction is still active | 33 PASS [Worker] transaction is still active |
33 [Worker] recursion depth: 2 | 34 [Worker] recursion depth: 2 |
34 [Worker] store.get(0) | 35 [Worker] store.get(0) |
35 PASS [Worker] transaction is still active | 36 PASS [Worker] transaction is still active |
36 [Worker] recursion depth: 3 | 37 [Worker] recursion depth: 3 |
37 [Worker] store.get(0) | 38 [Worker] store.get(0) |
38 PASS [Worker] transaction is still active | 39 PASS [Worker] transaction is still active |
39 [Worker] recursion depth: 3 | 40 [Worker] recursion depth: 3 |
40 [Worker] store.get(0) | 41 [Worker] store.get(0) |
41 PASS [Worker] transaction is still active | 42 PASS [Worker] transaction is still active |
42 [Worker] recursion depth: 2 | 43 [Worker] recursion depth: 2 |
43 [Worker] store.get(0) | 44 [Worker] store.get(0) |
44 PASS [Worker] transaction is still active | 45 PASS [Worker] transaction is still active |
45 [Worker] recursion depth: 1 | 46 [Worker] recursion depth: 1 |
46 [Worker] store.get(0) | 47 [Worker] store.get(0) |
47 PASS [Worker] transaction is still active | 48 PASS [Worker] transaction is still active |
48 PASS [Worker] transaction completed | 49 PASS [Worker] transaction completed |
49 [Worker] Expecting exception from store.get(0) | 50 [Worker] Expecting exception from store.get(0) |
50 PASS [Worker] Exception was thrown. | 51 PASS [Worker] Exception was thrown. |
51 PASS [Worker] code is 0 | 52 PASS [Worker] code is 0 |
52 PASS [Worker] ename is 'TransactionInactiveError' | 53 PASS [Worker] ename is 'TransactionInactiveError' |
| 54 [Worker] Exception message: The transaction has finished. |
53 [Worker] | 55 [Worker] |
54 [Worker] trying a timeout callback: | 56 [Worker] trying a timeout callback: |
55 [Worker] setTimeout(timeoutTest, 0) | 57 [Worker] setTimeout(timeoutTest, 0) |
56 [Worker] | 58 [Worker] |
57 [Worker] timeoutTest(): | 59 [Worker] timeoutTest(): |
58 [Worker] transaction = db.transaction('store') | 60 [Worker] transaction = db.transaction('store') |
59 [Worker] store = transaction.objectStore('store') | 61 [Worker] store = transaction.objectStore('store') |
60 PASS [Worker] transaction started in setTimeout() callback completed | 62 PASS [Worker] transaction started in setTimeout() callback completed |
61 [Worker] Expecting exception from store.get(0) | 63 [Worker] Expecting exception from store.get(0) |
62 PASS [Worker] Exception was thrown. | 64 PASS [Worker] Exception was thrown. |
63 PASS [Worker] code is 0 | 65 PASS [Worker] code is 0 |
64 PASS [Worker] ename is 'TransactionInactiveError' | 66 PASS [Worker] ename is 'TransactionInactiveError' |
| 67 [Worker] Exception message: The transaction has finished. |
65 [Worker] | 68 [Worker] |
66 [Worker] errorTest(): | 69 [Worker] errorTest(): |
67 [Worker] self.old_onerror = self.onerror | 70 [Worker] self.old_onerror = self.onerror |
68 [Worker] self.onerror = errorHandler | 71 [Worker] self.onerror = errorHandler |
69 [Worker] | 72 [Worker] |
70 [Worker] errorHandler(): | 73 [Worker] errorHandler(): |
71 [Worker] self.onerror = self.old_onerror | 74 [Worker] self.onerror = self.old_onerror |
72 [Worker] transaction = db.transaction('store') | 75 [Worker] transaction = db.transaction('store') |
73 [Worker] store = transaction.objectStore('store') | 76 [Worker] store = transaction.objectStore('store') |
74 Got expected error from worker, ignoring | 77 Got expected error from worker, ignoring |
75 event.preventDefault() | 78 event.preventDefault() |
76 PASS [Worker] Transaction completed | 79 PASS [Worker] Transaction completed |
77 [Worker] Expecting exception from store.get(0) | 80 [Worker] Expecting exception from store.get(0) |
78 PASS [Worker] Exception was thrown. | 81 PASS [Worker] Exception was thrown. |
79 PASS [Worker] code is 0 | 82 PASS [Worker] code is 0 |
80 PASS [Worker] ename is 'TransactionInactiveError' | 83 PASS [Worker] ename is 'TransactionInactiveError' |
| 84 [Worker] Exception message: The transaction has finished. |
81 PASS successfullyParsed is true | 85 PASS successfullyParsed is true |
82 | 86 |
83 TEST COMPLETE | 87 TEST COMPLETE |
84 | 88 |
OLD | NEW |