Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit e217d6a

Browse files
iocalebsjasonLaster
authored andcommitted
[Frames] Refactor utility methods (#5646)
1 parent 343e364 commit e217d6a

File tree

17 files changed

+501
-455
lines changed

17 files changed

+501
-455
lines changed

src/components/SecondaryPanes/Frames/Frame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React, { Component } from "react";
77
import classNames from "classnames";
88
import Svg from "../../shared/Svg";
99

10-
import { formatDisplayName } from "../../../utils/frame";
10+
import { formatDisplayName } from "../../../utils/pause/frames";
1111
import { getFilename } from "../../../utils/source";
1212
import FrameMenu from "./FrameMenu";
1313

src/components/SecondaryPanes/Frames/Group.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
import React, { Component } from "react";
77
import classNames from "classnames";
88
import Svg from "../../shared/Svg";
9-
import { formatDisplayName, getLibraryFromUrl } from "../../../utils/frame";
9+
import {
10+
getLibraryFromUrl,
11+
formatDisplayName
12+
} from "../../../utils/pause/frames";
1013
import FrameMenu from "./FrameMenu";
1114

1215
import "./Group.css";

src/components/SecondaryPanes/Frames/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Group from "./Group";
1616
import renderWhyPaused from "./WhyPaused";
1717

1818
import actions from "../../../actions";
19-
import { collapseFrames, formatCopyName } from "../../../utils/frame";
19+
import { collapseFrames, formatCopyName } from "../../../utils/pause/frames";
2020
import { copyToTheClipboard } from "../../../utils/clipboard";
2121

2222
import {

src/components/shared/PreviewFunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React, { Component } from "react";
88

99
import { times, zip, flatten } from "lodash";
1010

11-
import { simplifyDisplayName } from "../../utils/frame";
11+
import { simplifyDisplayName } from "../../utils/pause/frames";
1212

1313
import "./PreviewFunction.css";
1414

src/selectors/getCallStackFrames.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getSourceInSources
99
} from "../reducers/sources";
1010
import { getFrames } from "../reducers/pause";
11-
import { annotateFrames } from "../utils/frame";
11+
import { annotateFrames } from "../utils/pause/frames";
1212
import { isOriginalId } from "devtools-source-map";
1313
import { get } from "lodash";
1414
import type { Frame, Source } from "../types";

src/test/mochitest/browser_dbg-stepping.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ add_task(async function test() {
2626
await stepIn(dbg);
2727
await stepIn(dbg);
2828
await stepIn(dbg);
29-
3029
await stepIn(dbg);
3130
await stepIn(dbg);
3231
await stepIn(dbg);

src/utils/frame.js

Lines changed: 0 additions & 327 deletions
This file was deleted.

0 commit comments

Comments
 (0)