Revision afd169a1caa73c0870e4d30cf00de21b380fc978 authored by Ms2ger on 11 August 2015, 14:40:28 UTC, committed by Ms2ger on 11 August 2015, 14:40:28 UTC
There is no need for that.
1 parent d983498
idbdatabase_transaction4.htm
<!DOCTYPE html>
<title>IDBDatabase.transaction() - attempt to open a transaction with invalid mode </title>
<link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<script>
var db,
t = async_test(document.title, {timeout: 10000}),
open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db = e.target.result;
db.createObjectStore('test');
};
open_rq.onsuccess = function(e) {
assert_throws({ name: 'TypeError' },
function() { db.transaction('test', 'whatever'); });
t.done();
};
</script>
<div id="log"></div>
Computing file changes ...