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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore-rename-abort.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: object store renaming support in aborted transactions</title> 3 <title>IndexedDB: object store renaming support in aborted transactions</title>
3 <link rel="help" 4 <link rel="help"
4 href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-name"> 5 href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-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>
11 'use strict';
10 12
11 promise_test(testCase => { 13 promise_test(testCase => {
12 const dbName = databaseName(testCase); 14 const dbName = databaseName(testCase);
13 let bookStore = null, bookStore2 = null; 15 let bookStore = null, bookStore2 = null;
14 return createDatabase(testCase, (database, transaction) => { 16 return createDatabase(testCase, (database, transaction) => {
15 createBooksStore(testCase, database); 17 createBooksStore(testCase, database);
16 }).then(database => { 18 }).then(database => {
17 database.close(); 19 database.close();
18 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => { 20 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => {
19 bookStore = transaction.objectStore('books'); 21 bookStore = transaction.objectStore('books');
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 assert_array_equals( 113 assert_array_equals(
112 database.objectStoreNames, [], 114 database.objectStoreNames, [],
113 'IDBDatabase.objectStoreNames should not reflect the creation or ' + 115 'IDBDatabase.objectStoreNames should not reflect the creation or ' +
114 'the rename after the versionchange transaction is aborted'); 116 'the rename after the versionchange transaction is aborted');
115 117
116 database.close(); 118 database.close();
117 }); 119 });
118 }, 'IndexedDB object store creation and rename in an aborted transaction'); 120 }, 'IndexedDB object store creation and rename in an aborted transaction');
119 121
120 </script> 122 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698