-
Notifications
You must be signed in to change notification settings - Fork 86
Fix test cases failing with latest Dart SDK #2312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
1593c08
5cc0c36
a6ba585
82ab051
0bdb0e2
018b729
6c37017
3a4a6f1
492a4b8
ba889cd
7fc58f2
91e2eb3
1c67e90
9b890bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import 'package:dwds/src/services/chrome_proxy_service.dart'; | |
import 'package:test/test.dart'; | ||
import 'package:test_common/logging.dart'; | ||
import 'package:test_common/test_sdk_configuration.dart'; | ||
import 'package:test_common/utilities.dart'; | ||
import 'package:vm_service/vm_service.dart'; | ||
|
||
import 'fixtures/context.dart'; | ||
|
@@ -206,7 +207,16 @@ void main() { | |
final variableNames = variables.keys.toList()..sort(); | ||
expect( | ||
variableNames, | ||
['closureLocalInsideMethod', 'local', 'parameter', 'this'], | ||
[ | ||
if (dartSdkIsAtLeast( | ||
'3.3.0-242.0.dev', | ||
)) | ||
'T', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is fine to do to get things working, but we likely don't want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a TODO and opened an issue |
||
'closureLocalInsideMethod', | ||
'local', | ||
'parameter', | ||
'this', | ||
], | ||
); | ||
}); | ||
|
||
|
@@ -216,7 +226,13 @@ void main() { | |
await expectDartVariables(variables); | ||
|
||
final variableNames = variables.keys.toList()..sort(); | ||
expect(variableNames, ['this']); | ||
expect(variableNames, [ | ||
if (dartSdkIsAtLeast( | ||
'3.3.0-242.0.dev', | ||
)) | ||
'T', | ||
'this', | ||
]); | ||
}); | ||
|
||
test('variables in extension method', () async { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the known cutoff point, could we store it in a const in a shared lib?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!