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.
7 var DBNAME = 'multiEntry-crash-test';
8 var request = indexedDB.deleteDatabase(DBNAME);
9 request.onsuccess = function (e) {
10 request = indexedDB.open(DBNAME, 1);
11 request.onerror = unexpectedErrorCallback;
12 request.onblocked = unexpectedBlockedCallback;
13 request.onupgradeneeded = function (e) {
14 var db = e.target.result;
15 var store = db.createObjectStore('storeName');
16 window.index1 = store.createIndex('index1Name', 'prop1');
17 window.index2 = store.createIndex(
18 'index2Name', 'prop2', {multiEntry: true});
19 shouldBeFalse("window.index1.multiEntry");
20 shouldBeTrue("window.index2.multiEntry");