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

Unified Diff: LayoutTests/storage/indexeddb/index-basics.html

Issue 5800002: Merge 73697 - 2010-12-10 Hans Wennborg <hans@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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 | « LayoutTests/ChangeLog ('k') | LayoutTests/storage/indexeddb/index-basics-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/storage/indexeddb/index-basics.html
===================================================================
--- LayoutTests/storage/indexeddb/index-basics.html (revision 73901)
+++ LayoutTests/storage/indexeddb/index-basics.html (working copy)
@@ -49,6 +49,7 @@
window.store = evalAndLog("db.createObjectStore('storeName', null)");
window.indexObject = evalAndLog("store.createIndex('indexName', 'x')");
window.indexObject2 = evalAndLog("store.createIndex('indexName2', 'y', false)");
+ window.indexObject3 = evalAndLog("store.createIndex('zIndex', 'z', true)");
addData();
}
@@ -67,7 +68,7 @@
shouldBeTrue("'getKey' in indexObject");
shouldBeTrue("'get' in indexObject");
- result = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')");
+ result = evalAndLog("store.add({x: 'value', y: 'zzz', z: 2.72}, 'key')");
verifyResult(result);
result.onsuccess = addMore;
result.onerror = unexpectedErrorCallback;
@@ -77,7 +78,7 @@
{
verifySuccessEvent(event);
- result = evalAndLog("event.source.add({x: 'value2', y: 'zzz2'}, 'key2')");
+ result = evalAndLog("event.source.add({x: 'value2', y: 'zzz2', z: 2.71}, 'key2')");
verifyResult(result);
result.onsuccess = getData;
result.onerror = unexpectedErrorCallback;
@@ -109,6 +110,17 @@
verifySuccessEvent(event);
shouldBeEqualToString("event.result", "key");
+ result = evalAndLog("indexObject3.get(2.71)");
+ verifyResult(result);
+ result.onsuccess = getObjectData3;
+ result.onerror = unexpectedErrorCallback;
+}
+
+function getObjectData3()
+{
+ verifySuccessEvent(event);
+ shouldBeEqualToString("event.result.x", "value2");
+
result = evalAndLog("indexObject.get('value')");
verifyResult(result);
result.onsuccess = getDataFail;
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/storage/indexeddb/index-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698