Skip to content

Commit

Permalink
delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Feb 19, 2024
1 parent 69a5679 commit 1ba80fb
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions packages/vector_graphics/test/vector_graphics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -502,39 +502,6 @@ void main() {
expect(exception.toString(), contains(loader.toString()));
});

testWidgets(
'(WebOnly) creates OpacityLayer, TransformLayer, and ColorFilterLayer to draw picture',
(WidgetTester tester) async {
final TestAssetBundle testBundle = TestAssetBundle();

await tester.pumpWidget(
DefaultAssetBundle(
bundle: testBundle,
child: const Directionality(
textDirection: TextDirection.ltr,
child: VectorGraphic(
loader: AssetBytesLoader('foo.svg'),
colorFilter: ColorFilter.mode(Colors.red, BlendMode.srcIn),
opacity: AlwaysStoppedAnimation<double>(0.5),
),
),
),
);
await tester.pumpAndSettle();

expect(tester.layers.last, isA<PictureLayer>());
expect(
tester.layers[tester.layers.length - 2],
isA<ColorFilterLayer>().having(
(ColorFilterLayer layer) => layer.colorFilter,
'colorFilter',
const ColorFilter.mode(Colors.red, BlendMode.srcIn)));
expect(
tester.layers[tester.layers.length - 3],
isA<OpacityLayer>()
.having((OpacityLayer layer) => layer.alpha, 'alpha', 128));
}, skip: !kIsWeb);

testWidgets(
'Construct vector graphic with drawPicture strategy',
(WidgetTester tester) async {
Expand Down

0 comments on commit 1ba80fb

Please sign in to comment.