1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 window
.indexedDB
= window
.indexedDB
|| window
.webkitIndexedDB
;
9 var DBNAME
= 'multiEntry-crash-test';
10 var request
= indexedDB
.deleteDatabase(DBNAME
);
11 request
.onsuccess = function (e
) {
12 request
= indexedDB
.open(DBNAME
, 1);
13 request
.onerror
= unexpectedErrorCallback
;
14 request
.onblocked
= unexpectedBlockedCallback
;
15 request
.onupgradeneeded = function (e
) {
16 var store
= db
.createObjectStore('storeName');
17 window
.index1
= store
.createIndex('index1Name', 'prop1');
18 window
.index2
= store
.createIndex(
19 'index2Name', 'prop2', {multiEntry
: true});
20 shouldBeFalse("window.index1.multiEntry");
21 shouldBeTrue("window.index2.multiEntry");