Skip to content

Commit a1f017c

Browse files
committed
Update pattern test to account for new DDC JS variable naming
1 parent f3b2bd7 commit a1f017c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dwds/test/instances/common/patterns_inspection_common.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ void runTests({
9898

9999
expect(await getFrameVariables(frame), {
100100
'obj': matchListInstance(type: 'Object'),
101-
'a': matchPrimitiveInstance(kind: InstanceKind.kString, value: 'b'),
102-
'n': matchPrimitiveInstance(kind: InstanceKind.kDouble, value: 3.14),
101+
// Renamed to avoid shadowing variables from previous case.
102+
'a\$': matchPrimitiveInstance(kind: InstanceKind.kString, value: 'b'),
103+
'n\$':
104+
matchPrimitiveInstance(kind: InstanceKind.kDouble, value: 3.14),
103105
});
104106
});
105107
});

0 commit comments

Comments
 (0)