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

Unified Diff: LayoutTests/storage/indexeddb/resources/keypath-arrays.js

Issue 1184503003: IndexedDB: Array-type keypaths should not be returned as DOMStringLists (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
Index: LayoutTests/storage/indexeddb/resources/keypath-arrays.js
diff --git a/LayoutTests/storage/indexeddb/resources/keypath-arrays.js b/LayoutTests/storage/indexeddb/resources/keypath-arrays.js
index 7ddca64975538db326256294d1dc6b1490ccc8f3..fb623b9f218ee0c0cbe526900900eec0c538099c 100644
--- a/LayoutTests/storage/indexeddb/resources/keypath-arrays.js
+++ b/LayoutTests/storage/indexeddb/resources/keypath-arrays.js
@@ -11,7 +11,10 @@ function prepareDatabase()
db = event.target.result;
event.target.transaction.onabort = unexpectedAbortCallback;
evalAndLog("store = db.createObjectStore('store', {keyPath: ['a', 'b']})");
- evalAndLog("store.createIndex('index', ['c', 'd'])");
+ evalAndLog("index = store.createIndex('index', ['c', 'd'])");
+
+ shouldBeTrue("areArraysEqual(index.keyPath, ['c', 'd'])");
+ shouldBeFalse("index.keyPath instanceof DOMStringList");
evalAndExpectException("db.createObjectStore('store-with-generator', {keyPath: ['a', 'b'], autoIncrement: true})", "DOMException.INVALID_ACCESS_ERR");
evalAndExpectException("store.createIndex('index-multientry', ['e', 'f'], {multiEntry: true})", "DOMException.INVALID_ACCESS_ERR");
« no previous file with comments | « LayoutTests/storage/indexeddb/keypath-arrays-expected.txt ('k') | Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698