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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore-rename-abort.html

Issue 2408203002: Reland of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Expect failure sometimes for pointerevent_element_haspointercapture-manual.html since it failed on … 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: object store renaming support in aborted transactions</title> 2 <title>IndexedDB: object store renaming support in aborted transactions</title>
3 <script src='../../resources/testharness.js'></script>
4 <link rel="help" 3 <link rel="help"
5 href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-name"> 4 href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-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 const dbName = databaseName(testCase); 12 const dbName = databaseName(testCase);
13 let bookStore = null, bookStore2 = null; 13 let bookStore = null, bookStore2 = null;
14 return createDatabase(testCase, (database, transaction) => { 14 return createDatabase(testCase, (database, transaction) => {
15 createBooksStore(testCase, database); 15 createBooksStore(testCase, database);
16 }).then(database => { 16 }).then(database => {
17 database.close(); 17 database.close();
18 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => { 18 }).then(() => migrateDatabase(testCase, 2, (database, transaction) => {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 assert_array_equals( 111 assert_array_equals(
112 database.objectStoreNames, [], 112 database.objectStoreNames, [],
113 'IDBDatabase.objectStoreNames should not reflect the creation or ' + 113 'IDBDatabase.objectStoreNames should not reflect the creation or ' +
114 'the rename after the versionchange transaction is aborted'); 114 'the rename after the versionchange transaction is aborted');
115 115
116 database.close(); 116 database.close();
117 }); 117 });
118 }, 'IndexedDB object store creation and rename in an aborted transaction'); 118 }, 'IndexedDB object store creation and rename in an aborted transaction');
119 119
120 </script> 120 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698