gecko-dev/dom/tests/unit/test_xhr_init.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 строки
351 B
JavaScript
Исходник Обычный вид История

function run_test() {
var x = new XMLHttpRequest({ mozAnon: true, mozSystem: false });
Assert.ok(x.mozAnon);
Assert.ok(x.mozSystem); // Because we're system principal
x = new XMLHttpRequest({ mozAnon: true });
Assert.ok(x.mozAnon);
Assert.ok(x.mozSystem);
x = new XMLHttpRequest();
Assert.ok(!x.mozAnon);
Assert.ok(x.mozSystem);
}