forked from mirrors/gecko-dev
Bug 1561435 - Fix linting errors for remote/, r=standard8
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35926 --HG-- extra : source : ae886697ab13ffcff18917578627c537cdca2b6e extra : intermediate-source : 80795ef6e0c395f9cea18a4a9f813409f6844494
This commit is contained in:
parent
991b3c93c6
commit
77c95c13f4
3 changed files with 12 additions and 12 deletions
|
|
@ -54,7 +54,7 @@ add_task(async function() {
|
|||
is(
|
||||
frameId,
|
||||
frameTree.frame.id,
|
||||
"The Page.navigate's frameId is the same than " + "getFrameTree's one"
|
||||
"The Page.navigate's frameId is the same than getFrameTree's one"
|
||||
);
|
||||
|
||||
await assertNavigationEvents({ url, frameId });
|
||||
|
|
@ -124,7 +124,7 @@ async function assertNavigationEvents({ url, frameId }) {
|
|||
const frameNavigated = resolutions.get("frameNavigated");
|
||||
ok(
|
||||
!frameNavigated.frame.parentId,
|
||||
"frameNavigated is for the top level document and" + " has a null parentId"
|
||||
"frameNavigated is for the top level document and has a null parentId"
|
||||
);
|
||||
is(frameNavigated.frame.id, frameId, "frameNavigated id is the right one");
|
||||
is(
|
||||
|
|
@ -138,7 +138,7 @@ async function assertNavigationEvents({ url, frameId }) {
|
|||
is(
|
||||
navigatedWithinDocument.frameId,
|
||||
frameId,
|
||||
"navigatedWithinDocument frameId is " + "the same one"
|
||||
"navigatedWithinDocument frameId is the same one"
|
||||
);
|
||||
is(
|
||||
navigatedWithinDocument.url,
|
||||
|
|
|
|||
|
|
@ -69,18 +69,18 @@ add_task(async function testCDP() {
|
|||
is(
|
||||
frameId,
|
||||
frameTree.frame.id,
|
||||
"The Page.navigate's frameId is the same than " + "getFrameTree's one"
|
||||
"The Page.navigate's frameId is the same than getFrameTree's one"
|
||||
);
|
||||
|
||||
const frameNavigated = await onFrameNavigated;
|
||||
ok(
|
||||
!frameNavigated.frame.parentId,
|
||||
"frameNavigated is for the top level document and" + " has a null parentId"
|
||||
"frameNavigated is for the top level document and has a null parentId"
|
||||
);
|
||||
is(
|
||||
frameNavigated.frame.id,
|
||||
frameId,
|
||||
"frameNavigated id is the same than the one " + "returned by Page.navigate"
|
||||
"frameNavigated id is the same than the one returned by Page.navigate"
|
||||
);
|
||||
is(
|
||||
frameNavigated.frame.name,
|
||||
|
|
@ -90,7 +90,7 @@ add_task(async function testCDP() {
|
|||
is(
|
||||
frameNavigated.frame.url,
|
||||
url,
|
||||
"frameNavigated url is the same being given to " + "Page.navigate"
|
||||
"frameNavigated url is the same being given to Page.navigate"
|
||||
);
|
||||
|
||||
const { executionContextId } = await onExecutionContextDestroyed;
|
||||
|
|
@ -114,7 +114,7 @@ add_task(async function testCDP() {
|
|||
isnot(
|
||||
executionContextId,
|
||||
context.id,
|
||||
"The destroyed id is different from the " + "created one"
|
||||
"The destroyed id is different from the created one"
|
||||
);
|
||||
|
||||
assertReceivedEvents(
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ async function testNavigate({ Runtime, Page }, previousContext) {
|
|||
isnot(
|
||||
executionContextId,
|
||||
context.id,
|
||||
"The destroyed id is different from the " + "created one"
|
||||
"The destroyed id is different from the created one"
|
||||
);
|
||||
|
||||
return context;
|
||||
|
|
@ -173,7 +173,7 @@ async function testNavigateViaLocation({ Runtime }, previousContext) {
|
|||
isnot(
|
||||
executionContextId,
|
||||
context.id,
|
||||
"The destroyed id is different from the " + "created one"
|
||||
"The destroyed id is different from the created one"
|
||||
);
|
||||
|
||||
return context;
|
||||
|
|
@ -200,12 +200,12 @@ async function testReload({ Runtime, Page }, previousContext) {
|
|||
is(
|
||||
context.auxData.frameId,
|
||||
previousContext.auxData.frameId,
|
||||
"The execution context " + "frame id is the same one"
|
||||
"The execution context frame id is the same one"
|
||||
);
|
||||
|
||||
isnot(
|
||||
executionContextId,
|
||||
context.id,
|
||||
"The destroyed id is different from the " + "created one"
|
||||
"The destroyed id is different from the created one"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue