diff options
Diffstat (limited to 'LayoutTests/storage/open-database-empty-version.html')
-rw-r--r-- | LayoutTests/storage/open-database-empty-version.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/LayoutTests/storage/open-database-empty-version.html b/LayoutTests/storage/open-database-empty-version.html new file mode 100644 index 0000000..4604113 --- /dev/null +++ b/LayoutTests/storage/open-database-empty-version.html @@ -0,0 +1,22 @@ +<html> +<head> +<script> +function runTest() { + if (window.layoutTestController) + layoutTestController.dumpAsText(); + + try { + var db = openDatabase('5562470Test', '', 'Test for <rdar://problem/5562470> openDatabase does not work when the version string is empty', 1); + } catch (e) { + document.getElementById('result').innerHTML = 'FAILURE' + } +} +</script> +</head> +<body onload="runTest()"> +<div>This tests that calling openDatabase with an empty version string does not cause an exception to be thrown. +<div id="result"> +SUCCESS! Did not throw an exception. +</div> +</body> +</html> |