]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/geometry/size.cpp
Tweak wxGTK keyboard handling to allow accelerators to work again.
[wxWidgets.git] / tests / geometry / size.cpp
index 160f6241b1f316ac6049bed3f0f1eb40bc95f3ce..1df26717c7f79fbf7efe911e512aba5e562b84b8 100644 (file)
@@ -1,7 +1,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        tests/geometry/size.cpp
 // Purpose:     wxSize unit test
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        tests/geometry/size.cpp
 // Purpose:     wxSize unit test
-// Author:      Vadim Zeitlin
+// Author:      Wlodzimierz ABX Skiba
 // Created:     2004-12-14
 // RCS-ID:      $Id$
 // Copyright:   (c) 2004 wxWindows
 // Created:     2004-12-14
 // RCS-ID:      $Id$
 // Copyright:   (c) 2004 wxWindows
@@ -43,7 +43,7 @@ private:
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( SizeTestCase );
 
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( SizeTestCase );
 
-// also include in it's own registry so that these tests can be run alone
+// also include in its own registry so that these tests can be run alone
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( SizeTestCase, "SizeTestCase" );
 
 void SizeTestCase::Operators()
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( SizeTestCase, "SizeTestCase" );
 
 void SizeTestCase::Operators()
@@ -58,6 +58,8 @@ void SizeTestCase::Operators()
     CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==2 );
     s3 = s1 * 2;
     CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==4 );
     CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==2 );
     s3 = s1 * 2;
     CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==4 );
+    s3 = 2 * s1;
+    CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==4 );
     s3 = s3 / 2;
     CPPUNIT_ASSERT( s3.GetWidth()==1 && s3.GetHeight()==2 );
 
     s3 = s3 / 2;
     CPPUNIT_ASSERT( s3.GetWidth()==1 && s3.GetHeight()==2 );