4 Copyright 2015 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
9 <title>IDB test that a commit failing due to disk full results in a QuotaError
</title>
10 <script type=
"text/javascript" src=
"common.js"></script>
14 indexedDBTest(prepareDatabase
, startNewTransaction
);
17 function prepareDatabase() {
18 db
= event
.target
.result
;
19 objectStore
= db
.createObjectStore('store');
22 function startNewTransaction() {
23 tx
= db
.transaction('store', 'readwrite');
24 tx
.objectStore('store').put('value', 'key');
25 tx
.oncomplete
= unexpectedCompleteCallback
;
26 tx
.onabort = function() {
27 shouldBeEqualToString("tx.error.name", "QuotaExceededError");
34 <body onLoad=
"test()">
35 <div id=
"status">Starting...
</div>