| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IDBFactory.open() - errors in version argument</title> | 2 <title>IDBFactory.open() - errors in version argument</title> |
| 3 <script src=../../../resources/testharness.js></script> | 3 <script src=/resources/testharness.js></script> |
| 4 <script src=../../../resources/testharnessreport.js></script> | 4 <script src=/resources/testharnessreport.js></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 function should_throw(val, name) { | 7 function should_throw(val, name) { |
| 8 if (!name) { | 8 if (!name) { |
| 9 name = ((typeof val == "object" && val) ? "object" : format_value(val)) | 9 name = ((typeof val == "object" && val) ? "object" : format_value(val)) |
| 10 } | 10 } |
| 11 test(function() { | 11 test(function() { |
| 12 assert_throws(new TypeError(), function() { | 12 assert_throws(new TypeError(), function() { |
| 13 window.indexedDB.open('test', val); | 13 window.indexedDB.open('test', val); |
| 14 }); | 14 }); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 }, "Calling open() with version argument " + name + " should not throw.") | 62 }, "Calling open() with version argument " + name + " should not throw.") |
| 63 } | 63 } |
| 64 | 64 |
| 65 should_work(1.5, 1) | 65 should_work(1.5, 1) |
| 66 should_work(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) // 0x200000000000
00 - 1 | 66 should_work(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) // 0x200000000000
00 - 1 |
| 67 should_work(undefined, 1) | 67 should_work(undefined, 1) |
| 68 | 68 |
| 69 </script> | 69 </script> |
| 70 | 70 |
| 71 <div id=log></div> | 71 <div id=log></div> |
| OLD | NEW |