1. 19 6月, 2020 1 次提交
    • F
      [shell] Adds a shell test for timezone fetches (#19108) · 1551b742
      Filip Filmar 提交于
      Adds a test that verifies that the view of the local time is the same in
      the Dart isolate and the process that is running the test.
      
      Specifically, this test is useful to verify that the code paths for
      timezone retrieval do not break while the underlying FIDL protocols are
      being refactored.
      
      However, since the check is generally useful, the test is written as a
      general flutter test.
      
      Running this on Fuchsia required adding `fuchsia.intl.ProfileProvider`
      to the CMX file that is used for all build Fuchsia packages.
      
      Testing is a bit involved on Fuchsia.  You must build the Fuchsia
      package `fluter/shell/common:shell_tests` and publish it to the dev
      repository for your Fuchsia device.  It seems that a way to do so is to
      modify the script `flutter/tools/fuchsia/build_fuchsia_artifacts.py` and
      modify its function `GetTargetsToBuild` like so:
      
      ```
      def GetTargetsToBuild(product=False):
        targets_to_build = [
          'flutter/shell/platform/fuchsia:fuchsia',
          'flutter/shell/common:shell_tests',
        ]
        return targets_to_build
      ```
      
      Next, the Fuchsia packages need to be compiled and published.
      
      Once done, the following `fx` invocation will run the test, assuming
      that you have your Fuchsia setup:
      
      ```
      fx shell run \
          fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
          -- --gtest_filter=ShellTest.LocaltimesMatch
      ```
      1551b742
  2. 27 11月, 2019 1 次提交
    • C
      Add a separate target for Dart coverter on FML types. (#14011) · ca68af25
      Chinmay Garde 提交于
      The converters are still in a separate target that must be included manually. This allows targets that depend on FML but not Dart runtime not have to depend on the runtime.
      
      Adds a test that includes this target and tests image decompression from assets. There is also a test for the standalone DartConvertor in shell_unittests but not in fml_unittests be cause FML uni-tests cannot yet launch a VM. I will work on adding fixtures for those.
      ca68af25
  3. 20 11月, 2019 1 次提交
  4. 11 10月, 2019 1 次提交
  5. 01 10月, 2019 1 次提交
  6. 20 9月, 2019 1 次提交
  7. 17 9月, 2019 1 次提交
  8. 13 9月, 2019 1 次提交
  9. 11 9月, 2019 1 次提交
  10. 30 8月, 2019 1 次提交
  11. 28 8月, 2019 1 次提交
  12. 09 8月, 2019 1 次提交
  13. 03 8月, 2019 1 次提交
  14. 07 6月, 2019 1 次提交
  15. 08 5月, 2019 1 次提交
    • D
      new lints (#8849) · 2b1f9925
      Dan Field 提交于
      Dart lints added:
      * Avoid optional new
      * Avoid optional const
      * Prefer single quotes
      * Prefer default assignment `=`
      2b1f9925
  16. 20 4月, 2019 1 次提交