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

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

Issue 18660012: IndexedDB: Test for "close" event when connection is force-closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More context simplification Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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.
4
5 function test() {
6 indexedDBTest(onUpgradeNeeded, onOpenSuccess);
7 }
8
9 function onUpgradeNeeded(e) {
10 }
11
12 function onOpenSuccess(e) {
13 // Don't let GC claim the connection
14 window.db = e.target.result;
15 window.db.onclose = onDatabaseClose;
16 document.title = 'connection ready';
17 }
18
19 function onDatabaseClose(e)
20 {
21 document.title = 'connection closed';
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698