4 Copyright 2013 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>IndexedDB shutdown test
</title>
10 <script type=
"text/javascript" src=
"common.js"></script>
14 debug('Populating object store');
15 var db
= event
.target
.result
;
16 var store
= db
.createObjectStore('store');
17 for (var i
= 0; i
< 100; ++i
) {
18 store
.put({id
: i
, rand
: Math
.random()}, i
);
20 // Ensure there is work being done by the back end...
21 for (var j
= 0; j
< 10; ++j
) {
22 store
.createIndex('idx' + j
, 'rand');
24 // And complete the test, which will exercise IDB vs. V8 shutdown order.
29 indexedDBTest(populate
);
33 <body onLoad=
"test()">
34 <div id=
"status">Starting...
</div>