Sergio Martins
c96a5c858a
wip
2020-04-15 19:41:07 +01:00
Sergio Martins
37ab437f3f
Anchor.cpp compiles
2020-04-14 07:44:44 +01:00
Sergio Martins
fec9a5ff4a
wip
2020-04-13 21:47:20 +01:00
Sergio Martins
d66e88b484
wip
2020-04-13 21:40:58 +01:00
Sergio Martins
69fd55dfef
tests++
2020-04-13 20:26:12 +01:00
Sergio Martins
86e85d6f35
wip
2020-04-13 18:59:56 +01:00
Sergio Martins
c39805704d
Fix and uncomment more tests
2020-04-13 18:21:59 +01:00
Sergio Martins
7821708301
wip
2020-04-12 19:32:39 +01:00
Sergio Martins
da4a1e9302
wip
2020-04-10 15:45:28 +01:00
Sergio Martins
93fec759ed
wip
2020-04-10 13:07:56 +01:00
Sergio Martins
d315473a54
Fix clear
2020-04-10 12:23:20 +01:00
Sergio Martins
8cd4bf1701
wip
2020-04-10 12:05:49 +01:00
Sergio Martins
0a80629a50
uncomment more tests
2020-04-05 15:29:59 +01:00
Sergio Martins
8c4fbd4012
start uncommenting tests
2020-04-05 15:28:07 +01:00
Sergio Martins
225aa6a098
Add unit-test for DockWidget::raise()
...
and make it pass on offscreen platform too, as that QPA plugin
fails to keep z-order between order.
2020-03-24 22:36:21 +00:00
Sergio Martins
afb3edfd1d
unit-tests++
2020-03-24 13:33:51 +00:00
Sergio Martins
fc63f843b7
Workaround QTBUG-83030
...
Fixes a case where the floating window wouldn't disappear.
This is deep in Qt. Got it down to a minimal test-case and reported it.
Probably won't get fixed ever.
2020-03-24 10:58:31 +00:00
Sergio Martins
cc1e1eaa51
Don't flicker when showing a floating dock widget
...
Create the FloatingWindow directly, instead of creating the DockWidget
then reparenting it
2020-03-07 21:15:44 +00:00
Sergio Martins
eabcdfb945
Add unit-test for affinity
2020-03-01 15:03:29 +00:00
Sergio Martins
63e662323f
Added unit-test for Flag_DoubleClickMaximizes
2020-02-27 15:13:01 +00:00
Sergio Martins
6fb0694aab
LayoutSaver: Replace saveToDisk() with saveToFile(jsonFilename)
...
Same for restore.
This is better API as LayoutSaver shouldn't be concerned about
QSettings. It also assumed the user only had a single layout, which
is normally not the case.
And finally, storing escaped json in .ini files is not very elegant.
2020-02-24 15:10:12 +00:00
Sergio Martins
579b222418
Make AddingOption_StartHidden also work for tabs
...
You can now pass that option to DockWidget::addDockWidgetAsTab().
2020-02-19 16:36:50 +00:00
Sergio Martins
7a2aa43b2d
Fuzzer: Add SaveLayout and RestoreLayout operations too
2020-02-19 14:12:44 +00:00
Sergio Martins
aded290573
Don't save last position if the window was hidden already
...
Bug was happening when calling close() an closed dock widget, it
would then save the position of the invisible window. Next time it
was open it would appear in a bogus location. 0,0 in my case.
2020-02-06 15:01:58 +00:00
Sergio Martins
52e53c4fd9
fuzzer: Trim the failing test
2020-01-29 15:04:51 +00:00
Sergio Martins
07f9e9a0df
Fix fuzzer testcase failing/2.json
...
And renamed it to 17.json, as we already have an unrelated 2.json.
The removed check isn't needed, as we'll check again when we
finish restoring the placeholder. It was also a false-positive
warning sometimes because boundPositionForAnchor() would fail
since the "anchors following" wasnt initialized yet, as we do
a clearAnchorsFollowing while restoring the placeholder
2020-01-27 18:47:37 +00:00
Sergio Martins
195c8121c0
fuzzer: Simplify names for 2.json
2020-01-27 15:17:30 +00:00
Sergio Martins
2b1518b1c2
Fuzzer: Add a new failing testcase
2020-01-27 15:10:55 +00:00
Sergio Martins
ca98d376b7
fuzzer: Move 14.json from failing to ok
...
It passes now
2020-01-24 20:05:43 +00:00
Sergio Martins
16b564a005
Add a test which is failing on macOS
2020-01-24 20:02:26 +00:00
Sergio Martins
162bf0e828
Don't move anchors that are following others
...
Move the real ones instead. Fixes some bugs found with the fuzzer.
2020-01-24 16:19:42 +00:00
Sergio Martins
068eb7cc25
fuzzer: trim 15.json a bit
...
smaller and still repro
2020-01-24 11:52:51 +00:00
Sergio Martins
8c37c3a7ec
fuzzer: print the name of the failing test
2020-01-24 11:38:21 +00:00
Sergio Martins
e2d47001db
fuzzer: Move failing tests to a failing directory
...
So we can run the correct ones with *.json
2020-01-24 11:37:45 +00:00
Sergio Martins
4a6b73cae1
fuzzer: Decouple skipping last from no quitting
...
There's two separate options now, as it's useful to pause without
skipping the last test
2020-01-22 14:44:56 +00:00
Sergio Martins
d738fbd154
fuzzer: Fix description of skipped operation
...
Only generate the description after all other dockwidgets are placed
, as the state of the others will be in the last description too
2020-01-22 12:47:42 +00:00
Sergio Martins
7c10ab37f4
fuzzer: print description of skipped operation
...
involves making sure the description is generated
2020-01-22 11:54:09 +00:00
Sergio Martins
460d3f9ec1
fuzzer: Print the skipped operation
2020-01-22 11:48:04 +00:00
Sergio Martins
4c19ccade7
fuzzer: don't destroy the windows when we use -d
...
so we can debug the app
2020-01-22 11:36:49 +00:00
Sergio Martins
03cc8abd94
fuzzer: Add skipAndPause (-d) option
...
So we can pause before the last test and debug the app
2020-01-22 11:17:59 +00:00
Sergio Martins
8447cefc14
fuzzer: trim testcase 16
...
Now has the minimum to reproduce
2020-01-22 10:56:11 +00:00
Sergio Martins
141cbc55f4
add a failing testcase
2020-01-21 22:05:32 +00:00
Sergio Martins
873978a99e
Add some failing testcases
2020-01-21 22:05:03 +00:00
Sergio Martins
b8279633ac
fuzzer: add an -l option, so it loops until it crashes
2020-01-21 17:10:29 +00:00
Allen Winter
df692686e7
various - update copyright year
2020-01-07 11:36:56 -05:00
Sergio Martins
2ff2b78f5a
Fix unit-tests on Windows with Qt 5.9
...
Our RAII class that ensures that each test leaves 0 top-levels behind
was being initialized with somthing bigger than 0 since the
rectForDrop() test wasn't doing proper cleanup.
Not sure why only repro with 5.9, but it's correct now.
2020-01-04 22:24:11 +00:00
Sergio Martins
6be2490c08
tests: When cleanup fails print the top-levels that we compared to
...
Since qApp->topLevels() contains buttons which will be deleted later
2020-01-04 21:15:39 +00:00
Sergio Martins
f37ecc0765
tests: Remove test with hardcoded values
...
It's flaky as the min sizes are varying with Qt versions. Also what
it tests is already tested in previous tests and elsewhere.
2020-01-04 18:33:43 +00:00
Sergio Martins
3b20f99092
tests: Add some missing window cleanup checks
2020-01-04 18:27:20 +00:00
Sergio Martins
9f5c7b5e6a
tests: Use fusion style on all platforms
...
To make the tests more robust, as some widgets min size will
vary
2020-01-04 18:19:26 +00:00