• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<script>
4function runTest() {
5    if (window.layoutTestController)
6        layoutTestController.dumpAsText();
7
8    try {
9        var db = openDatabase('5562470Test', '', 'Test for <rdar://problem/5562470> openDatabase does not work when the version string is empty', 1);
10    } catch (e) {
11        document.getElementById('result').innerHTML = 'FAILURE'
12    }
13}
14</script>
15</head>
16<body onload="runTest()">
17<div>This tests that calling openDatabase with an empty version string does not cause an exception to be thrown.
18<div id="result">
19SUCCESS! Did not throw an exception.
20</div>
21</body>
22</html>
23