Changeset 55 for trunk/tests/MainPterTest.cxx
- Timestamp:
- 04/14/06 05:21:54 (3 years ago)
- Files:
-
- 1 modified
-
trunk/tests/MainPterTest.cxx (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/MainPterTest.cxx
r54 r55 331 331 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 332 332 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 333 CPPUNIT_ASSERT (!m_View->hasImagePageView ());334 333 // But going to the previous will change something. 335 334 m_MainPter->goToPreviousPageActivated (); … … 351 350 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 352 351 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 353 CPPUNIT_ASSERT (!m_View->hasImagePageView ());354 352 // Check sane behaviour. 355 353 m_MainPter->goToFirstPageActivated (); … … 362 360 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 363 361 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 364 CPPUNIT_ASSERT (!m_View->hasImagePageView ());365 362 } 366 363 … … 393 390 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 394 391 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 395 CPPUNIT_ASSERT (!m_View->hasImagePageView ());396 392 397 393 m_View->setGoToPageText ("4 of 4"); … … 404 400 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 405 401 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 406 CPPUNIT_ASSERT (!m_View->hasImagePageView ());407 402 408 403 m_View->setGoToPageText ("1 of 4"); … … 415 410 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 416 411 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 417 CPPUNIT_ASSERT (!m_View->hasImagePageView ());418 412 419 413 // Invalid values. … … 427 421 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 428 422 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 429 CPPUNIT_ASSERT (!m_View->hasImagePageView ());430 423 431 424 m_View->setGoToPageText ("0 of 12"); … … 438 431 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 439 432 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 440 CPPUNIT_ASSERT (!m_View->hasImagePageView ());441 433 442 434 m_MainPter->goToNextPageActivated (); … … 450 442 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 451 443 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 452 CPPUNIT_ASSERT (!m_View->hasImagePageView ());453 444 } 454 445 … … 537 528 m_MainPter->rotateRightActivated (); 538 529 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 539 CPPUNIT_ASSERT (!m_View->hasImagePageView ());540 530 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 541 531 … … 544 534 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3f, m_Document->getZoom (), 0.0001f); 545 535 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 546 CPPUNIT_ASSERT (!m_View->hasImagePageView ());547 536 // For the width it should be 75/250 = 0.3 also. 548 537 m_MainPter->zoomWidthActivated (); 549 538 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3f, m_Document->getZoom (), 0.0001f); 550 539 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 551 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 552 } 553 540 }
