Commit Graph

305 Commits

Author SHA1 Message Date
Darren Burns
6f533d762c Add tests for negative number hsl handling, normalise degrees to range 0-1 2022-06-08 15:50:37 +01:00
Will McGugan
b9e1022f6e fix test 2022-06-08 12:04:18 +01:00
Darren Burns
01bedd7f04 Improve color parsing tests 2022-06-07 16:21:05 +01:00
Darren Burns
2086062b56 Testing HSL and testing spaces in rgb(..), hsl(..) css declarations 2022-06-07 16:11:19 +01:00
Darren Burns
d7159d905a Fix regex, fix some broken tests around HSL support 2022-06-07 15:36:45 +01:00
Will McGugan
96c013aa39 Scroll view widget 2022-05-31 10:48:40 +01:00
Will McGugan
5bc439b6da skip tests 2022-05-30 17:32:57 +01:00
Will McGugan
88ecb319e7 fix tests 2022-05-29 15:19:32 +01:00
Olivier Philippon
b47cd20c59 [AppTest] hotfix for the "css" branch after commit d45b044888 2022-05-29 15:05:04 +01:00
Will McGugan
b806779267 Merge pull request #540 from Textualize/docs-structure
Docs Refresh
2022-05-27 12:01:25 +01:00
Will McGugan
303254f9ac test fixes 2022-05-27 10:24:32 +01:00
Will McGugan
a65b538af0 Merge pull request #533 from Textualize/add-terminal-mode2026-support
[terminal buffering] Add support for the "mode 2026" - aka SynchronizedOutput
2022-05-25 17:28:01 +01:00
Olivier Philippon
159d52b0f3 [css] Fix a bug with our now-flexible scrollbars sizes
Also add test cases for it in order to prevent potential regressions on this
2022-05-25 16:33:19 +01:00
Will McGugan
6bfc26c1ec more docs 2022-05-25 15:36:58 +01:00
Olivier Philippon
43ce3e8363 [terminal buffering] Address PR feedback: massive simplification of the code 2022-05-25 12:12:50 +01:00
Olivier Philippon
a55b122967 [css] Address PR feedback for our new "scrollbar-size" CSS properties 2022-05-25 09:30:46 +01:00
Olivier Philippon
9e6140af7c [css] Add tests and fix stuff for our new "scrollbar-size" CSS properties 2022-05-25 09:30:46 +01:00
Olivier Philippon
7f27e70440 [terminal buffering] Address PR feedback 2022-05-24 13:08:45 +01:00
Olivier Philippon
3486dc08b5 [terminal buffering] Remove the management of the iTerm2-specific buffering protocol
Since iTerm2 also supports the "mode 2026", we can just rely on that one ✌
2022-05-24 09:45:19 +01:00
Olivier Philippon
d14659c1a3 [terminal buffering] Add support for the "mode 2026"
That task is definitely way more complicated that it seemed to be 😅
2022-05-24 09:20:56 +01:00
Olivier Philippon
631f7a5af8 [clock] Misc bug fixes 🐛 2022-05-20 15:48:36 +01:00
Olivier Philippon
0ee9c57f59 [clock] Address PR feedback after the initial implementation of the centralised Clock, episode II 2022-05-20 14:51:47 +01:00
Olivier Philippon
aed252874b [clock] Address PR feedback after the initial implementation of the centralised Clock 2022-05-20 14:51:47 +01:00
Olivier Philippon
4549f2d478 [clock] Add a centralised Clock, responsible for anything related to time
This makes time quite easier to mock during integration tests :-)
2022-05-20 14:51:47 +01:00
Olivier Philippon
5789816333 [App] Integration tests now work on Windows too 2022-05-20 14:51:16 +01:00
Olivier Philippon
15df759197 [App] Finally, time mocking in tests seems to be working! 😅
I had to add a flag in the `_timer` module that allows us to completely disable the  "skip" feature of Timers, though - but it shouldn't cause too much trouble 🤞
2022-05-20 14:50:43 +01:00
Olivier Philippon
74ad6f73fa [e2e] Add a way to accelerate time in our integration tests 2022-05-20 14:49:58 +01:00
Will McGugan
ce8bb775de Merge branch 'css' into auto-dimensions 2022-05-20 12:00:50 +01:00
Will McGugan
ab0e524888 Merge pull request #522 from Textualize/css-add-blank-border-type
[css] add "blank" border type
2022-05-20 11:48:11 +01:00
Will McGugan
537df85461 fix auto 2022-05-19 11:30:44 +01:00
darrenburns
89fd39578b Merge pull request #495 from Textualize/text-input
Basic text input
2022-05-18 16:35:51 +01:00
Olivier Philippon
af2f1580ce [css] Add a test for the impact of our border edge types on the layout 2022-05-18 11:41:05 +01:00
Will McGugan
c2c2e79b2b Merge pull request #501 from Textualize/css-add-scrollbar-gutter-property
[css][scrollbar gutter] Manage the `scrollbar-gutter: stable` CSS property
2022-05-17 11:29:40 +01:00
Darren Burns
28e21b4703 Merge branch 'css' of github.com:Textualize/textual into text-input 2022-05-17 11:07:43 +01:00
Darren Burns
ceb8f7a735 Tests for editor backend API 2022-05-17 10:44:40 +01:00
Will McGugan
ec8eda7c6d fix test 2022-05-16 15:17:10 +01:00
Will McGugan
22e4943044 Merge pull request #505 from Textualize/feat-removal-focus-timer
[App] Remove the focus timer: we now focus from a widget to the next/prev one instantly
2022-05-14 07:55:50 +01:00
Will McGugan
d20f1299f6 timezone fix 2022-05-13 16:59:47 +01:00
Will McGugan
53837c1a81 force highest protocol 2022-05-13 16:52:15 +01:00
Will McGugan
f26d917a72 fix tests for 3.8 2022-05-13 16:45:50 +01:00
Will McGugan
f7fb6f613a test fix 2022-05-13 16:38:09 +01:00
Olivier Philippon
cdad0ff020 [App] Remove the focus timer: we now focus from a widget to the next/prev one instantly 2022-05-12 16:52:16 +01:00
Olivier Philippon
685a2fb510 [css][scrollbar gutter] Manage the scrollbar-gutter: stable CSS property
(only for vertical content though; we may see later on if we want to also apply that logic for horizontal scrolls?)
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter
2022-05-12 10:19:46 +01:00
Will McGugan
1a13a9c8ec wait a bit 2022-05-11 15:25:17 +01:00
Will McGugan
a51cb0c329 Merge remote-tracking branch 'origin/css' into compositor-granularity 2022-05-11 15:20:24 +01:00
Will McGugan
73a2dfb3c6 Merge pull request #494 from Textualize/tests-e2e-see-if-we-can-test-scroll-to-widget
[tests][e2e] Add a test for `Widget#scroll_to_widget()`
2022-05-11 14:52:40 +01:00
Will McGugan
b7a3a9b4c8 Merge pull request #486 from Textualize/css-add-did-you-mean-for-css-color-names
[css] Add a "Did you mean" suggestion when the value of a color is wrong but we can find a close one
2022-05-11 14:41:17 +01:00
Will McGugan
4cfc8f8947 merge 2022-05-11 14:33:12 +01:00
Will McGugan
760beac6be Merge pull request #479 from Textualize/render-style
Add style param to Widget render method
2022-05-11 13:32:35 +01:00
Olivier Philippon
aa7b19a193 [css] Address PR feedback for "Did you mean" suggestions 2022-05-11 10:45:38 +01:00