Sergio Martins
c63e4a3d38
fuzzer: Also write the MainWindow name to json
...
Same reason as previous commit
2019-10-14 21:55:08 +01:00
Sergio Martins
9738fbddc6
fuzzer: Write the DockWidgets name to the json too
...
This way it's easier to read the json and remove unneeded dock widgets
while trimming the test-case
2019-10-14 21:49:36 +01:00
Sergio Martins
6957f40cdf
fuzzer: trim 1.json to the minimum to reproduce
2019-10-14 21:22:21 +01:00
Sergio Martins
6a3084abb6
fuzzer: Add failing testcase
...
Gives:
MultiSplitterLayout::checkSanity: Widget KDDockWidgets::Item(0x55e8038d8f90)
with rect QRect(0,0 1953x407) Intersects anchor KDDockWidgets::Anchor(0x55e803a17ba0)
with rect QRect(1209,406 5x562)
2019-10-13 23:52:27 +01:00
Sergio Martins
09101e9252
fuzzer: Don't allow Pause action to pause during regular runs
...
We only want to pause when we add it ourselves in the json
2019-10-13 23:49:39 +01:00
Sergio Martins
a0e3f32a63
fuzzer: Don't add as tab a widget that's already in the same mainwindow
...
Remove the testcase json, since this case shouldn't be tested
2019-10-13 23:49:10 +01:00
Sergio Martins
fb52c4053e
fuzzer: Add a Pause action, for debugging purposes
2019-10-13 22:51:01 +01:00
Sergio Martins
f2e76c704e
fuzzer: Don't store the index in the json, it's not needed
2019-10-13 22:44:05 +01:00
Sergio Martins
3895af14ea
fuzzer: add a slowdown option
2019-10-13 22:05:20 +01:00
Sergio Martins
6b0d493b48
fuzzer: Add json test case of a failing test
...
Generates:
void KDDockWidgets::Item::onLayoutRequest() const Constraints not honoured
2019-10-13 21:49:35 +01:00
Sergio Martins
dd580a0f2f
fuzzer: Don't generate random params when replaying
...
When replaying we want to replay with the params we read from json
2019-10-13 21:32:43 +01:00
Sergio Martins
3c6625164c
fuzzer: add a method to check if the operation has params
2019-10-13 21:14:34 +01:00
Sergio Martins
d23eb035b9
fuzzer: Don't add dock widget to tabwidget already containing it
2019-10-13 18:51:41 +01:00
Sergio Martins
e278d0108a
Add OperationBase::newOperation() to avoid duplicated code
2019-10-13 18:41:27 +01:00
Sergio Martins
ae439e0dad
fuzzer: Add new operation: AddDockWidgetAsTab
2019-10-13 18:34:51 +01:00
Sergio Martins
e5b5885892
fuzzer: Add a 50ms delay, make the window manager happier
2019-10-13 18:09:13 +01:00
Sergio Martins
0ca0ad492b
fuzzer: don't require dock widgets to exist when loading json
...
They'll be created later. So use their name instead of a pointer
to them.
2019-10-13 17:50:50 +01:00
Sergio Martins
c709f7743d
fuzzer: Fix reading height and width from json
2019-10-13 17:12:18 +01:00
Sergio Martins
b82977d9ee
fuzzer: minor refactor to share code
2019-10-13 17:06:41 +01:00
Sergio Martins
28d0aa25ae
fuzzer: Loading from json now works
2019-10-13 17:01:08 +01:00
Sergio Martins
069a9654aa
fuzzer: Don't dump json when we're loading from json
2019-10-13 17:00:53 +01:00
Sergio Martins
78efe4097f
fuzzer: Add fromVariantMap(), so we can read the json
2019-10-13 14:03:23 +01:00
Sergio Martins
acf6cfb327
Add QCommandLineParser support
2019-10-12 10:13:32 +01:00
Sergio Martins
09b2d749fa
fuzzer: Don't hide hidden dock widgets and don't show visible ones
2019-10-12 10:13:12 +01:00
Sergio Martins
954fb271d3
fuzzer: Also serialize the AddDockWidget operation
2019-10-11 17:04:26 +01:00
Sergio Martins
2769c8a789
fuzzer: Fix serializing QRect and QSize
2019-10-11 15:09:24 +01:00
Sergio Martins
38619e734f
fuzzer: dump to json when it fails
2019-10-11 14:18:20 +01:00
Sergio Martins
005e811eaa
fuzzer: Fix hidding/showing operations
...
They werent receiving a dock widget name.
Normalized them, they now receive Fuzzer* via ctor
2019-10-11 13:33:13 +01:00
Sergio Martins
4d7da1e6f3
tests: Fix build
...
Fuzzer.cpp was filtered out by .gitignore
2019-10-11 13:27:13 +01:00
Sergio Martins
233d3f14cc
fuzzer: AddDockWidget operation now works
2019-10-11 13:20:16 +01:00
Sergio Martins
e432c0d409
fuzzer: Move fuzzer into a fuzzer/ directory
2019-10-11 12:45:34 +01:00