| 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");
|
|
|