|
1 function run_test() |
|
2 { |
|
3 do_get_profile(); |
|
4 |
|
5 asyncOpenCacheEntry("http://x/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null, |
|
6 new OpenCallback(NEW, "x1m", "x1d", function(entry) { |
|
7 // nothing to do here, we expect concurent callbacks to get |
|
8 // all notified, then the test finishes |
|
9 }) |
|
10 ); |
|
11 |
|
12 var mc = new MultipleCallbacks(3, finish_cache2_test); |
|
13 |
|
14 asyncOpenCacheEntry("http://x/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null, |
|
15 new OpenCallback(NORMAL, "x1m", "x1d", function(entry) { |
|
16 mc.fired(); |
|
17 }) |
|
18 ); |
|
19 asyncOpenCacheEntry("http://x/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null, |
|
20 new OpenCallback(NORMAL, "x1m", "x1d", function(entry) { |
|
21 mc.fired(); |
|
22 }) |
|
23 ); |
|
24 asyncOpenCacheEntry("http://x/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null, |
|
25 new OpenCallback(NORMAL, "x1m", "x1d", function(entry) { |
|
26 mc.fired(); |
|
27 }) |
|
28 ); |
|
29 |
|
30 do_test_pending(); |
|
31 } |