| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test IndexedDB odd value datatypes"); | 6 description("Test IndexedDB odd value datatypes"); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | |
| 11 | |
| 12 testData = [{ description: 'empty string', name: '' }, | 10 testData = [{ description: 'empty string', name: '' }, |
| 13 { description: 'null', name: '\u0000' }, | 11 { description: 'null', name: '\u0000' }, |
| 14 { description: 'faihu', name: '\ud800\udf46' }, | 12 { description: 'faihu', name: '\ud800\udf46' }, |
| 15 { description: 'unpaired surrogate', name: '\ud800' }, | 13 { description: 'unpaired surrogate', name: '\ud800' }, |
| 16 { description: 'fffe', name: '\ufffe' }, | 14 { description: 'fffe', name: '\ufffe' }, |
| 17 { description: 'ffff', name: '\uffff' }, | 15 { description: 'ffff', name: '\uffff' }, |
| 18 { description: 'line separator', name: '\u2028' } | 16 { description: 'line separator', name: '\u2028' } |
| 19 ]; | 17 ]; |
| 20 nextToOpen = 0; | 18 nextToOpen = 0; |
| 21 var numDeleted = 0; | 19 var numDeleted = 0; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 shouldBe("cursor.value", "testData[nextToOpen].name"); | 88 shouldBe("cursor.value", "testData[nextToOpen].name"); |
| 91 if (++nextToOpen < testData.length) { | 89 if (++nextToOpen < testData.length) { |
| 92 debug(""); | 90 debug(""); |
| 93 verifyNextDatabase(); | 91 verifyNextDatabase(); |
| 94 } else { | 92 } else { |
| 95 finishJSTest(); | 93 finishJSTest(); |
| 96 } | 94 } |
| 97 } | 95 } |
| 98 | 96 |
| 99 test(); | 97 test(); |
| OLD | NEW |