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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbdatabase-deleteObjectStore-exception-order.htm

Issue 2659513002: Upstream an assortment of IndexedDB tests to WPT. (Closed)
Patch Set: Rebased MANIFEST.json 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbdatabase-deleteObjectStore-exception-order.htm
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/idbdatabase-deleteObjectStore-exception-order.html b/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbdatabase-deleteObjectStore-exception-order.htm
similarity index 70%
rename from third_party/WebKit/LayoutTests/storage/indexeddb/idbdatabase-deleteObjectStore-exception-order.html
rename to third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbdatabase-deleteObjectStore-exception-order.htm
index b411393142dcedfde5f908113d26e87d13a76f7c..23a3e1fd7015842866491ef8d53b581796d596c8 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/idbdatabase-deleteObjectStore-exception-order.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbdatabase-deleteObjectStore-exception-order.htm
@@ -2,15 +2,15 @@
<title>IndexedDB: IDBDatabase deleteObjectStore() Exception Ordering</title>
<meta charset=utf-8>
<link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbdatabase-deleteobjectstore">
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="resources/testharness-helpers.js"></script>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="support.js"></script>
<script>
indexeddb_test(
- (t, db, req) => {
+ (t, db, txn) => {
db.createObjectStore('s');
- req.transaction.onabort = () => {
+ txn.onabort = () => {
setTimeout(t.step_func(() => {
assert_throws(
'InvalidStateError', () => { db.deleteObjectStore('s'); },
@@ -19,18 +19,17 @@ indexeddb_test(
t.done();
}), 0);
};
- req.onerror = null;
- req.transaction.abort();
+ txn.abort();
},
(t, db) => { t.assert_unreached('open should fail'); },
'IDBDatabase.deleteObjectStore exception order: ' +
- 'InvalidStateError vs. TransactionInactiveError'
+ 'InvalidStateError vs. TransactionInactiveError',
+ { upgrade_will_abort: true }
);
indexeddb_test(
- (t, db, req) => {
- req.onerror = null;
- req.transaction.abort();
+ (t, db, txn) => {
+ txn.abort();
assert_throws(
'TransactionInactiveError', () => { db.deleteObjectStore('nope'); },
'"not active" check (TransactionInactiveError) should precede ' +
@@ -39,7 +38,8 @@ indexeddb_test(
},
(t, db) => { t.assert_unreached('open should fail'); },
'IDBDatabase.deleteObjectStore exception order: ' +
- 'TransactionInactiveError vs. NotFoundError'
+ 'TransactionInactiveError vs. NotFoundError',
+ { upgrade_will_abort: true }
);
</script>

Powered by Google App Engine
This is Rietveld 408576698