Home | History | Annotate | Download | only in indexeddb

Lines Matching full:target

28     var db = evalAndLog("db = event.target.result");
38 window.trans = evalAndLog("trans = event.target.result");
83 shouldBe("event.target.source", "objectStore");
84 if (event.target.result == null) {
94 request = evalAndLog("event.target.result.update('myUpdatedValue' + counter++)");
95 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); }
102 if (event.target.result == null) {
113 shouldBeEqualToString("event.target.result.key", "myKey" + counter);
114 shouldBeEqualToString("event.target.result.value", "myUpdatedValue" + counter++);
115 evalAndLog("event.target.result.continue()");
121 if (event.target.result == null) {
131 request = evalAndLog("event.target.result.update('myUpdatedFoo' + counter++)");
132 request.onsuccess = function() { evalAndLog("event.target.source.continue()"); }
139 if (event.target.result == null) {
150 shouldBe("event.target.result.key", "counter");
151 shouldBeEqualToString("event.target.result.value", "myUpdatedFoo" + counter++);
152 evalAndLog("event.target.result.continue()");
158 if (event.target.result == null) {
168 request = evalAndLog("event.target.result.update({id: 100 + counter, number: 100 + counter})");
171 shouldBe("event.target.errorCode", "webkitIDBDatabaseException.DATA_ERR");
175 request = evalAndLog("event.target.source.update({id: counter, number: 100 + counter++})");
176 request.onsuccess = function() { evalAndLog("event.target.source.continue()") };
184 if (event.target.result == null) {
195 shouldBe("event.target.result.key", "counter");
196 shouldBe("event.target.result.value.id", "counter");
197 shouldBe("event.target.result.value.number", (counter + 100).toString());
199 evalAndLog("event.target.result.continue()");
205 if (event.target.result == null) {
210 shouldBe("event.target.result.key", "counter + 100");
211 shouldBe("event.target.result.primaryKey", "counter");
214 debug("event.target.result.update({id: counter, number: counter + 200})");
215 event.target.result.update({id: counter, number: counter + 200});
223 event.target.result.continue();