OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta name="timeout" content="long"> |
2 <title>IndexedDB: index renaming support</title> | 3 <title>IndexedDB: index renaming support</title> |
3 <link rel="help" | 4 <link rel="help" |
4 href="https://w3c.github.io/IndexedDB/#dom-idbindex-name"> | 5 href="https://w3c.github.io/IndexedDB/#dom-idbindex-name"> |
5 <link rel="author" href="pwnall@chromium.org" title="Victor Costan"> | 6 <link rel="author" href="pwnall@chromium.org" title="Victor Costan"> |
6 <script src="/resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
7 <script src="/resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
8 <script src="support-promises.js"></script> | 9 <script src="support-promises.js"></script> |
9 <script> | 10 <script> |
10 | 11 |
11 promise_test(testCase => { | 12 promise_test(testCase => { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 const index = store.index(name); | 290 const index = store.index(name); |
290 return checkAuthorIndexContents( | 291 return checkAuthorIndexContents( |
291 testCase, index, | 292 testCase, index, |
292 'Renaming an index should not change its contents').then( | 293 'Renaming an index should not change its contents').then( |
293 () => database.close()); | 294 () => database.close()); |
294 }); | 295 }); |
295 }, 'IndexedDB index can be renamed to "' + escapedName + '"'); | 296 }, 'IndexedDB index can be renamed to "' + escapedName + '"'); |
296 })(escapedName); | 297 })(escapedName); |
297 | 298 |
298 </script> | 299 </script> |
OLD | NEW |