https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 886f55b5a949bd22aa394d58084b1d56d182e000 authored by Frédéric Wang on 11 June 2018, 12:41:20 UTC
Regenerate WOFF2 support fonts
Tip revision: 886f55b
idbdatabase_transaction5.htm
<!DOCTYPE html>
<meta charset="utf-8">
<title>IDBDatabase.transaction() - If storeNames is an empty list, the implementation must throw a DOMException of type InvalidAccessError</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBDatabase-transaction-IDBTransaction-DOMString-sequence-DOMString--storeNames-IDBTransactionMode-mode">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<div id="log"></div>
<script>
var db,
    t = async_test(),
    open_rq = createdb(t);

open_rq.onupgradeneeded = function() {};
open_rq.onsuccess = function(e) {
    db = e.target.result;
    assert_throws('InvalidAccessError', function() { db.transaction([]); });
    t.done();
};
</script>

back to top