Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / websql / change-version-no-crash-on-preflight-failure.html
blob6d7f9e360d90adf04725c52b15457ab1cf0d9a05
1 <html>
2 <head>
3 <script>
4 function finishTest()
6 if (window.testRunner)
7 testRunner.notifyDone();
10 function log(message)
12 document.getElementById("console").innerText += message + "\n";
15 function runTest() {
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.waitUntilDone();
21 var db = window.openDatabase("ChangeVersionFailureTest", "1", "Test the preflight step", 1024);
22 db.changeVersion("2", "3", null, function(error) {
23 log("PASS: db.changeVersion() failed as expected, and no assertions were triggered.");
24 finishTest();
25 }, function() {
26 log("FAIL: db.changeVersion() was expected to fail.");
27 finishTest();
28 });
30 </script>
31 </head>
32 <body onload="runTest();">
33 This test verifies that no assertion is triggered when changeVersion()'s preflight step fails.
34 <pre id="console"></pre>
35 </body>
36 </html>