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

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

Issue 6248011: IndexedDB: Update browser test after WebKit roll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/transaction_get_test.js
diff --git a/chrome/test/data/indexeddb/transaction_get_test.js b/chrome/test/data/indexeddb/transaction_get_test.js
index 0c5cfa8451927a127766bb20eda656cc77eee12b..74354785afa12a3d2aee234920dbb62d3b499910 100644
--- a/chrome/test/data/indexeddb/transaction_get_test.js
+++ b/chrome/test/data/indexeddb/transaction_get_test.js
@@ -16,6 +16,7 @@ function afterCommit()
function nonExistingKey()
{
+ shouldBe("event.result", "undefined");
window.setTimeout('afterCommit()', 0);
}
@@ -36,11 +37,9 @@ function startTransaction()
result.onsuccess = gotValue;
result.onerror = unexpectedErrorCallback;
- // TODO(hans): Enable this again with the new semantics after WebKit rolls.
- //var emptyResult = store.get('nonExistingKey');
- //emptyResult.onsuccess = unexpectedSuccessCallback;
- //emptyResult.onerror = nonExistingKey;
- nonExistingKey();
+ var emptyResult = store.get('nonExistingKey');
+ emptyResult.onsuccess = nonExistingKey;
+ emptyResult.onerror = unexpectedErrorCallback;
}
function populateObjectStore()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698