OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script src="resources/shared.js"></script> | 4 <script src="resources/shared.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 | 8 |
9 description("No crashes when opening and reloading with bad version numbers"); | 9 description("No crashes when opening and reloading with bad version numbers"); |
10 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 removeVendorPrefixes(); | |
14 evalAndLog("dbname = String(window.location)"); | 13 evalAndLog("dbname = String(window.location)"); |
15 | 14 |
16 try { indexedDB.open(dbname, -1); } catch (e) { } | 15 try { indexedDB.open(dbname, -1); } catch (e) { } |
17 indexedDB.open(dbname, 2); | 16 indexedDB.open(dbname, 2); |
18 try { indexedDB.open(dbname, -1); } catch (e) { } | 17 try { indexedDB.open(dbname, -1); } catch (e) { } |
19 | 18 |
20 setTimeout(function() { | 19 setTimeout(function() { |
21 if (!window.location.search) { | 20 if (!window.location.search) { |
22 window.location = window.location + "?2"; | 21 window.location = window.location + "?2"; |
23 } else { | 22 } else { |
24 finishJSTest(); | 23 finishJSTest(); |
25 } | 24 } |
26 }, 500); | 25 }, 500); |
27 } | 26 } |
28 | 27 |
29 test(); | 28 test(); |
30 | 29 |
31 </script> | 30 </script> |
32 </body> | 31 </body> |
33 </html> | 32 </html> |
OLD | NEW |