1<!DOCTYPE html>
2<html>
3<head>
4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
5<script src="../../fast/js/resources/js-test-pre.js"></script>
6<script src="../../fast/js/resources/js-test-post-function.js"></script>
7<script src="resources/shared.js"></script>
8</head>
9<body>
10<p id="description"></p>
11<div id="console"></div>
12<script>
13
14description("Test IndexedDB undefined as record value");
15if (window.layoutTestController)
16 layoutTestController.waitUntilDone();
17
18function test()
19{
20 indexedDB = evalAndLog("indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB;");
21 shouldBeFalse("indexedDB == null");
22 IDBDatabaseException = evalAndLog("IDBDatabaseException = window.IDBDatabaseException || window.webkitIDBDatabaseException;");
23 shouldBeFalse("IDBDatabaseException == null");
24 IDBCursor = evalAndLog("IDBCursor = window.IDBCursor || window.webkitIDBCursor;");
25 shouldBeFalse("IDBCursor == null");
26 IDBKeyRange = evalAndLog("IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange;");
27 shouldBeFalse("IDBKeyRange == null");
28
29 evalAndExpectException("indexedDB.open();", "IDBDatabaseException.NON_TRANSIENT_ERR");
30 done();
31}
32
33var successfullyParsed = true;
34
35test();
36
37</script>
38</body>
39</html>