https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 70331b364df34875ab5711520e24759a140b9eb3 authored by Ms2ger on 13 March 2018, 16:12:19 UTC
Add tests for transferring ImageBitmap objects.
Tip revision: 70331b3
idbtransaction-objectStore-finished.html
<!doctype html>
<meta charset=utf-8>
<title>IndexedDB: IDBTransaction objectStore() when transaction is finished</title>
<link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbtransaction-objectstore">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<script>

indexeddb_test(
  (t, db) => {
    db.createObjectStore('store');
  },
  (t, db) => {
    const tx = db.transaction('store');
    tx.abort();
    assert_throws('InvalidStateError', () => tx.objectStore('store'),
                  'objectStore() should throw if transaction is finished');
    t.done();
  },
  'IDBTransaction objectStore() behavior when transaction is finished'
);

</script>
back to top