mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
17 lines
455 B
JavaScript
17 lines
455 B
JavaScript
function run_test()
|
|
{
|
|
Components.utils.importGlobalProperties(["XMLHttpRequest"]);
|
|
|
|
var x = new XMLHttpRequest({mozAnon: true, mozSystem: false});
|
|
do_check_true(x.mozAnon);
|
|
do_check_true(x.mozSystem); // Because we're system principal
|
|
|
|
x = new XMLHttpRequest({mozAnon: true});
|
|
do_check_true(x.mozAnon);
|
|
do_check_true(x.mozSystem);
|
|
|
|
x = new XMLHttpRequest();
|
|
do_check_false(x.mozAnon);
|
|
do_check_true(x.mozSystem);
|
|
}
|