38 Commits

Author SHA1 Message Date
Jonah Williams c812a62b88 allow ignoring toString, hashCode, and == in api_conform_test (#13907) 2019-11-19 10:21:31 -08:00
Jason Simmons 7069025a32 Reformat BUILD.gn files to comply with the format checker presubmit script (#13401) 2019-10-29 09:49:16 -07:00
vsmenon a6fe7efc01 Enable/tweak web sdk source maps, take 2 (#13161)
Update outline step to remove absolute paths here as well.  See: https://dart-review.googlesource.com/c/sdk/+/122178/5/utils/dartdevc/BUILD.gn
2019-10-21 21:20:58 -07:00
Kaushik Iska 540c6c1c40 Revert "Enable/tweak web sdk source maps (#13141)" (#13148)
This reverts commit 2116d6b9c6.
2019-10-15 13:37:52 -07:00
vsmenon 2116d6b9c6 Enable/tweak web sdk source maps (#13141) 2019-10-15 11:29:10 -07:00
Ferhat 3fd877715b [web] Add basic color per vertex drawVertices API support (#13066)
* Implement basic drawVertices for BlendMode.srcOver and hairline rendering
* Implement maxDiffRate parameter for screenshot tests
2019-10-14 13:16:05 -07:00
Devon Carew 2e6deee9cd remove references to package:_chrome (#12931) 2019-10-08 09:41:46 -07:00
David Iglesias b875c7a5ff Add web engine screenshot (scuba) tests (#12353)
* Import all golden files and tests from internal repo.
* Adapt test files to new screenshot API, and tweak some settings.

(Check PR to see individual changes to each file)

Fixes https://github.com/flutter/flutter/issues/40975
2019-09-20 09:00:55 -07:00
David Iglesias d3c60acef8 More controls for Screenshot tests (for web) (#12284)
New features for golden tests (for web):

* Height/width of headless browser instance extracted to constants
* Remove border from the host iframe
* Added 'region' to matchGoldenFile, so screenshots can capture only
a subset of the viewport
* Added image-format-awareness (png) to screenshot comparison, so it
doesn't only look at raw bytes
* When a test fails, output a diff image alongside the unexpected
output.
2019-09-18 14:58:30 -07:00
Yegor 954f1988c5 Add custom test plugin that supports screenshot tests (#12079)
- Add a custom `PlatformPlugin` that spins up a server waiting for test to request a screenshot.
  - When a screenshot is requested the plugin talks to Chrome via the debug port, captures a screenshot, and compares it with a golden file
- This PR also adds proper CLI for `dev/test.dart` with an `ArgParser` for future extension into a proper developer tool for the team.
  - As a first couple of features, it adds `--debug` option to launch Chrome in debug mode, a `--target` option to choose a single test to run rather than all tests, and `--shard` option to choose a subset of tests to run.

Limitations:
 - While screenshot test will run on Cirrus, they are configured to not fail on Cirrus. Need to solve Chrome version skew.
 - Stack maps do not work yet (you get stacks, but they are nonsensical)
 - When requesting a single test, build_runner builds all tests anyway
 - Nothing but desktop Chrome is supported
 - Nothing but Linux is supported
 - There's no Chrome version pinning; currently assumed stable Chrome channel
2019-09-10 13:53:47 -07:00
Harry Terkelsen 57f4ea4d37 Provide a hook for a plugin handler to receive messages on the web (#11796)
* WIP on web plugin registry

* WIP on web plugins

* More WIP on registering web plugins

* remove flutter_web_plugins

* add license header

* Update year of license header to 2013

* Update the license goldens file
2019-08-30 17:08:31 -07:00
Jonah Williams 180adcbef0 make engine, ui, and sdk rewriter inputs of dill construction (#11554) 2019-08-27 18:24:42 -07:00
Jonah Williams e6b983cefe Build legacy web dart sdk (#11360) 2019-08-21 18:55:19 -07:00
Jonah Williams a5d887cbe4 Reland remove kernel sdk script (#10814) 2019-08-20 21:16:02 -07:00
Chris Bracken 03caa67acd Roll Dart SDK 78ce916d82..15a3bf82cb (#10810)
15a3bf82cb Add defined() guard for checkout_llvm build flag
d5d00c847a Create ExtensionMemberResolver instance in ResolverVisitor.
9ec8d9ff25 [ddc] Merge modular/issue37523 test into modular/nested_constants test
ea313da021 Rework the resolution result
ab55923918 [dartdevc] ddb fix for d8
77f545bbc4 [vm/ffi] Fix instantiation and garbage collection of NativeType objects
b0d079a96b Set context type for extension override receiver.
dc2c942c7d [vm/bytecode] Avoid adding all ICData objects from constant pool
804a338b5e Change recordScopeDependencies() to return true on type parameter of strict FunctionType.
0c727420c3 Stop reporting undefined method when there are ambiguous extension methods
6d2902576b Emit a server.error event if we fail to start the completion model isolate
51f4574e50 Reland "[vm/ffi] Support structs on 32bit architectures"
621b96f97b Migration: begin adding infrastructure for reporting unsatisfiable substitutions.
19654f30d0 [cfe+vm+ddc] Return ClassHierarchy and CoreTypes together with Component
573789f7f1 [cfe] Insert default super initializer when outlining const constructor
2019-08-09 14:57:15 -07:00
Jonah Williams cb16289860 Revert "Remove flutter_kernel_sdk dart script (#10808)" (#10811) 2019-08-09 13:36:13 -07:00
Jonah Williams 1b287524ee Remove flutter_kernel_sdk dart script (#10808) 2019-08-09 12:43:20 -07:00
Yegor 708fc625d7 rename stub_ui to web_ui (#10776)
* rename stub_ui to web_ui

* update licenses
2019-08-09 11:11:20 -07:00
Nicholas Shahan e8fb641f61 Enable consts from environment in DDK for flutter_web (#10069)
Fixes: https://github.com/dart-lang/sdk/issues/37605

We were seeing unevaluated constants during the build for flutter_web. Passing an empty map is handled differently than null so the constant evaluation will kick in.
2019-07-23 16:05:36 -07:00
Jonah Williams 4b11df89dd Update flutter_web to latest (#9792) 2019-07-11 15:12:30 -07:00
Jonah Williams 50d6228579 fix Picture.toImage return type check and api conform test. (#9685) 2019-07-06 00:45:07 -07:00
Jonah Williams f44b7b5662 Catch errors during production of kernel dill (#9248) 2019-06-14 20:50:22 -07:00
Jonah Williams 669ac3848d roll dart and update libraries files (#9201) 2019-06-05 13:01:10 -07:00
Jonah Williams e07fc692bd Roll web sdk (#9146) 2019-05-30 14:04:07 -07:00
Jonah Williams fa2e2d9fcb Add checks to constructors and add missing constructor members (#9106) 2019-05-28 13:37:15 -07:00