diff options
Diffstat (limited to 'LayoutTests/storage/indexeddb/index-basics.html')
-rw-r--r-- | LayoutTests/storage/indexeddb/index-basics.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LayoutTests/storage/indexeddb/index-basics.html b/LayoutTests/storage/indexeddb/index-basics.html index f7257f1..7a16c3a 100644 --- a/LayoutTests/storage/indexeddb/index-basics.html +++ b/LayoutTests/storage/indexeddb/index-basics.html @@ -219,6 +219,21 @@ function last() verifySuccessEvent(event); shouldBeTrue("event.result === null"); + try { + debug("Passing an invalid key into indexObject.get()."); + indexObject.get([]); + testFailed("No exception thrown"); + } catch (e) { + testPassed("Caught exception: " + e.toString()); + } + + try { + debug("Passing an invalid key into indexObject.getKey()."); + indexObject.getKey([]); + testFailed("No exception thrown"); + } catch (e) { + testPassed("Caught exception: " + e.toString()); + } done(); } |