author | Jan Varga <jan.varga@gmail.com> |
Mon, 24 Oct 2016 11:18:25 +0200 | |
changeset 319158 | 525cf19ff64728acadc0c0c11e142d03388b6121 |
parent 319157 | 4f7f541d40ec6064018b95f0f5afe9189bffcb8d |
child 319159 | 22876ba02feed64fd5b52b2a43daef786ff2dfe8 |
push id | 30862 |
push user | cbook@mozilla.com |
push date | Mon, 24 Oct 2016 14:55:55 +0000 |
treeherder | mozilla-central@c845bfd0accb [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | baku |
bugs | 1272855 |
milestone | 52.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
dom/indexedDB/test/unit/test_quotaExceeded_recovery.js | file | annotate | diff | comparison | revisions |
--- a/dom/indexedDB/test/unit/test_quotaExceeded_recovery.js +++ b/dom/indexedDB/test/unit/test_quotaExceeded_recovery.js @@ -9,26 +9,29 @@ var testGenerator = testSteps(); function testSteps() { const spec = "http://foo.com"; const name = this.window ? window.location.pathname : "test_quotaExceeded_recovery"; const objectStoreName = "foo"; - // We want 8 MB database on Android and 32 MB database on other platforms. - const groupLimitMB = mozinfo.os == "android" ? 8 : 32; + const android = mozinfo.os == "android"; + + // We want 512 KB database on Android and 4 MB database on other platforms. + const groupLimitKB = android ? 512 : 4096; // The group limit is calculated as 20% of the global temporary storage limit. - const tempStorageLimitKB = groupLimitMB * 5 * 1024; + const tempStorageLimitKB = groupLimitKB * 5; - // Store in 1 MB chunks. - const dataSize = 1024 * 1024; + // We want 64 KB chunks on Android and 512 KB chunks on other platforms. + const dataSizeKB = android ? 64 : 512; + const dataSize = dataSizeKB * 1024; - const maxIter = 10; + const maxIter = 5; for (let blobs of [false, true]) { setTemporaryStorageLimit(tempStorageLimitKB); clearAllDatabases(continueToNextStepSync); yield undefined; info("Opening database");