| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>IndexedDB: IDBIndex getAll() uses [EnforceRange]</title> |
| 3 <meta charset=utf-8> |
| 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="resources/testharness-helpers.js"></script> |
| 7 <script> |
| 8 |
| 9 indexeddb_test( |
| 10 (t, db) => { |
| 11 const store = db.createObjectStore('store'); |
| 12 const index = store.createIndex('index', 'keyPath'); |
| 13 }, |
| 14 (t, db) => { |
| 15 const tx = db.transaction('store'); |
| 16 const store = tx.objectStore('store'); |
| 17 const index = store.index('index'); |
| 18 [NaN, Infinity, -Infinity, -1, -Number.MAX_SAFE_INTEGER].forEach(count => { |
| 19 assert_throws(TypeError(), () => { index.getAll(null, count); }, |
| 20 `getAll with count ${count} count should throw TypeError`); |
| 21 }); |
| 22 t.done(); |
| 23 }, |
| 24 `IDBIndex.getAll() uses [EnforceRange]` |
| 25 ); |
| 26 </script> |
| OLD | NEW |