Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / websql / open-database-set-empty-version.html
blobae2099fb1b5651d5d7de25b92e5f18ec7ab0f4b6
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.clearAllDatabases();
10 try {
11 var db = openDatabase('28417Test', '', 'Test for bug 28417: openDatabase() with empty version sets db version up incorrectly', 0);
12 // The next openDatabase call should fail because the database version was set to '' by the call above, and now we are expecting a different version.
13 var db2 = openDatabase('28417Test', 'test', 'Test for bug 28417: openDatabase() with empty version sets db version up incorrectly', 0);
14 } catch (e) {
15 document.getElementById('result').innerHTML = 'SUCCESS, an exception was thrown. ' + e;
18 </script>
19 </head>
20 <body onload="runTest()">
21 <div>This tests that calling openDatabase with an empty version string sets the current version of that database to the empty string and subsequent attempts to open the database with a different expected version throw an exception.</div>
22 <div id="result">
23 FAILURE - an exception was expected.
24 </div>
25 </body>
26 </html>