Browse Source

qt: add test for reset cache

pull/162/head
Prince Gupta 3 years ago
committed by Steve Lhomme
parent
commit
4ea2f63670
  1. 10
      modules/gui/qt/tests/test_base_model.cpp

10
modules/gui/qt/tests/test_base_model.cpp

@ -157,6 +157,15 @@ void test_invalidate_on_invalidate()
assert(!m.loading());
}
void test_null_reset()
{
Model m;
// should not crash or give out warning
// bug of MR!4786
m.resetCache();
}
void test_sanity()
{
Model m;
@ -187,6 +196,7 @@ int main(int argc, char **argv)
QCoreApplication a(argc, argv);
QMetaObject::invokeMethod(&a, [&a]()
{
test_null_reset();
test_invalidate_on_invalidate();
test_sanity();

Loading…
Cancel
Save