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("Check that transactions in different databases can run in parallel.
"); | 6 description("Check that transactions in different databases can run in parallel.
"); |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 removeVendorPrefixes(); | |
11 setDBNameFromPath(); | 10 setDBNameFromPath(); |
12 evalAndLog("dbname1 = dbname + '1'"); | 11 evalAndLog("dbname1 = dbname + '1'"); |
13 evalAndLog("dbname2 = dbname + '2'"); | 12 evalAndLog("dbname2 = dbname + '2'"); |
14 | 13 |
15 deleteDatabase1(); | 14 deleteDatabase1(); |
16 } | 15 } |
17 | 16 |
18 function deleteDatabase1() | 17 function deleteDatabase1() |
19 { | 18 { |
20 preamble(); | 19 preamble(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 123 |
125 shouldBeTrue("transaction1PutSuccess"); | 124 shouldBeTrue("transaction1PutSuccess"); |
126 shouldBeTrue("transaction2PutSuccess"); | 125 shouldBeTrue("transaction2PutSuccess"); |
127 | 126 |
128 evalAndLog("db1.close()"); | 127 evalAndLog("db1.close()"); |
129 evalAndLog("db2.close()"); | 128 evalAndLog("db2.close()"); |
130 finishJSTest(); | 129 finishJSTest(); |
131 } | 130 } |
132 | 131 |
133 test(); | 132 test(); |
OLD | NEW |