michael@0: function callback(result) { michael@0: do_check_eq(result, Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT); michael@0: do_test_finished(); michael@0: } michael@0: michael@0: function run_test() { michael@0: do_test_pending(); michael@0: michael@0: do_check_eq(runtime.processType, Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT); michael@0: michael@0: sendCommand("load('test_ipcshell_child.js');"); michael@0: michael@0: sendCommand("runtime.processType;", callback); michael@0: michael@0: [ [ "C", "D" ], [ "D", "C" ], [ "\u010C", "D" ], [ "D", "\u010C" ] ].forEach( michael@0: function (pair) { michael@0: do_test_pending(); michael@0: var cmp = pair[0].localeCompare(pair[1]); michael@0: sendCommand( michael@0: "'"+ pair[0] +"'.localeCompare('"+ pair[1] +"');", michael@0: function (result) { michael@0: do_check_eq(cmp, result); michael@0: do_test_finished(); michael@0: }); michael@0: }) michael@0: } michael@0: load('test_ipcshell_child.js'); michael@0: