michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // Tests sqlite_sta1 table exists, it should be created by analyze. michael@0: // Since the bookmark roots are created when the DB is created (bug 704855), michael@0: // the table will contain data. michael@0: michael@0: function run_test() { michael@0: do_test_pending(); michael@0: michael@0: let stmt = DBConn().createAsyncStatement( michael@0: "SELECT ROWID FROM sqlite_stat1" michael@0: ); michael@0: stmt.executeAsync({ michael@0: _gotResult: false, michael@0: handleResult: function(aResultSet) { michael@0: this._gotResult = true; michael@0: }, michael@0: handleError: function(aError) { michael@0: do_throw("Unexpected error (" + aError.result + "): " + aError.message); michael@0: }, michael@0: handleCompletion: function(aReason) { michael@0: do_check_true(this._gotResult); michael@0: do_test_finished(); michael@0: } michael@0: }); michael@0: stmt.finalize(); michael@0: }