|
Lines 25-30
transaction.objectStore('store').put({x: [7, 8, 9], y: 'a'}, 'foo')
a/LayoutTests/storage/indexeddb/index-multientry-expected.txt_sec1
|
| 25 |
Now overwrite them with what we're expecting |
25 |
Now overwrite them with what we're expecting |
| 26 |
transaction.objectStore('store').put({x: [1, 2, 3], y: 'a'}, 'foo') |
26 |
transaction.objectStore('store').put({x: [1, 2, 3], y: 'a'}, 'foo') |
| 27 |
transaction.objectStore('store').put({x: [4, 5, 6], y: 'b'}, 'bar') |
27 |
transaction.objectStore('store').put({x: [4, 5, 6], y: 'b'}, 'bar') |
|
|
28 |
transaction.objectStore('store').put({x: [7, 7, 8, 7], y: 'c'}, 'baz') |
| 29 |
transaction.objectStore('store').put({x: [null, 9, 9], y: 'd'}, 'bloop') |
| 28 |
|
30 |
|
| 29 |
Verifying index: index |
31 |
Verifying index: index |
| 30 |
transaction = db.transaction(['store'], 'readonly') |
32 |
transaction = db.transaction(['store'], 'readonly') |
|
Lines 34-64
PASS ex is non-null.
a/LayoutTests/storage/indexeddb/index-multientry-expected.txt_sec2
|
| 34 |
PASS cursor.key is 1 |
36 |
PASS cursor.key is 1 |
| 35 |
PASS cursor.primaryKey is "foo" |
37 |
PASS cursor.primaryKey is "foo" |
| 36 |
PASS cursor.value.y is "a" |
38 |
PASS cursor.value.y is "a" |
|
|
39 |
cursor.continue() |
| 37 |
cursor = event.target.result |
40 |
cursor = event.target.result |
| 38 |
PASS ex is non-null. |
41 |
PASS ex is non-null. |
| 39 |
PASS cursor.key is 2 |
42 |
PASS cursor.key is 2 |
| 40 |
PASS cursor.primaryKey is "foo" |
43 |
PASS cursor.primaryKey is "foo" |
| 41 |
PASS cursor.value.y is "a" |
44 |
PASS cursor.value.y is "a" |
|
|
45 |
cursor.continue() |
| 42 |
cursor = event.target.result |
46 |
cursor = event.target.result |
| 43 |
PASS ex is non-null. |
47 |
PASS ex is non-null. |
| 44 |
PASS cursor.key is 3 |
48 |
PASS cursor.key is 3 |
| 45 |
PASS cursor.primaryKey is "foo" |
49 |
PASS cursor.primaryKey is "foo" |
| 46 |
PASS cursor.value.y is "a" |
50 |
PASS cursor.value.y is "a" |
|
|
51 |
cursor.continue() |
| 47 |
cursor = event.target.result |
52 |
cursor = event.target.result |
| 48 |
PASS ex is non-null. |
53 |
PASS ex is non-null. |
| 49 |
PASS cursor.key is 4 |
54 |
PASS cursor.key is 4 |
| 50 |
PASS cursor.primaryKey is "bar" |
55 |
PASS cursor.primaryKey is "bar" |
| 51 |
PASS cursor.value.y is "b" |
56 |
PASS cursor.value.y is "b" |
|
|
57 |
cursor.continue() |
| 52 |
cursor = event.target.result |
58 |
cursor = event.target.result |
| 53 |
PASS ex is non-null. |
59 |
PASS ex is non-null. |
| 54 |
PASS cursor.key is 5 |
60 |
PASS cursor.key is 5 |
| 55 |
PASS cursor.primaryKey is "bar" |
61 |
PASS cursor.primaryKey is "bar" |
| 56 |
PASS cursor.value.y is "b" |
62 |
PASS cursor.value.y is "b" |
|
|
63 |
cursor.continue() |
| 57 |
cursor = event.target.result |
64 |
cursor = event.target.result |
| 58 |
PASS ex is non-null. |
65 |
PASS ex is non-null. |
| 59 |
PASS cursor.key is 6 |
66 |
PASS cursor.key is 6 |
| 60 |
PASS cursor.primaryKey is "bar" |
67 |
PASS cursor.primaryKey is "bar" |
| 61 |
PASS cursor.value.y is "b" |
68 |
PASS cursor.value.y is "b" |
|
|
69 |
cursor.continue() |
| 70 |
cursor = event.target.result |
| 71 |
PASS ex is non-null. |
| 72 |
PASS cursor.key is 7 |
| 73 |
PASS cursor.primaryKey is "baz" |
| 74 |
PASS cursor.value.y is "c" |
| 75 |
cursor.continue() |
| 76 |
cursor = event.target.result |
| 77 |
PASS ex is non-null. |
| 78 |
PASS cursor.key is 8 |
| 79 |
PASS cursor.primaryKey is "baz" |
| 80 |
PASS cursor.value.y is "c" |
| 81 |
cursor.continue() |
| 82 |
cursor = event.target.result |
| 83 |
PASS ex is non-null. |
| 84 |
PASS cursor.key is 9 |
| 85 |
PASS cursor.primaryKey is "bloop" |
| 86 |
PASS cursor.value.y is "d" |
| 87 |
cursor.continue() |
| 62 |
cursor = event.target.result |
88 |
cursor = event.target.result |
| 63 |
PASS expected.length is 0 |
89 |
PASS expected.length is 0 |
| 64 |
|
90 |
|
|
Lines 71-77
transaction.objectStore('store-unique').put({x: [1, 2, 7], y: 'a'}, 'foo')
a/LayoutTests/storage/indexeddb/index-multientry-expected.txt_sec3
|
| 71 |
success! |
97 |
success! |
| 72 |
This should fail the uniqueness constraint on the index, and fail: |
98 |
This should fail the uniqueness constraint on the index, and fail: |
| 73 |
transaction.objectStore('store-unique').put({x: [5, 2], y: 'c'}, 'should fail') |
99 |
transaction.objectStore('store-unique').put({x: [5, 2], y: 'c'}, 'should fail') |
| 74 |
Request failed, as expected |
100 |
Request failed, as expected (DataError) |
| 75 |
Transaction aborted as expected |
101 |
Transaction aborted as expected |
| 76 |
|
102 |
|
| 77 |
Create an index on a populated store |
103 |
Create an index on a populated store |
|
Lines 89-119
PASS ex is non-null.
a/LayoutTests/storage/indexeddb/index-multientry-expected.txt_sec4
|
| 89 |
PASS cursor.key is 1 |
115 |
PASS cursor.key is 1 |
| 90 |
PASS cursor.primaryKey is "foo" |
116 |
PASS cursor.primaryKey is "foo" |
| 91 |
PASS cursor.value.y is "a" |
117 |
PASS cursor.value.y is "a" |
|
|
118 |
cursor.continue() |
| 92 |
cursor = event.target.result |
119 |
cursor = event.target.result |
| 93 |
PASS ex is non-null. |
120 |
PASS ex is non-null. |
| 94 |
PASS cursor.key is 2 |
121 |
PASS cursor.key is 2 |
| 95 |
PASS cursor.primaryKey is "foo" |
122 |
PASS cursor.primaryKey is "foo" |
| 96 |
PASS cursor.value.y is "a" |
123 |
PASS cursor.value.y is "a" |
|
|
124 |
cursor.continue() |
| 97 |
cursor = event.target.result |
125 |
cursor = event.target.result |
| 98 |
PASS ex is non-null. |
126 |
PASS ex is non-null. |
| 99 |
PASS cursor.key is 3 |
127 |
PASS cursor.key is 3 |
| 100 |
PASS cursor.primaryKey is "foo" |
128 |
PASS cursor.primaryKey is "foo" |
| 101 |
PASS cursor.value.y is "a" |
129 |
PASS cursor.value.y is "a" |
|
|
130 |
cursor.continue() |
| 102 |
cursor = event.target.result |
131 |
cursor = event.target.result |
| 103 |
PASS ex is non-null. |
132 |
PASS ex is non-null. |
| 104 |
PASS cursor.key is 4 |
133 |
PASS cursor.key is 4 |
| 105 |
PASS cursor.primaryKey is "bar" |
134 |
PASS cursor.primaryKey is "bar" |
| 106 |
PASS cursor.value.y is "b" |
135 |
PASS cursor.value.y is "b" |
|
|
136 |
cursor.continue() |
| 107 |
cursor = event.target.result |
137 |
cursor = event.target.result |
| 108 |
PASS ex is non-null. |
138 |
PASS ex is non-null. |
| 109 |
PASS cursor.key is 5 |
139 |
PASS cursor.key is 5 |
| 110 |
PASS cursor.primaryKey is "bar" |
140 |
PASS cursor.primaryKey is "bar" |
| 111 |
PASS cursor.value.y is "b" |
141 |
PASS cursor.value.y is "b" |
|
|
142 |
cursor.continue() |
| 112 |
cursor = event.target.result |
143 |
cursor = event.target.result |
| 113 |
PASS ex is non-null. |
144 |
PASS ex is non-null. |
| 114 |
PASS cursor.key is 6 |
145 |
PASS cursor.key is 6 |
| 115 |
PASS cursor.primaryKey is "bar" |
146 |
PASS cursor.primaryKey is "bar" |
| 116 |
PASS cursor.value.y is "b" |
147 |
PASS cursor.value.y is "b" |
|
|
148 |
cursor.continue() |
| 149 |
cursor = event.target.result |
| 150 |
PASS ex is non-null. |
| 151 |
PASS cursor.key is 7 |
| 152 |
PASS cursor.primaryKey is "baz" |
| 153 |
PASS cursor.value.y is "c" |
| 154 |
cursor.continue() |
| 155 |
cursor = event.target.result |
| 156 |
PASS ex is non-null. |
| 157 |
PASS cursor.key is 8 |
| 158 |
PASS cursor.primaryKey is "baz" |
| 159 |
PASS cursor.value.y is "c" |
| 160 |
cursor.continue() |
| 161 |
cursor = event.target.result |
| 162 |
PASS ex is non-null. |
| 163 |
PASS cursor.key is 9 |
| 164 |
PASS cursor.primaryKey is "bloop" |
| 165 |
PASS cursor.value.y is "d" |
| 166 |
cursor.continue() |
| 117 |
cursor = event.target.result |
167 |
cursor = event.target.result |
| 118 |
PASS expected.length is 0 |
168 |
PASS expected.length is 0 |
| 119 |
PASS successfullyParsed is true |
169 |
PASS successfullyParsed is true |