Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / websql / change-version-handle-reuse.js
blobeec7776b9353b5cbad2f6e93f550ce57295a9dff
1 function finishTest()
3 log("TEST COMPLETE.");
5 if (window.testRunner)
6 testRunner.notifyDone();
9 function runTest()
11 try {
12 db = openDatabaseWithSuffix("ChangeVersion", "", "Test that changing a database version doesn't kill our handle to it", 1);
13 var version = db.version;
14 var newVersion = version ? (parseInt(version) + 1).toString() : "1";
15 db.changeVersion(version, newVersion, function(tx) {
16 log("changeVersion: transaction callback");
17 }, function(error) {
18 log("changeVersion: error callback: " + error.message);
19 }, function() {
20 log("changeVersion: success callback");
21 runTest2();
22 });
24 } catch (e) {
25 log("changeVersion exception: " + e);
26 finishTest();
30 function runTest2()
32 try {
33 db.transaction(function(tx) {
34 tx.executeSql("SELECT * from FooBar", [], function(tx) {
35 log("transaction: statement callback");
36 finishTest();
37 }, function(tx, error) {
38 log("transaction: statement error callback: " + error.message);
39 finishTest();
40 });
41 });
42 } catch (e) {
43 log("transaction exception: " + e);
44 finishTest();