diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-29 10:47:44 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-29 10:50:05 (GMT) |
commit | 0f1aeb863474d2894a896fb28ea8eae8d736a363 (patch) | |
tree | 8e09e63e346b557184e1ff9d02c1fa78f5be1e74 /tests/auto/qwidget | |
parent | ce0c22d4da46664636e651285f6e3ba38e77aea7 (diff) | |
download | Qt-0f1aeb863474d2894a896fb28ea8eae8d736a363.zip Qt-0f1aeb863474d2894a896fb28ea8eae8d736a363.tar.gz Qt-0f1aeb863474d2894a896fb28ea8eae8d736a363.tar.bz2 |
Fix tst_QWidget::compatibilityChildInsertedEvents test
This broke after commit: a8e2a457bb7d2fc377c1c65b6a4172974919e055
(Add a new event type, WinIdChange). The first thing that happens in
show() is that the top-level is created, and hence we send WinIdChange.
We therefore have to add this event to list of expected events.
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 9c421d1..c27de1d 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -6320,6 +6320,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) << qMakePair(&widget, QEvent::Move) << qMakePair(&widget, QEvent::Resize) @@ -6405,6 +6406,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) #ifdef QT_HAS_QT3SUPPORT << qMakePair(&widget, QEvent::ChildInserted) @@ -6502,6 +6504,7 @@ void tst_QWidget::compatibilityChildInsertedEvents() widget.show(); expected = EventRecorder::EventList() + << qMakePair(&widget, QEvent::WinIdChange) << qMakePair(&widget, QEvent::Polish) #ifdef QT_HAS_QT3SUPPORT << qMakePair(&widget, QEvent::ChildInserted) |