• Danny Tuppeny's avatar
    Change asset_bundle_package_font_test to memory file system (#21114) · a74f591d
    Danny Tuppeny authored
    * Change assert_bundle_package_font_test to memory file system
    
    This is to work towards being able to run the tests without `-j1` (#21113). These tests were using the real filesystem and setting/relying on fs.currentDirectory. There was a comment about this being because the memory provider didnt' support POSIX and Windows, however that seems to have changed since (and many other asset tests already do something similar to this).
    
    * Trim trailing whitespace
    
    * Add a workaround for Windows path slash directions
    
    Strictly this is correct, but the real FS can tolerate either path. The in-memory file system is more strict (see https://github.com/google/file.dart/issues/112).
    
    * Extract a helper for writing schema files in tests
    
    * Missed file when saving!
    
    * Remove redundant comment
    
    * Rename writeBasicSchema -> writeEmptySchema
    
    * Use the file we already have to write contents
    
    * Make comments more descriptive
    
    * Remove another dupe of writeSchema to use the shared one
    
    * Rename schema -> pubspec_schema
    
    * Trim whitespace
    a74f591d
flutter_manifest_test.dart 17.5 KB