Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* Any copyright is dedicated to the Public Domain.
"use strict";
/**
* Check basic newSource packet sent from server.
*/
add_task(
threadFrontTest(async ({ threadFront, debuggee }) => {
Cu.evalInSandbox(
function inc(n) {
return n + 1;
}.toString(),
debuggee
);
const sourcePacket = await waitForEvent(threadFront, "newSource");
Assert.ok(!!sourcePacket.source);
Assert.ok(!!sourcePacket.source.url.match(/test_new_source-01.js$/));
})
);