From e2d39062ddc79748a9e94ec692162f372740e341 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 28 Sep 2017 11:58:14 +0300 Subject: [PATCH] refs #1331: debug of the final test case --- src/HYDRO_tests/test_HYDROGUI_ProfilesDlg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HYDRO_tests/test_HYDROGUI_ProfilesDlg.cxx b/src/HYDRO_tests/test_HYDROGUI_ProfilesDlg.cxx index 65902854..0bac9b98 100644 --- a/src/HYDRO_tests/test_HYDROGUI_ProfilesDlg.cxx +++ b/src/HYDRO_tests/test_HYDROGUI_ProfilesDlg.cxx @@ -162,13 +162,13 @@ void test_HYDROGUI_ProfilesDlg::test_points_table() CPPUNIT_ASSERT_EQUAL( std::string( "20, 0, 0, 20" ), coords( dlg, 3 ) ); setCoords( dlg, 0, 80 ); - dlg->myEditorWidget->myLocalPointView->sortByColumn( 2 ); - CPPUNIT_ASSERT_EQUAL( std::string( "90, 80, 60, 30" ), coords( dlg ) ); - CPPUNIT_ASSERT_EQUAL( std::string( "20, 20, 0, 0" ), coords( dlg, 3 ) ); + dlg->myEditorWidget->myLocalPointView->OnHeaderClick( 2 ); + CPPUNIT_ASSERT_EQUAL( std::string( "30, 60, 80, 90" ), coords( dlg ) ); + CPPUNIT_ASSERT_EQUAL( std::string( "0, 0, 20, 20" ), coords( dlg, 3 ) ); - setCoords( dlg, 1, 0 ); - CPPUNIT_ASSERT_EQUAL( std::string( "90, 0, 60, 30" ), coords( dlg ) ); - CPPUNIT_ASSERT_EQUAL( std::string( "20, 20, 0, 0" ), coords( dlg, 3 ) ); + setCoords( dlg, 2, 0 ); + CPPUNIT_ASSERT_EQUAL( std::string( "30, 60, 0, 90" ), coords( dlg ) ); + CPPUNIT_ASSERT_EQUAL( std::string( "0, 0, 20, 20" ), coords( dlg, 3 ) ); //qApp->processEvents(); //QTest::qWait( 50000 ); -- 2.39.2