| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../fast/js/resources/js-test-pre.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test IndexedDB cursor.update required arguments"); | 6 description("Test IndexedDB cursor.update required arguments"); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase); | 8 indexedDBTest(prepareDatabase); |
| 9 function prepareDatabase() | 9 function prepareDatabase() |
| 10 { | 10 { |
| 11 db = event.target.result; | 11 db = event.target.result; |
| 12 objectStore = evalAndLog("db.createObjectStore('autoIncrement', { autoIncrem
ent: true });"); | 12 objectStore = evalAndLog("db.createObjectStore('autoIncrement', { autoIncrem
ent: true });"); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 42 request.onsuccess = function (event) { | 42 request.onsuccess = function (event) { |
| 43 cursor = evalAndLog("cursor = event.target.result;"); | 43 cursor = evalAndLog("cursor = event.target.result;"); |
| 44 if (cursor) { | 44 if (cursor) { |
| 45 shouldThrow("cursor.update();"); | 45 shouldThrow("cursor.update();"); |
| 46 } else { | 46 } else { |
| 47 testFailed("cursor was null"); | 47 testFailed("cursor was null"); |
| 48 } | 48 } |
| 49 finishJSTest(); | 49 finishJSTest(); |
| 50 } | 50 } |
| 51 } | 51 } |
| OLD | NEW |