6 // Open for write, write
10 Ci.nsICacheStorage.OPEN_NORMALLY,
12 new OpenCallback(NEW | WAITFORWRITE, "a1m", "a1d", function (entry) {
13 // Open for read and check
14 Assert.equal(entry.dataSize, 3);
18 Ci.nsICacheStorage.OPEN_NORMALLY,
20 new OpenCallback(NORMAL, "a1m", "a1d", function (entry) {
21 // Open for rewrite (truncate), write different meta and data
22 Assert.equal(entry.dataSize, 3);
26 Ci.nsICacheStorage.OPEN_TRUNCATE,
28 new OpenCallback(NEW | WAITFORWRITE, "a2m", "a2d", function (
31 // Open for read and check
32 Assert.equal(entry.dataSize, 3);
36 Ci.nsICacheStorage.OPEN_NORMALLY,
38 new OpenCallback(NORMAL, "a2m", "a2d", function (entry) {
39 Assert.equal(entry.dataSize, 3);