mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Reverts flutter/engine#5376 It was causing failures of the sort: $ flutter test --local-engine=host_debug_unopt test/cupertino/scrollbar_paint_test.dart 00:06 +0: - Paints iOS spec ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════ The following TestFailure object was thrown running a test: Expected: Object or closure painting: 'a rounded rectangle with Color(0x99777777), RRect.fromLTRBR(795.0, 4.0, 797.5, 86.0, 1.3)' Actual: ?:<exactly one widget with type "CupertinoScrollbar" (ignoring offstage widgets): CupertinoScrollbar(state: _CupertinoScrollbarState#c371a(tickers: tracking 1 ticker))> Which: threw the following exception: '': error: native function 'Canvas_translate' (3 arguments) cannot be found
To update the golden license files, make sure you've rebased your branch to the latest upstream master and then run the following in this directory:
pub get
gclient sync
rm -rf ../../../out/licenses
dart lib/main.dart --src ../../.. --out ../../../out/licenses --golden ../../travis/licenses_golden
Then copy any affected files from ../../../out/licenses to ../../travis/licenses_golden and add them to your change.
The sky/packages/sky_engine/LICENSE file is included in product releases and should be updated any time the golden file changes in a way that involves changes to anything other than the FILE lines. To update this file, run:
pub get
gclient sync
dart lib/main.dart --release --src ../../.. --out ../../../out/licenses > ../../sky/packages/sky_engine/LICENSE