Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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');