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.advance()."); | 6 description("Test IndexedDB cursor.advance()."); |
7 | 7 |
8 var objectStoreData = [ | 8 var objectStoreData = [ |
9 { key: "237-23-7732", value: { name: "Bob", height: 60, weight: 120 } }, | 9 { key: "237-23-7732", value: { name: "Bob", height: 60, weight: 120 } }, |
10 { key: "237-23-7733", value: { name: "Ann", height: 52, weight: 110 } }, | 10 { key: "237-23-7733", value: { name: "Ann", height: 52, weight: 110 } }, |
11 { key: "237-23-7734", value: { name: "Ron", height: 73, weight: 180 } }, | 11 { key: "237-23-7734", value: { name: "Ron", height: 73, weight: 180 } }, |
12 { key: "237-23-7735", value: { name: "Sue", height: 58, weight: 130 } }, | 12 { key: "237-23-7735", value: { name: "Sue", height: 58, weight: 130 } }, |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 currentPos += 4; | 382 currentPos += 4; |
383 } else { | 383 } else { |
384 evalAndLog("cursor.advance(1)"); | 384 evalAndLog("cursor.advance(1)"); |
385 currentPos++; | 385 currentPos++; |
386 } | 386 } |
387 | 387 |
388 } | 388 } |
389 request.onsuccess = deleteSecond; | 389 request.onsuccess = deleteSecond; |
390 request.onerror = unexpectedErrorCallback; | 390 request.onerror = unexpectedErrorCallback; |
391 } | 391 } |
OLD | NEW |