Skip to content

Commit 5d1ee45

Browse files
loganfsmythjasonLaster
authored andcommitted
[parser] Test each set of fixtures across more build targets. (firefox-devtools#6707)
1 parent fad5828 commit 5d1ee45

File tree

361 files changed

+4252
-2938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+4252
-2938
lines changed

.remarkignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
src/utils/pause/mapScopes/README.md
2+
src/test/mochitest/examples/sourcemapped/README.md

src/test/mochitest/browser.ini

+194-55
Large diffs are not rendered by default.

src/test/mochitest/browser_dbg-sourcemapped-breakpoint-console.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ add_task(async function() {
4242

4343
const dbg = await initDebugger("doc-sourcemapped.html");
4444

45-
await evalInConsoleAtPoint(dbg, "webpack3-babel6", "babel-eval-maps", { line: 14, column: 4 }, [
45+
await evalInConsoleAtPoint(dbg, "webpack3-babel6", "eval-maps", { line: 14, column: 4 }, [
4646
"one === 1",
4747
"two === 4",
4848
"three === 5"
@@ -51,8 +51,8 @@ add_task(async function() {
5151
await evalInConsoleAtPoint(
5252
dbg,
5353
"webpack3-babel6",
54-
"babel-modules-cjs",
55-
{ line: 20, column: 2 },
54+
"esmodules-cjs",
55+
{ line: 18, column: 2 },
5656
[
5757
`aDefault === "a-default"`,
5858
`anAliased === "an-original"`,
@@ -69,7 +69,7 @@ add_task(async function() {
6969
await evalInConsoleAtPoint(
7070
dbg,
7171
"webpack3-babel6",
72-
"babel-shadowed-vars",
72+
"shadowed-vars",
7373
{ line: 18, column: 6 },
7474
[`aVar === "var3"`, `aLet === "let3"`, `aConst === "const3"`]
7575
);

src/test/mochitest/browser_dbg-sourcemapped-preview.js

+12-18
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function breakpointPreviews(dbg, target, fixture, { line, column }, previe
2424
}
2525

2626
function testForOf(dbg) {
27-
return breakpointPreviews(dbg, "webpack3-babel6", "babel-for-of", { line: 5, column: 4 }, [
27+
return breakpointPreviews(dbg, "webpack3-babel6", "for-of", { line: 5, column: 4 }, [
2828
{
2929
line: 5,
3030
column: 7,
@@ -50,7 +50,7 @@ function testShadowing(dbg) {
5050
return breakpointPreviews(
5151
dbg,
5252
"webpack3-babel6",
53-
"babel-shadowed-vars",
53+
"shadowed-vars",
5454
{ line: 18, column: 6 },
5555
[
5656
// These aren't what the user would expect, but we test them anyway since
@@ -118,66 +118,60 @@ function testShadowing(dbg) {
118118
}
119119

120120
function testImportedBindings(dbg) {
121-
return breakpointPreviews(dbg, "webpack3-babel6", "babel-modules-cjs", { line: 20, column: 2 }, [
121+
return breakpointPreviews(dbg, "webpack3-babel6", "esmodules-cjs", { line: 20, column: 2 }, [
122122
{
123-
line: 22,
123+
line: 20,
124124
column: 16,
125125
expression: "_mod2.default;",
126126
result: '"a-default"'
127127
},
128128
{
129-
line: 23,
129+
line: 21,
130130
column: 16,
131131
expression: "_mod4.original;",
132132
result: '"an-original"'
133133
},
134134
{
135-
line: 24,
135+
line: 22,
136136
column: 16,
137137
expression: "_mod3.aNamed;",
138138
result: '"a-named"'
139139
},
140140
{
141-
line: 25,
141+
line: 23,
142142
column: 16,
143143
expression: "_mod3.aNamed;",
144144
result: '"a-named"'
145145
},
146146
{
147-
line: 26,
147+
line: 24,
148148
column: 16,
149149
expression: "aNamespace;",
150150
fields: [["aNamed", "a-named"], ["default", "a-default"]]
151151
},
152152
{
153-
line: 31,
153+
line: 29,
154154
column: 20,
155155
expression: "_mod7.default;",
156156
result: '"a-default2"'
157157
},
158158
{
159-
line: 32,
159+
line: 30,
160160
column: 20,
161161
expression: "_mod9.original;",
162162
result: '"an-original2"'
163163
},
164164
{
165-
line: 33,
165+
line: 31,
166166
column: 20,
167167
expression: "_mod8.aNamed2;",
168168
result: '"a-named2"'
169169
},
170170
{
171-
line: 34,
171+
line: 32,
172172
column: 20,
173173
expression: "_mod8.aNamed2;",
174174
result: '"a-named2"'
175-
},
176-
{
177-
line: 35,
178-
column: 20,
179-
expression: "aNamespace2;",
180-
fields: [["aNamed", "a-named2"], ["default", "a-default2"]]
181175
}
182176
]);
183177
}

0 commit comments

Comments
 (0)