Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 function callback(result) {
2 do_check_eq(result, Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT);
3 do_test_finished();
4 }
6 function run_test() {
7 do_test_pending();
9 do_check_eq(runtime.processType, Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT);
11 sendCommand("load('test_ipcshell_child.js');");
13 sendCommand("runtime.processType;", callback);
15 [ [ "C", "D" ], [ "D", "C" ], [ "\u010C", "D" ], [ "D", "\u010C" ] ].forEach(
16 function (pair) {
17 do_test_pending();
18 var cmp = pair[0].localeCompare(pair[1]);
19 sendCommand(
20 "'"+ pair[0] +"'.localeCompare('"+ pair[1] +"');",
21 function (result) {
22 do_check_eq(cmp, result);
23 do_test_finished();
24 });
25 })
26 }
27 load('test_ipcshell_child.js');