Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / workers / storage / resources / open-database-set-empty-version-sync.js
1 var db = openDatabaseSync("OpenDatabaseSetEmptyVersionTest", "", "Test that the DB version is set to the empty string.", 1);
2
3 try {
4     var db2 = openDatabaseSync("OpenDatabaseSetEmptyVersionTest", "test", "Test that the DB version is set to the empty string.", 1);
5     postMessage("FAIL: An exception should've been thrown.");
6 } catch (err) {
7     postMessage("PASS");
8 }
9 postMessage("done");