summaryrefslogtreecommitdiffstats
path: root/LayoutTests
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-22 12:42:07 +0100
committerBen Murdoch <benm@google.com>2010-10-22 12:42:07 +0100
commit47576fc759b81fe0b6571fcb3a7910bd304db739 (patch)
tree833086b6f9f5a261c168e904112e508a9aededda /LayoutTests
parent56a57a8bff5338117412c4fbf1e6280e9a0c34ba (diff)
downloadexternal_webkit-47576fc759b81fe0b6571fcb3a7910bd304db739.zip
external_webkit-47576fc759b81fe0b6571fcb3a7910bd304db739.tar.gz
external_webkit-47576fc759b81fe0b6571fcb3a7910bd304db739.tar.bz2
Add missing indexedDB tests at r68651.
These were missed in the merge to r67178 and are needed for the next merge to r70157. Change-Id: Ic76e75ffe5ed40e83534cee470ca10c9718aba8b
Diffstat (limited to 'LayoutTests')
-rw-r--r--LayoutTests/storage/indexeddb/constants-expected.txt35
-rw-r--r--LayoutTests/storage/indexeddb/constants.html58
2 files changed, 93 insertions, 0 deletions
diff --git a/LayoutTests/storage/indexeddb/constants-expected.txt b/LayoutTests/storage/indexeddb/constants-expected.txt
new file mode 100644
index 0000000..ff47655
--- /dev/null
+++ b/LayoutTests/storage/indexeddb/constants-expected.txt
@@ -0,0 +1,35 @@
+Test IndexedDB's constants.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS IDBKeyRange.SINGLE is 0
+PASS IDBKeyRange.LEFT_OPEN is 1
+PASS IDBKeyRange.RIGHT_OPEN is 2
+PASS IDBKeyRange.LEFT_BOUND is 4
+PASS IDBKeyRange.RIGHT_BOUND is 8
+PASS IDBDatabaseException.UNKNOWN_ERR is 0
+PASS IDBDatabaseException.NON_TRANSIENT_ERR is 1
+PASS IDBDatabaseException.NOT_FOUND_ERR is 2
+PASS IDBDatabaseException.CONSTRAINT_ERR is 3
+PASS IDBDatabaseException.DATA_ERR is 4
+PASS IDBDatabaseException.NOT_ALLOWED_ERR is 5
+PASS IDBDatabaseException.SERIAL_ERR is 11
+PASS IDBDatabaseException.RECOVERABLE_ERR is 21
+PASS IDBDatabaseException.TRANSIENT_ERR is 31
+PASS IDBDatabaseException.TIMEOUT_ERR is 32
+PASS IDBDatabaseException.DEADLOCK_ERR is 33
+PASS IDBRequest.LOADING is 1
+PASS IDBRequest.DONE is 2
+PASS IDBCursor.NEXT is 0
+PASS IDBCursor.NEXT_NO_DUPLICATE is 1
+PASS IDBCursor.PREV is 2
+PASS IDBCursor.PREV_NO_DUPLICATE is 3
+PASS IDBTransaction.READ_WRITE is 0
+PASS IDBTransaction.READ_ONLY is 1
+PASS IDBTransaction.SNAPSHOT_READ is 2
+PASS IDBTransaction.VERSION_CHANGE is 3
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/storage/indexeddb/constants.html b/LayoutTests/storage/indexeddb/constants.html
new file mode 100644
index 0000000..dd24917
--- /dev/null
+++ b/LayoutTests/storage/indexeddb/constants.html
@@ -0,0 +1,58 @@
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../fast/js/resources/js-test-post-function.js"></script>
+<script src="resources/shared.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+
+description("Test IndexedDB's constants.");
+if (window.layoutTestController)
+ layoutTestController.waitUntilDone();
+
+function test()
+{
+ shouldBe("IDBKeyRange.SINGLE", "0");
+ shouldBe("IDBKeyRange.LEFT_OPEN", "1");
+ shouldBe("IDBKeyRange.RIGHT_OPEN", "2");
+ shouldBe("IDBKeyRange.LEFT_BOUND", "4");
+ shouldBe("IDBKeyRange.RIGHT_BOUND", "8");
+
+ shouldBe("IDBDatabaseException.UNKNOWN_ERR", "0");
+ shouldBe("IDBDatabaseException.NON_TRANSIENT_ERR", "1");
+ shouldBe("IDBDatabaseException.NOT_FOUND_ERR", "2");
+ shouldBe("IDBDatabaseException.CONSTRAINT_ERR", "3");
+ shouldBe("IDBDatabaseException.DATA_ERR", "4");
+ shouldBe("IDBDatabaseException.NOT_ALLOWED_ERR", "5");
+ shouldBe("IDBDatabaseException.SERIAL_ERR", "11");
+ shouldBe("IDBDatabaseException.RECOVERABLE_ERR", "21");
+ shouldBe("IDBDatabaseException.TRANSIENT_ERR", "31");
+ shouldBe("IDBDatabaseException.TIMEOUT_ERR", "32");
+ shouldBe("IDBDatabaseException.DEADLOCK_ERR", "33");
+
+ shouldBe("IDBRequest.LOADING", "1");
+ shouldBe("IDBRequest.DONE", "2");
+
+ shouldBe("IDBCursor.NEXT", "0");
+ shouldBe("IDBCursor.NEXT_NO_DUPLICATE", "1");
+ shouldBe("IDBCursor.PREV", "2");
+ shouldBe("IDBCursor.PREV_NO_DUPLICATE", "3");
+
+ shouldBe("IDBTransaction.READ_WRITE", "0");
+ shouldBe("IDBTransaction.READ_ONLY", "1");
+ shouldBe("IDBTransaction.SNAPSHOT_READ", "2");
+ shouldBe("IDBTransaction.VERSION_CHANGE", "3");
+}
+
+test();
+
+var successfullyParsed = true;
+done();
+
+</script>
+</body>
+</html>