JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / storage / indexeddb / database-odd-names.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script src="resources/shared.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10 <script>
11
12 description("Test IndexedDB odd value datatypes");
13 if (window.layoutTestController)
14     layoutTestController.waitUntilDone();
15
16 function test()
17 {
18     indexedDB = evalAndLog("indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB;");
19     shouldBeFalse("indexedDB == null");
20     IDBDatabaseException = evalAndLog("IDBDatabaseException = window.IDBDatabaseException || window.webkitIDBDatabaseException;");
21     shouldBeFalse("IDBDatabaseException == null");
22     IDBCursor = evalAndLog("IDBCursor = window.IDBCursor || window.webkitIDBCursor;");
23     shouldBeFalse("IDBCursor == null");
24     IDBKeyRange = evalAndLog("IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange;");
25     shouldBeFalse("IDBKeyRange == null");
26
27     testData = [{ description: 'null',               name: '\u0000' },
28                 { description: 'faihu',              name: '\ud800\udf46' },
29                 { description: 'unpaired surrogate', name: '\ud800' },
30                 { description: 'fffe',               name: '\ufffe' },
31                 { description: 'ffff',               name: '\uffff' },
32                 { description: 'line separator',     name: '\u2028' }
33     ];
34     nextToOpen = 0;
35     openNextDatabase();
36 }
37
38 function openNextDatabase()
39 {
40     debug("opening a database named " + testData[nextToOpen].description);
41     request = evalAndLog("indexedDB.open(testData[nextToOpen].name, testData[nextToOpen].description)");
42     request.onerror = unexpectedErrorCallback;
43     request.onsuccess = ++nextToOpen < testData.length ? openNextDatabase : done;
44 }
45
46
47 test();
48
49 </script>
50 </body>
51 </html>