25f0d80c15
Fixes https://github.com/dart-lang/sdk/issues/62234 by making the 'dart:ui' library discoverable in the same way that the real one is discoverable: by the sky_engine _embedder.yaml file. Coupled with this change is the motivation: the stubs are out-of-date, with `double width` and `double height` parameters on the Preview constructor. But this has been changed to use a `Size` object, and `Size` is written in 'dart:ui'. So to write a test that uses `Size`, the test now needs proper access to 'dart:ui', and we should not write 'package:ui/ui.dart' in our test cases. These changes are in `.../lib/mock_packages/package_content/flutter/lib/src/widget_previews/widget_previews.dart` and in `invalid_widget_preview_private_argument_test.dart`. Change-Id: I6f608eb3e1f431ad576ba8f3572454e42a39f9f1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467680 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
27 lines
801 B
YAML
27 lines
801 B
YAML
name: analyzer_testing
|
|
description: Testing utilities related to the analyzer and analysis_server_plugin packages.
|
|
version: 0.1.9-dev
|
|
repository: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer_testing
|
|
|
|
environment:
|
|
sdk: ^3.9.0
|
|
|
|
resolution: workspace
|
|
|
|
dependencies:
|
|
# See the release policy for managing this dependency at
|
|
# pkg/analyzer/doc/implementation/releasing.md.
|
|
analyzer: 10.0.0
|
|
meta: ^1.10.0
|
|
path: ^1.9.0
|
|
test: ^1.25.0
|
|
|
|
# We use 'any' version constraints here as we get our package versions from
|
|
# the dart-lang/sdk repo's DEPS file. Note that this is a special case; the
|
|
# best practice for packages is to specify their compatible version ranges.
|
|
# See also https://dart.dev/tools/pub/dependencies.
|
|
dev_dependencies:
|
|
analyzer_utilities: any
|
|
args: any
|
|
lints: any
|