Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test target-switching with the inspector.
// This test should check both fission and non-fission target switching.
const PARENT_PROCESS_URI = "about:robots";
const EXAMPLE_COM_URI =
const EXAMPLE_ORG_URI =
add_task(async function () {
const { inspector } = await openInspectorForURL(PARENT_PROCESS_URI);
const aboutRobotsNodeFront = await getNodeFront(".title-text", inspector);
ok(!!aboutRobotsNodeFront, "Can retrieve a node front from about:robots");
info("Navigate to " + EXAMPLE_COM_URI);
await navigateTo(EXAMPLE_COM_URI);
const comNodeFront = await getNodeFront("#com", inspector);
ok(!!comNodeFront, "Can retrieve a node front from example.com");
await navigateTo(EXAMPLE_ORG_URI);
const orgNodeFront = await getNodeFront("#org", inspector);
ok(!!orgNodeFront, "Can retrieve a node front from example.org");
await navigateTo(PARENT_PROCESS_URI);
const aboutRobotsNodeFront2 = await getNodeFront(".title-text", inspector);
ok(!!aboutRobotsNodeFront2, "Can retrieve a node front from about:robots");
});