Roll pub packages + update DAP tests (#145349)
This manually rolls pub packages and updates some calls to use updated APIs that use `Uri` instead of file paths (since macro-generated sources don't exist as files on disk).
This commit is contained in:
@@ -232,7 +232,7 @@ void main() {
|
||||
// Initialize with progress support.
|
||||
await adapter.initializeRequest(
|
||||
MockRequest(),
|
||||
InitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ),
|
||||
DartInitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ),
|
||||
(_) {},
|
||||
);
|
||||
await adapter.configurationDoneRequest(MockRequest(), null, () {});
|
||||
@@ -274,7 +274,7 @@ void main() {
|
||||
// Initialize with progress support.
|
||||
await adapter.initializeRequest(
|
||||
MockRequest(),
|
||||
InitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ),
|
||||
DartInitializeRequestArguments(adapterID: 'test', supportsProgressReporting: true, ),
|
||||
(_) {},
|
||||
);
|
||||
await adapter.configurationDoneRequest(MockRequest(), null, () {});
|
||||
@@ -665,13 +665,13 @@ void main() {
|
||||
test('dart:ui URI to file path', () async {
|
||||
expect(
|
||||
adapter.convertOrgDartlangSdkToPath(Uri.parse('org-dartlang-sdk:///flutter/lib/ui/ui.dart')),
|
||||
fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart'),
|
||||
Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart')),
|
||||
);
|
||||
});
|
||||
|
||||
test('dart:ui file path to URI', () async {
|
||||
expect(
|
||||
adapter.convertPathToOrgDartlangSdk(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart')),
|
||||
adapter.convertUriToOrgDartlangSdk(Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui', 'ui.dart'))),
|
||||
Uri.parse('org-dartlang-sdk:///flutter/lib/ui/ui.dart'),
|
||||
);
|
||||
});
|
||||
@@ -679,13 +679,13 @@ void main() {
|
||||
test('dart:core URI to file path', () async {
|
||||
expect(
|
||||
adapter.convertOrgDartlangSdkToPath(Uri.parse('org-dartlang-sdk:///third_party/dart/sdk/lib/core/core.dart')),
|
||||
fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart'),
|
||||
Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart')),
|
||||
);
|
||||
});
|
||||
|
||||
test('dart:core file path to URI', () async {
|
||||
expect(
|
||||
adapter.convertPathToOrgDartlangSdk(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart')),
|
||||
adapter.convertUriToOrgDartlangSdk(Uri.file(fs.path.join(flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'core', 'core.dart'))),
|
||||
Uri.parse('org-dartlang-sdk:///third_party/dart/sdk/lib/core/core.dart'),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user