Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: content/test/data/indexeddb/bug_109187.js

Issue 401893002: IndexedDB: Stop using webkit-prefixed versions of APIs in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More webkitIndexedDB foo and update webkitErrorMessage use too Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/data/indexeddb/bug_106883.js ('k') | content/test/data/indexeddb/bug_84933.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 window.indexedDB = window.indexedDB || window.webkitIndexedDB;
6
7 function test() { 5 function test() {
8 6
9 var DBNAME = 'multiEntry-crash-test'; 7 var DBNAME = 'multiEntry-crash-test';
10 var request = indexedDB.deleteDatabase(DBNAME); 8 var request = indexedDB.deleteDatabase(DBNAME);
11 request.onsuccess = function (e) { 9 request.onsuccess = function (e) {
12 request = indexedDB.open(DBNAME, 1); 10 request = indexedDB.open(DBNAME, 1);
13 request.onerror = unexpectedErrorCallback; 11 request.onerror = unexpectedErrorCallback;
14 request.onblocked = unexpectedBlockedCallback; 12 request.onblocked = unexpectedBlockedCallback;
15 request.onupgradeneeded = function (e) { 13 request.onupgradeneeded = function (e) {
16 var store = db.createObjectStore('storeName'); 14 var store = db.createObjectStore('storeName');
17 window.index1 = store.createIndex('index1Name', 'prop1'); 15 window.index1 = store.createIndex('index1Name', 'prop1');
18 window.index2 = store.createIndex( 16 window.index2 = store.createIndex(
19 'index2Name', 'prop2', {multiEntry: true}); 17 'index2Name', 'prop2', {multiEntry: true});
20 shouldBeFalse("window.index1.multiEntry"); 18 shouldBeFalse("window.index1.multiEntry");
21 shouldBeTrue("window.index2.multiEntry"); 19 shouldBeTrue("window.index2.multiEntry");
22 done(); 20 done();
23 }; 21 };
24 }; 22 };
25 } 23 }
OLDNEW
« no previous file with comments | « content/test/data/indexeddb/bug_106883.js ('k') | content/test/data/indexeddb/bug_84933.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698