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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-abort-multiple-metadata-revert.html

Issue 2614953003: Import wpt@eeecf3e14368d4ab5221cde688003dedeca30dba (Closed)
Patch Set: Created 3 years, 11 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 <meta charset="utf8">
2 <title>IndexedDB: aborting transactions reverts multiple operations on the same metadata</title> 3 <title>IndexedDB: aborting transactions reverts multiple operations on the same metadata</title>
3 <link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction"> 4 <link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction">
4 <link rel="author" href="pwnall@chromium.org" title="Victor Costan"> 5 <link rel="author" href="pwnall@chromium.org" title="Victor Costan">
5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
7 <script src="support-promises.js"></script> 8 <script src="support-promises.js"></script>
8 <script> 9 <script>
10 'use strict';
9 11
10 promise_test(testCase => { 12 promise_test(testCase => {
11 let store = null, index = null; 13 let store = null, index = null;
12 let migrationTransaction = null, migrationDatabase = null; 14 let migrationTransaction = null, migrationDatabase = null;
13 return createDatabase(testCase, (database, transaction) => { 15 return createDatabase(testCase, (database, transaction) => {
14 createBooksStore(testCase, database); 16 createBooksStore(testCase, database);
15 }).then(database => { 17 }).then(database => {
16 database.close(); 18 database.close();
17 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => { 19 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => {
18 store = createNotBooksStore(testCase, database); 20 store = createNotBooksStore(testCase, database);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 'created store after the transaction is aborted'); 284 'created store after the transaction is aborted');
283 assert_array_equals( 285 assert_array_equals(
284 store.indexNames, [], 286 store.indexNames, [],
285 'IDBObjectStore.indexNames should be empty after the transaction ' + 287 'IDBObjectStore.indexNames should be empty after the transaction ' +
286 'is aborted'); 288 'is aborted');
287 }); 289 });
288 }, 'Deleted indexes in created+deleted stores are still marked as deleted ' + 290 }, 'Deleted indexes in created+deleted stores are still marked as deleted ' +
289 'after their transaction aborts'); 291 'after their transaction aborts');
290 292
291 </script> 293 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698