mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
13 lines
360 B
JavaScript
13 lines
360 B
JavaScript
"use strict";
|
|
|
|
let tests = [ "about:robots?foo", "about:robots#foo", "about:robots?foo#bar"];
|
|
tests.forEach(async test => {
|
|
add_task(async () => {
|
|
await BrowserTestUtils.withNewTab(test, async browser => {
|
|
await ContentTask.spawn(browser, null, () => {
|
|
is(content.document.nodePrincipal.origin, "about:robots");
|
|
});
|
|
});
|
|
});
|
|
});
|