make asset_test.dart tests not dependent on context (#141331)

Part of work on https://github.com/flutter/flutter/issues/141330, which is a part of work on https://github.com/flutter/flutter/issues/140092

This is a refactoring; there should be no behavioral changes in these tests.
This commit is contained in:
Andrew Kolos
2024-01-11 10:08:07 -08:00
committed by GitHub
parent e281c39164
commit c355219154
7 changed files with 230 additions and 136 deletions

View File

@@ -1,12 +0,0 @@
name: font
description: A test project that contains a font.
environment:
sdk: '>=3.2.0-0 <4.0.0'
flutter:
uses-material-design: true
fonts:
- family: test_font
fonts:
- asset: test_font_file

View File

@@ -1 +0,0 @@
This is a fake font.

View File

@@ -1 +0,0 @@
.packages

View File

@@ -1,11 +0,0 @@
name: main
description: A test project that has a package with a font as a dependency.
environment:
sdk: '>=3.2.0-0 <4.0.0'
dependencies:
font:
path: ../font
# PUBSPEC CHECKSUM: 0000

View File

@@ -1 +0,0 @@
!.packages