1 <html> 2 <head> 3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> 4 <script src="../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../../fast/js/resources/js-test-post-function.js"></script> 6 <script src="resources/shared.js"></script> 7 </head> 8 <body> 9 <p id="description"></p> 10 <div id="console"></div> 11 <script> 12 13 description("Test IndexedDB's constants."); 14 if (window.layoutTestController) 15 layoutTestController.waitUntilDone(); 16 17 function test() 18 { 19 shouldBe("webkitIDBDatabaseException.UNKNOWN_ERR", "1"); 20 shouldBe("webkitIDBDatabaseException.NON_TRANSIENT_ERR", "2"); 21 shouldBe("webkitIDBDatabaseException.NOT_FOUND_ERR", "3"); 22 shouldBe("webkitIDBDatabaseException.CONSTRAINT_ERR", "4"); 23 shouldBe("webkitIDBDatabaseException.DATA_ERR", "5"); 24 shouldBe("webkitIDBDatabaseException.NOT_ALLOWED_ERR", "6"); 25 shouldBe("webkitIDBDatabaseException.SERIAL_ERR", "7"); 26 shouldBe("webkitIDBDatabaseException.RECOVERABLE_ERR", "8"); 27 shouldBe("webkitIDBDatabaseException.TRANSIENT_ERR", "9"); 28 shouldBe("webkitIDBDatabaseException.TIMEOUT_ERR", "10"); 29 shouldBe("webkitIDBDatabaseException.DEADLOCK_ERR", "11"); 30 31 shouldBe("webkitIDBRequest.LOADING", "1"); 32 shouldBe("webkitIDBRequest.DONE", "2"); 33 34 shouldBe("webkitIDBCursor.NEXT", "0"); 35 shouldBe("webkitIDBCursor.NEXT_NO_DUPLICATE", "1"); 36 shouldBe("webkitIDBCursor.PREV", "2"); 37 shouldBe("webkitIDBCursor.PREV_NO_DUPLICATE", "3"); 38 39 shouldBe("webkitIDBTransaction.READ_WRITE", "0"); 40 shouldBe("webkitIDBTransaction.READ_ONLY", "1"); 41 shouldBe("webkitIDBTransaction.VERSION_CHANGE", "2"); 42 } 43 44 test(); 45 46 var successfullyParsed = true; 47 done(); 48 49 </script> 50 </body> 51 </html> 52