37 Commits

Author SHA1 Message Date
Petr Hosek
141176b900
Migrate all uses of gtest to googletest (#4755)
gtest is an old version that predates the googletest and googlemock
merger, all tests should be using the newer googletest that's being
kept in sync with the upstream version.
2018-03-14 11:32:34 -07:00
Alexander Aprelev
54cda7b27a
Revert "Migrate all uses of gtest to googletest (#4728)" (#4750)
* Merge

* Update license hash
2018-03-06 09:46:24 -08:00
Petr Hosek
15bb1e9cb9
Migrate all uses of gtest to googletest (#4728)
gtest is an old version that predates the googletest and googlemock
merger, all tests should be using the newer googletest that's being
kept in sync with the upstream version.
2018-03-06 01:06:32 -08:00
Ian Hickson
26c3ab08d9
Convert MaskFilter to pure-Dart. (#4534) 2018-01-11 23:25:18 -08:00
Ian Hickson
9536b80781
Offset.direction (#4530)
Since we've got a vector class, and it has a getter for the magnitude,
why not also a getter for the angle.
2018-01-09 22:17:57 -08:00
Jason Simmons
2383bb7c4e
Update the path to Skia test images in codec_test (#4460) 2017-12-13 18:12:42 -08:00
Michael Goderbauer
e07eafae1d
Roll forward: Parameters for SemanticActions; a11y text selection (#4452)
Reverts the revert in #4448 with fixes to pass on the bot.

This change will require framework changes in flutter/flutter#13490.
2017-12-12 14:25:45 -08:00
Chris Bracken
f888186e50
Fix an extra paren in locale_test.dart (#4423) 2017-12-06 15:38:40 -08:00
Ian Hickson
7e4df308a7
Make Locale know about the deprecated Hebrew language code. (#4411)
...by making it know about ALL the deprecated language and region codes.
2017-12-06 12:17:30 -08:00
Chris Bracken
93648ef0ed
Expose Window.viewInsets in dart:ui (#4403)
Window.viewInsets is the set of window-relative insets that describe the
area of the window that an application may want to treat as effectively
reducing the size of the content. Typically this is due to system UI
that fully obscures underlying content, such as the keyboard.

This area differs from padding in that padding is the set of insets that
describe the area of the window that may be partially (or fully)
obscured by system UI or physical intrusions into the view area (e.g.
iPhone X sensor housing, status bar, or the iPhone X home indicator
widget).

This patch does not yet enable the iOS bottom edge safe area. Once the
framework has been updated to use viewInsets for bottom-edge occlusions
(today, the keyboard), the bottom safe area will be enabled and
framework patches that depend on it, landed.
2017-11-29 16:27:15 -08:00
Greg Spencer
130af88fde
Adding Rect.expandToInclude and Rect.longestSide (#4309)
Adding Rect.expandToInclude and Rect.longestSide to make the Rect API more symmetric.
2017-11-09 16:37:21 -08:00
amirh
c1b5e06cb2
expose a Duration object from ui.FrameInfo (#4345) 2017-11-09 14:03:19 -08:00
amirh
2920d61a5c
Make the public ui.Codec API Future based instead of callback based. (#4341) 2017-11-09 09:56:36 -08:00
amirh
179bd4a799
Implement a SingleFrameCodec and return it for non animated images (#4329) 2017-11-07 14:07:02 -08:00
amirh
d8a0dd2958
Decode animation frames and pass FrameInfos to dart (#4324)
https://github.com/flutter/flutter/issues/204
2017-11-06 10:36:02 -08:00
amirh
05b00b1e14
Followup on post-merge comments for 941ed76bc (#4321) 2017-11-03 11:44:23 -07:00
amirh
941ed76bcd
Initial implementation of ui.Codec (a wrapper for SkCodec) (#4318)
This is the first step to support animated GIFs: flutter/flutter#204

TBD in following CLs:
 * Implement Codec.getNextFrame.
 * Add Framework side support to run animations.
2017-11-02 17:56:44 -07:00
Chinmay Garde
2d9f6acfac Add a test_fixtures GN rule that allows unittests to reference fixtures. (#4280) 2017-10-25 14:54:20 -07:00
xster
28e08053e2 Add luminance getter to Color (#4252)
* add luminance getter to color

* tests

* nit
2017-10-24 18:39:54 -07:00
P.Y. Laligand
5fae5d52cf Allow the project to be mapped to a location other than //flutter. (#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
gspencergoog
b2a7f4bf8f Add support for system text scale factor. (#4124)
Adds support for system text scale factor, including hooks for Android system settings changes.  iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Ian Hickson
ccf9859b0d Clamp overflows in Color.lerp. (#4141)
Previously, cases like:

```dart
Color.lerp(const Color(0xFF00FF7F), const Color(0xFF00FFFF), 1.1)
```

...would result in unexpected effects (in this instance, lerping
between these colors with a curve that overshoots would take what
should be a simple animation from pale green to blue and add some
flickering bright green whenever it overshoots).
2017-09-26 11:11:09 -07:00
George Kulakowski
3aa7522c11 Rename ftl to fxl in Fuchsia specific code (#4090) 2017-09-11 15:58:48 -07:00
Jason Simmons
27dfd06f91 Assert checks for NaN/infinite values in Skia canvas Dart wrappers (#3967) 2017-08-08 15:49:51 -07:00
Jason Simmons
6a4951102b Remove usage of NaN values in canvas_test that caused a Skia assert failure (#3962) 2017-08-07 17:36:29 -07:00
Ryan Macnak
431a251151 Revert "Avoid spurious descheduling when posting message loop tasks. (#3812)" (#3862)
This reverts commit 2062ca14ec55934ac27b6a1e69031c44daae1e54.
2017-07-11 14:49:13 -07:00
Ryan Macnak
2062ca14ec Avoid spurious descheduling when posting message loop tasks. (#3812)
Closes dart-lang/sdk#29971
2017-07-05 12:39:53 -07:00
Yegor
926c9a581f preserve Window callback zones (#3817)
* preserve Window callback zones

Run Window callbacks in the zone they are registered in. This is consistent with how other native API work, such as `scheduleMicrotask`, `Timer`, and `dart:io`. This also enables the developers to use the `Zone` API to capture and log unhandled Dart errors.

* refactor wrapping

* new line

* fewer if checks; group getters/setters/fields

* inline _invokeOnPointerDataPacket
2017-06-26 15:08:43 -07:00
Ian Hickson
6cf34cb5b3 Throw exceptions rather than crashing when Canvas API is misused. (#3811)
This attempts to make the Canvas API and some related features more
likely to throw a Dart exception than crash when exposed to bad input.

Depends on rolling tonic to
https://fuchsia-review.googlesource.com/c/35742/ which this patch does
not yet do, but I wanted to put it up for review to see if it was even
a reasonable approach.
2017-06-22 17:06:59 -07:00
Jason Simmons
c7914e2573 Update scripts for renaming of sky_shell binaries to flutter (#3526) 2017-03-27 15:06:39 -07:00
Hans Muller
4ffba73767 Color operator== should compare runtimeTypes (#3495) 2017-03-22 10:58:03 -07:00
Jason Simmons
d92d4c1b03 Script that runs engine unit tests and Dart tests of engine APIs (#3372)
The Dart tests were migrated from the flutter/test/engine suite in the
framework repository
2017-01-30 10:52:44 -08:00
Chinmay Garde
55ed56040d Add testonly = true to the flutter/testing target and disable WTF tests that depend on ICU. (#3271) 2016-11-23 16:12:39 -08:00
Chinmay Garde
c4bd577379 On host targets, add dependencies on host unit test executables. (#3269) 2016-11-23 15:57:52 -08:00
Adam Barth
22f834e048 Remove files that moved to buildroot 2016-08-09 13:51:42 -07:00
Adam Barth
21dd7553a0 Update to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 2015-07-16 22:10:38 -07:00
Adam Barth
ad9b135217 Update to mojo 5f5dfcc9af8b40a14dd76e34c60a5766b9f58bb4 2015-07-16 11:44:14 -07:00