Index: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-abort-object-store-metadata-revert.html |
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/transaction-abort-object-store-metadata-revert.html b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-abort-object-store-metadata-revert.html |
similarity index 80% |
copy from third_party/WebKit/LayoutTests/storage/indexeddb/transaction-abort-object-store-metadata-revert.html |
copy to third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-abort-object-store-metadata-revert.html |
index 1ee7e4ef6cb42b342e0616bbe0a8630d47c75317..52982b8a36464f03a88a1555127489960869c1a6 100644 |
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/transaction-abort-object-store-metadata-revert.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/transaction-abort-object-store-metadata-revert.html |
@@ -1,10 +1,10 @@ |
<!DOCTYPE html> |
<title>IndexedDB: aborting transactions reverts object store metadata</title> |
-<script src='../../resources/testharness.js'></script> |
<link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction"> |
<link rel="author" href="pwnall@chromium.org" title="Victor Costan"> |
-<script src='../../resources/testharnessreport.js'></script> |
-<script src='resources/rename-common.js'></script> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="support-promises.js"></script> |
<script> |
promise_test(testCase => { |
@@ -185,49 +185,4 @@ promise_test(testCase => { |
}, 'Created+deleted stores are still marked as deleted after their ' + |
'transaction aborts'); |
-promise_test(testCase => { |
- let migrationTransaction = null, migrationDatabase = null; |
- return createDatabase(testCase, (database, transaction) => { |
- createBooksStore(testCase, database); |
- createNotBooksStore(testCase, database); |
- }).then(database => { |
- database.close(); |
- }).then(() => migrateDatabase(testCase, 2, (database, transaction) => { |
- migrationDatabase = database; |
- migrationTransaction = transaction; |
- |
- database.deleteObjectStore('not_books'); |
- assert_array_equals( |
- transaction.objectStoreNames, ['books'], |
- 'IDBTransaction.objectStoreNames should stop including the ' + |
- 'deleted store immediately after IDBDatabase.deleteObjectStore() ' + |
- 'returns'); |
- assert_array_equals( |
- database.objectStoreNames, ['books'], |
- 'IDBDatabase.objectStoreNames should stop including the newly ' + |
- 'created store immediately after IDBDatabase.deleteObjectStore() ' + |
- 'returns'); |
- |
- transaction.abort(); |
- assert_array_equals( |
- database.objectStoreNames, ['books', 'not_books'], |
- 'IDBDatabase.objectStoreNames should include the deleted store ' + |
- 'store immediately after IDBTransaction.abort() returns'); |
- assert_array_equals( |
- transaction.objectStoreNames, ['books', 'not_books'], |
- 'IDBTransaction.objectStoreNames should include the deleted ' + |
- 'store immediately after IDBTransaction.abort() returns'); |
- })).then(() => { |
- assert_array_equals( |
- migrationDatabase.objectStoreNames, ['books', 'not_books'], |
- 'IDBDatabase.objectStoreNames should include the previously ' + |
- 'deleted store after the transaction is aborted'); |
- assert_array_equals( |
- migrationTransaction.objectStoreNames, ['books', 'not_books'], |
- 'IDBTransaction.objectStoreNames should include the previously ' + |
- 'deleted store after the transaction is aborted'); |
- }); |
-}, 'Un-instantiated deleted stores get marked as not-deleted after the ' + |
- 'transaction aborts'); |
- |
</script> |