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'); |
+} |