gecko/ipc/testshell/tests/test_ipcshell.js

16 lines
381 B
JavaScript
Raw Normal View History

function callback(result) {
do_check_eq(result, Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT);
2009-09-01 15:17:24 -07:00
do_test_finished();
}
function run_test() {
do_test_pending();
do_check_eq(runtime.processType, Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT);
sendCommand("load('test_ipcshell_child.js');");
sendCommand("runtime.processType;", callback);
2009-09-01 15:17:24 -07:00
}
load('test_ipcshell_child.js');