mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
14 lines
669 B
C++
14 lines
669 B
C++
#include "gtest/gtest.h"
|
|||
|
|
|
||
|
|
#include "RimDockWindowController.h"
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
/// handleViewerDeletion() used to dereference viewPdmObject() (m_viewToControl) unconditionally.
|
||
|
|
/// Calling it before setViewToControl() has ever been called (m_viewToControl is null) must not crash.
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
TEST( RimDockWindowControllerTest, HandleViewerDeletionWithoutViewToControlDoesNotCrash )
|
||
|
|
{
|
||
|
|
RimDockWindowController controller;
|
||
|
|
|
||
|
|
EXPECT_NO_FATAL_FAILURE( controller.handleViewerDeletion() );
|
||
|
|
}
|