From: asl Date: Thu, 28 Sep 2017 08:58:14 +0000 (+0300) Subject: refs #1331: debug of the final test case X-Git-Tag: v2.1~66^2~12^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_1331;p=modules%2Fhydro.git refs #1331: debug of the final test case --- 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 );