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 key comparison using IDBFactory.cmp()."); | 6 description("Test IndexedDB key comparison using IDBFactory.cmp()."); |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 removeVendorPrefixes(); | |
11 | |
12 shouldBeEqualToString("typeof indexedDB.cmp", "function"); | 10 shouldBeEqualToString("typeof indexedDB.cmp", "function"); |
13 | 11 |
14 testValidKeys(); | 12 testValidKeys(); |
15 testInvalidKeys(); | 13 testInvalidKeys(); |
16 testIdenticalKeys(); | 14 testIdenticalKeys(); |
17 finishJSTest(); | 15 finishJSTest(); |
18 } | 16 } |
19 | 17 |
20 function testValidKeys() | 18 function testValidKeys() |
21 { | 19 { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 148 |
151 function testIdenticalKeys() | 149 function testIdenticalKeys() |
152 { | 150 { |
153 debug(""); | 151 debug(""); |
154 debug("compare identical keys"); | 152 debug("compare identical keys"); |
155 | 153 |
156 shouldBe("indexedDB.cmp(0, -0)", "0"); | 154 shouldBe("indexedDB.cmp(0, -0)", "0"); |
157 } | 155 } |
158 | 156 |
159 test(); | 157 test(); |
OLD | NEW |