OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>IDBFactory.cmp() - invalid key</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com"> |
| 5 <link rel="help" href="https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.ht
ml#widl-IDBFactory-cmp-short-any-first-any-second"> |
| 6 <script src=../../../resources/testharness.js></script> |
| 7 <script src=../../../resources/testharnessreport.js></script> |
| 8 <script src=support.js></script> |
| 9 <div id=log></div> |
| 10 <script> |
| 11 test( function() { |
| 12 assert_throws(new TypeError(), function() { |
| 13 indexedDB.cmp(); |
| 14 }); |
| 15 }, "IDBFactory.cmp() - no argument"); |
| 16 |
| 17 test( function() { |
| 18 assert_throws("DataError", function() { |
| 19 indexedDB.cmp(null, null); |
| 20 }); |
| 21 assert_throws("DataError", function() { |
| 22 indexedDB.cmp(1, null); |
| 23 }); |
| 24 assert_throws("DataError", function() { |
| 25 indexedDB.cmp(null, 1); |
| 26 }); |
| 27 }, "IDBFactory.cmp() - null"); |
| 28 |
| 29 test( function() { |
| 30 assert_throws("DataError", function() { |
| 31 indexedDB.cmp(NaN, NaN); |
| 32 }); |
| 33 assert_throws("DataError", function() { |
| 34 indexedDB.cmp(1, NaN); |
| 35 }); |
| 36 assert_throws("DataError", function() { |
| 37 indexedDB.cmp(NaN, 1); |
| 38 }); |
| 39 }, "IDBFactory.cmp() - NaN"); |
| 40 </script> |
| 41 |
OLD | NEW |