Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / websql / null-callbacks.html
blob729676ac4d8f2acb117fbe830df3e2e01dddb67d
1 <html>
2 <head>
3 <script>
4 function finishTest()
6 if (window.testRunner)
7 testRunner.notifyDone();
10 function runTest()
12 if (window.testRunner) {
13 testRunner.clearAllDatabases();
14 testRunner.dumpAsText();
15 testRunner.waitUntilDone();
18 try {
19 var db = openDatabase("NullCallbacks", "1.0", "Test for null callbacks.", 1);
20 db.transaction(function(tx) {
21 tx.executeSql("CREATE TABLE IF NOT EXISTS Test (Foo INT)", null);
22 tx.executeSql("INSERT INTO Test VALUES (?)", [1], null, null);
23 tx.executeSql("INSERT INTO Test VALUES (?)", [2], null);
24 tx.executeSql("INSERT INTO Test VALUES (3)", null, null, null);
25 tx.executeSql("INSERT INTO Test VALUES (?)", [4], null,
26 function(tx, error) {});
27 }, null, null);
29 db.transaction(function(tx) {
30 tx.executeSql("INSERT INTO Test VALUES (?)", [5]);
31 }, null, function() { finishTest(); });
32 } catch(err) {
33 document.getElementById("console").innerHTML = "FAIL";
34 finishTest();
38 </script>
39 </head>
41 <body onload="runTest()">
42 This test checks that 'null' can be used wherever we expect an optional callback.
43 <pre id="console">PASS</pre>
44 </body>
46 </html>