@@ -502,39 +502,6 @@ void main() {
502
502
expect (exception.toString (), contains (loader.toString ()));
503
503
});
504
504
505
- testWidgets (
506
- '(WebOnly) creates OpacityLayer, TransformLayer, and ColorFilterLayer to draw picture' ,
507
- (WidgetTester tester) async {
508
- final TestAssetBundle testBundle = TestAssetBundle ();
509
-
510
- await tester.pumpWidget (
511
- DefaultAssetBundle (
512
- bundle: testBundle,
513
- child: const Directionality (
514
- textDirection: TextDirection .ltr,
515
- child: VectorGraphic (
516
- loader: AssetBytesLoader ('foo.svg' ),
517
- colorFilter: ColorFilter .mode (Colors .red, BlendMode .srcIn),
518
- opacity: AlwaysStoppedAnimation <double >(0.5 ),
519
- ),
520
- ),
521
- ),
522
- );
523
- await tester.pumpAndSettle ();
524
-
525
- expect (tester.layers.last, isA <PictureLayer >());
526
- expect (
527
- tester.layers[tester.layers.length - 2 ],
528
- isA <ColorFilterLayer >().having (
529
- (ColorFilterLayer layer) => layer.colorFilter,
530
- 'colorFilter' ,
531
- const ColorFilter .mode (Colors .red, BlendMode .srcIn)));
532
- expect (
533
- tester.layers[tester.layers.length - 3 ],
534
- isA <OpacityLayer >()
535
- .having ((OpacityLayer layer) => layer.alpha, 'alpha' , 128 ));
536
- }, skip: ! kIsWeb);
537
-
538
505
testWidgets (
539
506
'Construct vector graphic with drawPicture strategy' ,
540
507
(WidgetTester tester) async {
0 commit comments