Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbindex-rename-errors.html

Issue 2408493002: Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Added one more win7-specific baseline Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>IndexedDB: index renaming error handling</title> 2 <title>IndexedDB: index renaming error handling</title>
3 <script src='../../resources/testharness.js'></script>
4 <link rel="help" 3 <link rel="help"
5 href="https://w3c.github.io/IndexedDB/#dom-idbindex-name"> 4 href="https://w3c.github.io/IndexedDB/#dom-idbindex-name">
6 <link rel="author" href="pwnall@chromium.org" title="Victor Costan"> 5 <link rel="author" href="pwnall@chromium.org" title="Victor Costan">
7 <script src='../../resources/testharnessreport.js'></script> 6 <script src="/resources/testharness.js"></script>
8 <script src='resources/rename-common.js'></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <script src="support-promises.js"></script>
9 <script> 9 <script>
10 10
11 promise_test(testCase => { 11 promise_test(testCase => {
12 return createDatabase(testCase, (database, transaction) => { 12 return createDatabase(testCase, (database, transaction) => {
13 createBooksStore(testCase, database); 13 createBooksStore(testCase, database);
14 }).then(database => { 14 }).then(database => {
15 database.close(); 15 database.close();
16 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => { 16 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => {
17 const store = transaction.objectStore('books'); 17 const store = transaction.objectStore('books');
18 const index = store.index('by_author'); 18 const index = store.index('by_author');
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 "should not change the index's IDBObjectStore.indexNames"); 121 "should not change the index's IDBObjectStore.indexNames");
122 const index = store.index('by_author'); 122 const index = store.index('by_author');
123 return checkAuthorIndexContents( 123 return checkAuthorIndexContents(
124 testCase, index, 124 testCase, index,
125 'Committing a transaction with a failed rename attempt should ' + 125 'Committing a transaction with a failed rename attempt should ' +
126 "not change the index's contents").then(() => database.close()); 126 "not change the index's contents").then(() => database.close());
127 }); 127 });
128 }, 'IndexedDB index rename handles exceptions when stringifying names'); 128 }, 'IndexedDB index rename handles exceptions when stringifying names');
129 129
130 </script> 130 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698