mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Merge with mozilla-central
This commit is contained in:
commit
0d868b7cdf
@ -1 +1 @@
|
||||
3.7a6pre
|
||||
4.0b2pre
|
||||
|
@ -10,4 +10,4 @@
|
||||
# hardcoded milestones in the tree from these two files.
|
||||
#--------------------------------------------------------
|
||||
|
||||
1.9.3a6pre
|
||||
2.0b2pre
|
||||
|
@ -10,4 +10,4 @@
|
||||
# hardcoded milestones in the tree from these two files.
|
||||
#--------------------------------------------------------
|
||||
|
||||
1.9.3a6pre
|
||||
2.0b2pre
|
||||
|
@ -1,28 +0,0 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
// This file tests that dbs are using 32k pagesize
|
||||
|
||||
function check_size(db)
|
||||
{
|
||||
var stmt = db.createStatement("PRAGMA page_size");
|
||||
stmt.executeStep();
|
||||
const expected_block_size = 32768; // 32K
|
||||
do_check_eq(stmt.getInt32(0), expected_block_size);
|
||||
stmt.finalize();
|
||||
}
|
||||
|
||||
function new_file(name)
|
||||
{
|
||||
var file = dirSvc.get("ProfD", Ci.nsIFile);
|
||||
file.append(name + ".sqlite");
|
||||
do_check_false(file.exists());
|
||||
}
|
||||
|
||||
function run_test()
|
||||
{
|
||||
check_size(getDatabase(new_file("shared32k.sqlite")));
|
||||
check_size(getService().openUnsharedDatabase(new_file("unshared32k.sqlite")));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user