zathras / jovial_svg

Flutter library for robust, efficient rendering of SVG static images
BSD 3-Clause "New" or "Revised" License
115 stars 21 forks source link

Failed tests #80

Closed hoangdt84 closed 1 year ago

hoangdt84 commented 1 year ago

Hi,

Here are some logs after executing flutter test .\test\test_main.dart

  Expected: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...]
    Actual: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...]
     Which: at location [2868] is <13> instead of <9>
  blend mode BlendMode.dst compact true File: 'test/reference_images/blend/BlendMode.dst.png' differ

  package:matcher                                     expect
  package:flutter_test/src/widget_tester.dart 458:18  expect
  test\test_main.dart 193:5                           checkRendered

And

  Expected: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...]
    Actual: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...]
     Which: at location [14896] is <203> instead of <202>
  AVD => .si: File: 'test/old_avd_tests/avd\issue_13_forgiving_1_avd.xml' and File: 'test/reference_images/avd/issue_13_forgiving_1_avd.png' differ

  package:matcher                                     expect
  package:flutter_test/src/widget_tester.dart 458:18  expect
  test\test_main.dart 193:5                           checkRendered
zathras commented 1 year ago

See the new https://github.com/zathras/jovial_svg/blob/main/test/README.md -- the regression tests aren't expected to work on other platforms, but they're still useful, as outlined in the document.