Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 function run_test()
2 {
3 do_get_profile();
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 );
12 var mc = new MultipleCallbacks(3, finish_cache2_test);
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 );
30 do_test_pending();
31 }