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

Unified Diff: chrome/test/data/indexeddb/shared.js

Issue 10216002: Fix IDB pyauto tests on cros by preventing restore after restart (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/indexeddb/bug_90635.js ('k') | chrome/test/data/indexeddb/version_change_blocked.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/shared.js
diff --git a/chrome/test/data/indexeddb/shared.js b/chrome/test/data/indexeddb/shared.js
new file mode 100644
index 0000000000000000000000000000000000000000..815280dd4e5fadfc5903a607b7519e440d1fd441
--- /dev/null
+++ b/chrome/test/data/indexeddb/shared.js
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+window.indexedDB = window.indexedDB || window.webkitIndexedDB;
+window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;
+
+function result(message) {
+ var div = document.createElement('div');
+ div.id = "result";
+ div.innerText = message;
+ document.body.appendChild(div);
+}
+
+function unexpectedErrorCallback()
+{
+ result('fail - unexpected error callback');
+}
+
+function unexpectedAbortCallback()
+{
+ result('fail - unexpected abort callback');
+}
+
+function unexpectedCompleteCallback()
+{
+ result('fail - unexpected complete callback');
+}
« no previous file with comments | « chrome/test/data/indexeddb/bug_90635.js ('k') | chrome/test/data/indexeddb/version_change_blocked.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698