Commit Graph

257 Commits

Author SHA1 Message Date
Oleksandr Karpovich
0f1d191b93 web: add compiler test case Composable With Typed Default Values (#1231)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-25 10:47:01 +02:00
Oleksandr Karpovich
bbec5eaa43 web: add tests for Css selectors desc (#1305)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-25 10:46:15 +02:00
Abasov Akif
984a26ce1d Pass resolved with self selector to nested builder (#1298) 2021-10-25 10:06:07 +02:00
Abasov Akif
14bf6674d9 Add implicit self for nested css selector (#1284)
* Deprecate `descendant` and introduce `desc` util to combine selectors

* Add internal `contains` method to `CSSSelector`

* Add implicit self for nested css selector
2021-10-22 16:11:03 +02:00
Oleksandr Karpovich
c5c28f8aad web: make auto-css experimental (#1294)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-22 12:32:09 +02:00
Shagen Ogandzhanian
095379d513 Introduce basic support for SVG (#1289) 2021-10-22 12:27:18 +02:00
Oleksandr Karpovich
354e48a542 Web: fix jumping cursor of controlled inputs (#1287)
* web: fix cursor position for controlled inputs (wip)

* web: fix cursor position for controlled inputs (wip)

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-21 19:02:11 +02:00
Oleksandr Karpovich
1638f0f08b web: fix mouse event for safari mobile (#1288)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-21 19:02:01 +02:00
akurasov
f4ca94af8d Merge branch 'sync/2021-10-12' 2021-10-18 13:25:23 +03:00
Oleksandr Karpovich
40e89d1f37 web: move ComposableWithDefaultValuesDefinedByOtherParams.kt to passing test cases 2021-10-18 08:43:27 +02:00
Philip Wedemann
13620b9dd7 Align StyleSheetBuilder parameter with other @Composable ContentBuilder and add test (#1112) 2021-10-14 11:56:41 +02:00
Abasov Akif
381a95bb62 Basic animations test (#1233)
Basic animations test
2021-10-06 17:36:34 +03:00
Oleksandr Karpovich
3795ad1fb9 web: add compiler test case Composable With Default Values Defined By Other Params (#1230)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-05 10:35:43 +02:00
Oleksandr Karpovich
8d665cf1f0 web: update chromedriver version (#1229)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-05 10:35:26 +02:00
Oleksandr Karpovich
326a130ab8 web: add compiler test case for type nullable params (#1227)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-10-04 11:06:49 +02:00
Igor Demin
6fe8be049d Miggrate to 1.0.0-alpha4-build362 (#1205) 2021-09-28 10:38:21 +03:00
Oleksandr Karpovich
626cba019a web: add RadioGroup component to manage several Radio Inputs (#1116)
* web: add RadioGroup component to manage several Radio Inputs

* web: improve RadioGroup PR after discussions

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-09-16 10:39:11 +02:00
Oleksandr Karpovich
d68c432506 web: add tests for ComposableLambdaCalls.kt (#1121)
* web: add tests for ComposableLambdaCalls.kt

* web update compose version 1.0.0-alpha4-build348

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-09-15 11:52:11 +02:00
Shagen Ogandzhanian
3f2a5d06c4 [web] and turning Firefox tests in core of again 2021-08-31 13:17:01 +02:00
Shagen Ogandzhanian
ffc5eaf5b3 Moved benchmark tests to a dedicated package 2021-08-31 12:52:57 +02:00
Shagen Ogandzhanian
ce606d1c22 [web] [tests] Completely get rid of waitForAnimationFrame in favour of waitForRecompositionComplete 2021-08-30 23:45:09 +02:00
Shagen Ogandzhanian
dcd8b70f70 [web] [tests] Use waitForRecompositionComplete instead of waitForAnimationFrame in add/remove benchmark tests 2021-08-30 23:38:07 +02:00
Shagen Ogandzhanian
98b58a8371 [web] Use common test api in benchmark-core 2021-08-30 22:57:31 +02:00
Shagen Ogandzhanian
4c252b8196 Use asHtmlElement helper only in TestUtils
TestUtils is a perfect classic name!
2021-08-30 22:28:53 +02:00
Shagen Ogandzhanian
d8de109ba1 [web] Re-enable Firefox tests after making build job non-parallel 2021-08-30 22:21:48 +02:00
Shagen Ogandzhanian
c8f91a9695 Extract PositionTests from StaticComposableTests and use runTest in both 2021-08-30 22:11:35 +02:00
Igor Demin
a8bc62c519 Migrate to 1.0.0-alpha4-build328 2021-08-27 23:29:58 +03:00
Igor Demin
c9a7b15e86 Migrate to Kotlin 1.5.30 2021-08-27 20:40:51 +03:00
Shagen Ogandzhanian
f8ac4ad2c3 Don't run web-core tests in Firefox (till further investigation) 2021-08-27 17:16:41 +02:00
Shagen Ogandzhanian
ced58ee707 Build web with gradle@7.1.1 and web-landing example 2021-08-26 16:10:53 +02:00
Shagen Ogandzhanian
6b209ebd87 Prepare DomApplier and related code for working with SVG entities 2021-08-25 22:35:24 +02:00
Shagen Ogandzhanian
d4804fafdd [web] [tests] introduce elementBuilderShouldBeCalledOnce test 2021-08-25 18:30:49 +02:00
Shagen Ogandzhanian
a22c916721 Use runTest in stypePosition test 2021-08-25 17:43:19 +02:00
Shagen Ogandzhanian
ce9fbcc8dd Add test that basically check that scope is remembered
Thanks to Oleksandr - I would have never come up with a solution this
quick
2021-08-25 12:09:12 +02:00
Shagen Ogandzhanian
6c1667e05a [web] [tests] Refactor attributesUpdateShouldNotCauseInlineStylesCleanUp and make sure we check conditional class assignemnt (in combination with seeting style) as well 2021-08-24 20:23:41 +02:00
Oleksandr Karpovich
e8e02771a0 web: add test-utils module (#1101)
* web: move DomApplier, GlobalSnapshotManager, JsMicrotasksDispatcher to dedicated module

This will allow reusing them in test-utils module.

* web: move TestUtils.kt to a dedicated module

Use test-utils module in web-core as a dependency

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-08-24 13:04:37 +02:00
Oleksandr Karpovich
bb8a69589b web: Update COMPOSE_CORE_VERSION 2021-08-24 10:51:31 +02:00
Shagen Ogandzhanian
14909c23b2 Simplify CSS transform API signatures
There's no need to any of this methods to be Boolean
2021-08-23 17:32:49 +02:00
Shagen Ogandzhanian
770412444d Support filter in CSS API
this resolves #923
2021-08-23 16:25:45 +02:00
Shagen Ogandzhanian
5518eec745 Support for transform in CSS API
This resolves #922
2021-08-23 14:32:48 +02:00
Shagen Ogandzhanian
4d727f7d5d [web] [build] printTestBundleSize depends on jsTest 2021-08-23 14:32:42 +02:00
Oleksandr Karpovich
2689f7c4c0 web: Update test utils api to prepare it for publishing (#1048)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-08-23 12:20:52 +02:00
Oleksandr Karpovich
db53b95a31 Web/controlled inputs (#1031)
* web: make TextInput manage its view state

* web: make TextInput manage its view state

* web: make TextInput manage its view state

* web: add tests for controlled TextArea and RadioButton

* Add more tests for controlled and uncontrolled inputs

* Add more tests for controlled and uncontrolled inputs

* Update date input tests

* Update time input tests

* Update date input tests

* Add docs for controlled and unctontrolled input modes

* web: improve docs for controlled inputs

* web: make benchmark add1kItems run only 2 times instead of 3 (to prevent it from throwing timeout)

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-08-23 11:34:22 +02:00
Shagen Ogandzhanian
fdc9c5df5e [web] [build] stricter guards for printTestBundleSize 2021-08-19 20:59:51 +02:00
Shagen Ogandzhanian
a1310f1b24 Always print testBundleSize after jsTest (if available) 2021-08-19 17:35:52 +02:00
Shagen Ogandzhanian
fce9010353 [web] Introduce printTestBundleSize task 2021-08-19 16:35:07 +02:00
Oleksandr Karpovich
d2d4971f28 web: mark internal and experimental api in web-core (#1077)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-08-19 10:24:31 +02:00
Oleksandr Karpovich
0d93252e90 web: mark internal and experimental api in web-widgets (#1078)
* web: mark internal and experimental api in web-widgets

* web: mark internal and experimental api in web-widgets

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-08-19 10:23:49 +02:00
Shagen Ogandzhanian
f7070f210d [web] optionally skip benchmarks (by default enabled) 2021-08-18 00:34:36 +02:00
Shagen Ogandzhanian
a22bd9f889 Reintroduce printBundleSize for samples 2021-08-17 23:39:47 +02:00