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

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

Issue 10828378: Convert the indexed db pyauto tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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; 5 window.indexedDB = window.indexedDB || window.webkitIndexedDB;
6 6
7 function result(message) { 7 function result(message) {
8 var div = document.createElement('div'); 8 document.title = message;
9 div.id = "result";
10 div.innerText = message;
11 document.body.appendChild(div);
12 } 9 }
13 10
14 function unexpectedErrorCallback() 11 function unexpectedErrorCallback()
15 { 12 {
16 result('fail - unexpected error callback'); 13 result('fail - unexpected error callback');
17 } 14 }
18 15
19 function unexpectedAbortCallback() 16 function unexpectedAbortCallback()
20 { 17 {
21 result('fail - unexpected abort callback'); 18 result('fail - unexpected abort callback');
22 } 19 }
23 20
24 function unexpectedCompleteCallback() 21 function unexpectedCompleteCallback()
25 { 22 {
26 result('fail - unexpected complete callback'); 23 result('fail - unexpected complete callback');
27 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698