summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/indexeddb/open-cursor.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/indexeddb/open-cursor.html')
-rw-r--r--LayoutTests/storage/indexeddb/open-cursor.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/LayoutTests/storage/indexeddb/open-cursor.html b/LayoutTests/storage/indexeddb/open-cursor.html
index ec62f2c..815c01b 100644
--- a/LayoutTests/storage/indexeddb/open-cursor.html
+++ b/LayoutTests/storage/indexeddb/open-cursor.html
@@ -41,6 +41,14 @@ function cursorSuccess()
shouldBe("event.result.key", "'myKey'");
shouldBe("event.result.value", "'myValue'");
debug("");
+ try {
+ debug("Passing an invalid key into .continue().");
+ event.result.continue([]);
+ testFailed("No exception thrown");
+ } catch (e) {
+ testPassed("Caught exception: " + e.toString());
+ }
+ debug("");
openEmptyCursor();
}