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

Unified Diff: chrome/test/data/indexeddb/bug_90635.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.html ('k') | chrome/test/data/indexeddb/shared.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/bug_90635.js
diff --git a/chrome/test/data/indexeddb/bug_90635.js b/chrome/test/data/indexeddb/bug_90635.js
index e52254d70a83ce3773fb84bddb5726c7a48d5c86..48cbc299c196a94c20078b9d3e98d266bdf479e7 100644
--- a/chrome/test/data/indexeddb/bug_90635.js
+++ b/chrome/test/data/indexeddb/bug_90635.js
@@ -1,19 +1,7 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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 unexpectedErrorCallback()
-{
- document.title = 'fail - unexpected error callback';
-}
-function unexpectedAbortCallback()
-{
- document.title = 'fail - unexpected abort callback';
-}
-
function test()
{
if (document.location.hash === '#part1') {
@@ -21,7 +9,7 @@ function test()
} else if (document.location.hash === '#part2') {
testPart2();
} else {
- document.title = 'fail - no hash';
+ result('fail - unexpected hash');
}
}
@@ -72,8 +60,8 @@ function test_store(db, msg) {
if (store1.keyPath !== null ||
store2.keyPath !== '' ||
store3.keyPath !== 'some_path') {
- document.title = 'fail - ' + msg;
+ result('fail - ' + msg);
} else {
- document.title = 'pass - ' + msg;
+ result('pass - ' + msg);
}
}
« no previous file with comments | « chrome/test/data/indexeddb/bug_90635.html ('k') | chrome/test/data/indexeddb/shared.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698