summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-05-13 13:11:07 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-06-02 13:42:04 (GMT)
commit603ccb3d715b1d6e9969b2df8ab27461f51728fb (patch)
tree9808e8fe4588c461b2033fb20eb1b8a195552113 /tests
parent6c57e76ea755b28d30405fd1239bf4275e8271b4 (diff)
downloadQt-603ccb3d715b1d6e9969b2df8ab27461f51728fb.zip
Qt-603ccb3d715b1d6e9969b2df8ab27461f51728fb.tar.gz
Qt-603ccb3d715b1d6e9969b2df8ab27461f51728fb.tar.bz2
Window visibility changes update TLW backing store reference count
* When a native window becomes completely invisible, the reference count of the top-level widget's backing store is decremented. * When a previously invisible native window becomes either partially or fully visible: - If the top-level widget has a backing store, its reference count is incremented. - Otherwise, the top-level widget creates a backing store with an initial reference count of 1. Task-number: QTBUG-8697 Reviewed-by: Jason Barron
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 9369f4a..7d4f8ff 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -9635,7 +9635,6 @@ void tst_QWidget::destroyBackingStoreWhenHidden()
// Backing store should remain unchanged despite child window obscuring
// parent window
- QEXPECT_FAIL("", "QTBUG-8697", Continue);
QVERIFY(parentBs == backingStore(parent));
QVERIFY(0 == backingStore(child));
}
@@ -9742,6 +9741,7 @@ void tst_QWidget::destroyBackingStoreWhenHidden()
QVERIFY(0 != backingStore(child));
// Parent is obscured, therefore its backing store should be destroyed
+ QEXPECT_FAIL("", "QTBUG-10643", Continue);
QVERIFY(0 == backingStore(parent));
// Disable full screen