Changeset 141
- Timestamp:
- 05/01/06 18:00:18 (2 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 modified
-
src/MainPter.cxx (modified) (1 diff)
-
tests/DumbMainView.cxx (modified) (6 diffs)
-
tests/DumbMainView.h (modified) (6 diffs)
-
tests/DumbPageView.cxx (added)
-
tests/DumbPageView.h (added)
-
tests/MainPterTest.cxx (modified) (38 diffs)
-
tests/Makefile.am (modified) (1 diff)
-
tests/PagePterTest.cxx (added)
-
tests/PagePterTest.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainPter.cxx
r140 r141 610 610 setInitialState (); 611 611 m_Document->goToFirstPage (); 612 notifyPageChanged (1); 612 613 #if defined (DEBUG) 613 614 G_LOCK (fileLoaded); -
trunk/tests/DumbMainView.cxx
r123 r141 17 17 18 18 #include <epdfview.h> 19 #include "DumbPageView.h" 19 20 #include "DumbMainView.h" 20 21 … … 28 29 { 29 30 m_CurrentPage = 0; 30 // This won't be deleted because it's presenter responsibility.31 m_DocumentPage = NULL;32 31 m_GoToPageText = g_strdup (""); 33 32 m_OpenFileName = g_strdup (""); 34 33 m_LastOpenFileFolder = NULL; 35 34 m_Outline = NULL; 35 m_PageView = new DumbPageView (); 36 36 m_Password = NULL; 37 37 m_SensitiveGoToFirstPage = TRUE; … … 79 79 m_ZoomToWidth = active; 80 80 } 81 82 IPageView * 83 DumbMainView::getPageView (void) 84 { 85 return m_PageView; 86 } 81 87 82 88 gchar * … … 198 204 199 205 void 200 DumbMainView::getPageViewSize (gint *width, gint *height)201 {202 *width = 75;203 *height = 50;204 }205 206 void207 206 DumbMainView::setTitle (const gchar *title) 208 207 { … … 232 231 { 233 232 m_ShownError = TRUE; 234 }235 236 void237 DumbMainView::showPage (DocumentPage *page, PageScroll scroll)238 {239 m_DocumentPage = page;240 233 } 241 234 … … 291 284 { 292 285 return m_TotalPages; 293 }294 295 gboolean296 DumbMainView::hasImagePageView ()297 {298 gboolean shown = (NULL != m_DocumentPage);299 // The next time, it will be FALSE unless it's shown again.300 m_DocumentPage = NULL;301 302 return shown;303 286 } 304 287 -
trunk/tests/DumbMainView.h
r123 r141 21 21 namespace ePDFView 22 22 { 23 // Forward declarations. 24 class DumbPageView; 25 23 26 class DumbMainView: public IMainView 24 27 { … … 30 33 void activeZoomFit (gboolean active); 31 34 void activeZoomWidth (gboolean active); 35 IPageView *getPageView (void); 32 36 gchar *openFileDialog (const gchar *lastFolder); 33 37 gchar *promptPasswordDialog (void); … … 46 50 void sensitiveZoomWidth (gboolean sensitive); 47 51 const gchar *getGoToPageText (void); 48 void getPageViewSize (gint *width, gint *height);49 52 void setCursor (ViewCursor cursorType); 50 53 void setTotalPages (gint pages); … … 55 58 void show (void); 56 59 void showErrorMessage (const gchar *title, const gchar *body); 57 void showPage (DocumentPage *page, PageScroll scroll);58 60 void showIndex (gboolean show); 59 61 void showStatusbar (gboolean show); … … 67 69 const gchar *getTitle (void); 68 70 gint getTotalPages (void); 69 gboolean hasImagePageView (void);70 71 gboolean isShown (void); 71 72 gboolean isSensitiveGoToFirstPage (void); … … 92 93 protected: 93 94 gint m_CurrentPage; 94 DocumentPage *m_DocumentPage;95 95 gchar *m_GoToPageText; 96 96 gchar *m_LastOpenFileFolder; 97 97 gchar *m_OpenFileName; 98 98 DocumentOutline *m_Outline; 99 DumbPageView *m_PageView; 99 100 gchar *m_Password; 100 101 gboolean m_SensitiveGoToFirstPage; -
trunk/tests/MainPterTest.cxx
r136 r141 91 91 CPPUNIT_ASSERT (m_View->isShownToolbar ()); 92 92 CPPUNIT_ASSERT (m_View->isShownStatusbar ()); 93 CPPUNIT_ASSERT (!m_View->hasImagePageView ());94 93 } 95 94 … … 124 123 CPPUNIT_ASSERT (m_View->isSensitiveZoomWidth ()); 125 124 CPPUNIT_ASSERT (!m_View->isShownIndex ()); 126 CPPUNIT_ASSERT (m_View->hasImagePageView ());127 125 128 126 // Now try a document with a title. … … 145 143 CPPUNIT_ASSERT (m_View->isSensitiveZoomWidth ()); 146 144 CPPUNIT_ASSERT (!m_View->isShownIndex ()); 147 CPPUNIT_ASSERT (m_View->hasImagePageView ());148 145 } 149 146 … … 173 170 CPPUNIT_ASSERT (!m_View->isSensitiveZoomFit ()); 174 171 CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 175 CPPUNIT_ASSERT (!m_View->hasImagePageView ());176 172 CPPUNIT_ASSERT (!m_View->shownError ()); 177 173 } … … 206 202 CPPUNIT_ASSERT (!m_View->isSensitiveZoomFit ()); 207 203 CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 208 CPPUNIT_ASSERT (!m_View->hasImagePageView ());209 204 CPPUNIT_ASSERT (m_View->shownError ()); 210 205 } … … 240 235 CPPUNIT_ASSERT (!m_View->isSensitiveZoomFit ()); 241 236 CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 242 CPPUNIT_ASSERT (!m_View->hasImagePageView ());243 237 CPPUNIT_ASSERT (!m_View->shownError ()); 244 238 } … … 274 268 CPPUNIT_ASSERT (!m_View->isSensitiveZoomFit ()); 275 269 CPPUNIT_ASSERT (!m_View->isSensitiveZoomWidth ()); 276 CPPUNIT_ASSERT (!m_View->hasImagePageView ());277 270 CPPUNIT_ASSERT (m_View->shownError ()); 278 271 CPPUNIT_ASSERT_EQUAL (3, m_View->countTimesShownPasswordPrompt ()); … … 308 301 CPPUNIT_ASSERT (m_View->isSensitiveZoomFit ()); 309 302 CPPUNIT_ASSERT (m_View->isSensitiveZoomWidth ()); 310 CPPUNIT_ASSERT (m_View->hasImagePageView ());311 303 CPPUNIT_ASSERT (!m_View->shownError ()); 312 304 CPPUNIT_ASSERT_EQUAL (1, m_View->countTimesShownPasswordPrompt ()); … … 357 349 CPPUNIT_ASSERT_EQUAL (4, m_View->getTotalPages ()); 358 350 CPPUNIT_ASSERT_EQUAL (1, m_View->getCurrentPage ()); 359 CPPUNIT_ASSERT (m_View->hasImagePageView ());360 // This is to check that after calling this function, it returns false361 // because no page can be shown between the two... (I didn't called362 // the presenter or the view, yet)363 CPPUNIT_ASSERT (!m_View->hasImagePageView ());364 351 // Going to the next page should make all actions sensitive. 365 352 m_MainPter->goToNextPageActivated (); … … 370 357 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 371 358 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 372 CPPUNIT_ASSERT (m_View->hasImagePageView ());373 359 // Going to the last will make some insensitive. 374 360 m_MainPter->goToLastPageActivated (); … … 379 365 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 380 366 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 381 CPPUNIT_ASSERT (m_View->hasImagePageView ());382 367 // Again to the last won't harm (just in case...) nor going next. 383 368 m_MainPter->goToLastPageActivated (); … … 389 374 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 390 375 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 391 // Since the page hasn't changed, no image preview is shown.392 CPPUNIT_ASSERT (!m_View->hasImagePageView ());393 376 // But going to the previous will change something. 394 377 m_MainPter->goToPreviousPageActivated (); … … 399 382 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 400 383 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 401 CPPUNIT_ASSERT (m_View->hasImagePageView ());402 CPPUNIT_ASSERT (!m_View->hasImagePageView ());403 384 // Now, to the first again. 404 385 m_MainPter->goToFirstPageActivated (); … … 409 390 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 410 391 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 411 CPPUNIT_ASSERT (m_View->hasImagePageView ());412 392 // Check sane behaviour. 413 393 m_MainPter->goToFirstPageActivated (); … … 419 399 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 420 400 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 421 // The page hasn't changed.422 CPPUNIT_ASSERT (!m_View->hasImagePageView ());423 401 } 424 402 … … 440 418 CPPUNIT_ASSERT_EQUAL (4, m_View->getTotalPages ()); 441 419 CPPUNIT_ASSERT_EQUAL (1, m_View->getCurrentPage ()); 442 CPPUNIT_ASSERT (m_View->hasImagePageView ());443 420 444 421 // Now try again using the page entry on toolbar. … … 451 428 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 452 429 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 453 CPPUNIT_ASSERT (m_View->hasImagePageView ());454 430 455 431 m_View->setGoToPageText ("4 of 4"); … … 461 437 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 462 438 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 463 CPPUNIT_ASSERT (m_View->hasImagePageView ());464 439 465 440 m_View->setGoToPageText ("1 of 4"); … … 471 446 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 472 447 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 473 CPPUNIT_ASSERT (m_View->hasImagePageView ());474 448 475 449 // Invalid values. Remains to the same page. … … 482 456 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 483 457 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 484 // Since the page hasn't changed, no image preview is shown.485 CPPUNIT_ASSERT (!m_View->hasImagePageView ());486 458 487 459 m_View->setGoToPageText ("0 of 12"); … … 493 465 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 494 466 CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 495 CPPUNIT_ASSERT (!m_View->hasImagePageView ());496 467 497 468 m_MainPter->goToNextPageActivated (); 498 CPPUNIT_ASSERT (m_View->hasImagePageView ());499 469 m_View->setGoToPageText ("Jejej :-)"); 500 470 m_MainPter->goToPageActivated (); … … 505 475 CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 506 476 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 507 CPPUNIT_ASSERT (!m_View->hasImagePageView ());508 477 } 509 478 … … 519 488 m_MainPter->openFileActivated (); 520 489 m_MainPter->waitForFileLoaded (); 521 CPPUNIT_ASSERT (m_View->hasImagePageView ());522 CPPUNIT_ASSERT (!m_View->hasImagePageView ());523 490 CPPUNIT_ASSERT_EQUAL (0, m_Document->getRotation ()); 524 491 525 492 m_MainPter->rotateRightActivated (); 526 CPPUNIT_ASSERT (m_View->hasImagePageView ());527 CPPUNIT_ASSERT (!m_View->hasImagePageView ());528 493 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 529 494 530 495 m_MainPter->rotateLeftActivated (); 531 CPPUNIT_ASSERT (m_View->hasImagePageView ());532 CPPUNIT_ASSERT (!m_View->hasImagePageView ());533 496 CPPUNIT_ASSERT_EQUAL (0, m_Document->getRotation ()); 534 497 } … … 548 511 m_MainPter->openFileActivated (); 549 512 m_MainPter->waitForFileLoaded (); 550 CPPUNIT_ASSERT (m_View->hasImagePageView ());551 CPPUNIT_ASSERT (!m_View->hasImagePageView ());552 513 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 553 514 554 515 m_MainPter->zoomInActivated (); 555 CPPUNIT_ASSERT (m_View->hasImagePageView ());556 CPPUNIT_ASSERT (!m_View->hasImagePageView ());557 516 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.2, m_Document->getZoom (), 0.0001); 558 517 559 518 m_MainPter->zoomOutActivated (); 560 CPPUNIT_ASSERT (m_View->hasImagePageView ());561 CPPUNIT_ASSERT (!m_View->hasImagePageView ());562 519 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 563 520 … … 588 545 m_MainPter->openFileActivated (); 589 546 m_MainPter->waitForFileLoaded (); 590 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 591 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 592 593 // OK, now try to zoom width. Since rotation is 0 594 // the zoom level should be 75/100 = 0.75 547 595 548 m_MainPter->zoomWidthActivated (TRUE); 596 549 CPPUNIT_ASSERT (m_View->isZoomToWidthActive ()); 597 CPPUNIT_ASSERT (m_View->hasImagePageView ());598 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001);599 600 // Now change the view size. We do this calling the main presenter's601 // function instead of the view, because the view here don't have anything602 // to do.603 // The new zoom should be 50/100 = 0.5604 m_MainPter->pageViewResized (50, 50);605 CPPUNIT_ASSERT (m_View->hasImagePageView ());606 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.5, m_Document->getZoom (), 0.0001);607 608 m_MainPter->pageViewResized (75, 50);609 CPPUNIT_ASSERT (m_View->hasImagePageView ());610 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001);611 612 // If we desactive the zoom to width, no resizing changes the613 // zoom.614 550 m_MainPter->zoomWidthActivated (FALSE); 615 551 CPPUNIT_ASSERT (!m_View->isZoomToWidthActive ()); 616 m_MainPter->pageViewResized (50, 50);617 CPPUNIT_ASSERT (!m_View->hasImagePageView ());618 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001);619 m_MainPter->pageViewResized (100, 50);620 CPPUNIT_ASSERT (!m_View->hasImagePageView ());621 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001);622 623 // Now rotate and try again.624 m_MainPter->rotateRightActivated ();625 CPPUNIT_ASSERT (m_View->hasImagePageView ());626 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ());627 // Since rotation is now 90 the zoom level should be 75/250 = 0.3628 552 m_MainPter->zoomWidthActivated (TRUE); 629 553 CPPUNIT_ASSERT (m_View->isZoomToWidthActive ()); 630 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 631 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 632 // Resizing. 50/250 = 0.2 633 m_MainPter->pageViewResized (50, 50); 634 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 635 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 636 637 // Changing any of the zoom in or zoom out features should make the 554 // Changing any of the zoom in or zoom out features should make the 638 555 // zoom to width not being active. 639 556 m_MainPter->zoomInActivated (); … … 653 570 m_MainPter->openFileActivated (); 654 571 m_MainPter->waitForFileLoaded (); 655 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 656 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 657 658 // OK, now try to zoom to fit. Since rotation is 0 659 // the zoom level should be 50/250 = 0.2 572 660 573 m_MainPter->zoomFitActivated (TRUE); 661 574 CPPUNIT_ASSERT (m_View->isZoomToFitActive ()); 662 CPPUNIT_ASSERT (m_View->hasImagePageView ());663 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001);664 665 // Resizing the view size. 100/250 = 0.4666 m_MainPter->pageViewResized (100, 100);667 CPPUNIT_ASSERT (m_View->hasImagePageView ());668 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.4, m_Document->getZoom (), 0.0001);669 m_MainPter->pageViewResized (100, 50);670 CPPUNIT_ASSERT (m_View->hasImagePageView ());671 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001);672 673 // Desactivating the zoom to fit.674 575 m_MainPter->zoomFitActivated (FALSE); 675 576 CPPUNIT_ASSERT (!m_View->isZoomToFitActive ()); 676 m_MainPter->pageViewResized (100, 100);677 CPPUNIT_ASSERT (!m_View->hasImagePageView ());678 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001);679 m_MainPter->pageViewResized (100, 50);680 CPPUNIT_ASSERT (!m_View->hasImagePageView ());681 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001);682 683 // Now rotate and try again.684 m_MainPter->rotateRightActivated ();685 CPPUNIT_ASSERT (m_View->hasImagePageView ());686 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ());687 688 // Since rotation is now 90 the zoom level should be 75/250 = 0.3689 577 m_MainPter->zoomFitActivated (TRUE); 690 578 CPPUNIT_ASSERT (m_View->isZoomToFitActive ()); 691 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 692 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 693 // 100/250 = 0.4 694 m_MainPter->pageViewResized (100, 100); 695 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.4, m_Document->getZoom (), 0.0001); 696 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 697 698 // Changing any of the zoom in or zoom out features should make the 579 // Changing any of the zoom in or zoom out features should make the 699 580 // zoom to fit not being active. 700 581 m_MainPter->zoomInActivated (); … … 717 598 m_MainPter->openFileActivated (); 718 599 m_MainPter->waitForFileLoaded (); 719 CPPUNIT_ASSERT (m_View->hasImagePageView ());720 600 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 721 601 … … 761 641 m_MainPter->openFileActivated (); 762 642 m_MainPter->waitForFileLoaded (); 763 CPPUNIT_ASSERT (m_View->hasImagePageView ());764 643 765 644 m_MainPter->goToNextPageActivated (); … … 769 648 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 770 649 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 771 CPPUNIT_ASSERT (m_View->hasImagePageView ());772 650 773 651 // Reload the document. … … 779 657 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 780 658 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 781 CPPUNIT_ASSERT (m_View->hasImagePageView ());782 659 } 783 660 … … 797 674 m_MainPter->openFileActivated (); 798 675 m_MainPter->waitForFileLoaded (); 799 CPPUNIT_ASSERT (m_View->hasImagePageView ());800 676 CPPUNIT_ASSERT_EQUAL (0, 801 677 g_ascii_strcasecmp ("/tmp/test.pdf", m_View->getTitle ())); … … 807 683 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 808 684 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 809 CPPUNIT_ASSERT (m_View->hasImagePageView ());810 685 811 686 // Reload the document. … … 820 695 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 821 696 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 822 CPPUNIT_ASSERT (m_View->hasImagePageView ());823 697 CPPUNIT_ASSERT (!m_View->shownError ()); 824 698 CPPUNIT_ASSERT_EQUAL (0, m_View->countTimesShownPasswordPrompt ()); … … 840 714 m_MainPter->openFileActivated (); 841 715 m_MainPter->waitForFileLoaded (); 842 CPPUNIT_ASSERT (m_View->hasImagePageView ());843 716 CPPUNIT_ASSERT_EQUAL (0, 844 717 g_ascii_strcasecmp ("/tmp/test.pdf", m_View->getTitle ())); … … 850 723 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 851 724 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 852 CPPUNIT_ASSERT (m_View->hasImagePageView ());853 725 854 726 // Reload the document. … … 867 739 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 868 740 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 869 CPPUNIT_ASSERT (m_View->hasImagePageView ());870 741 CPPUNIT_ASSERT (!m_View->shownError ()); 871 742 CPPUNIT_ASSERT_EQUAL (1, m_View->countTimesShownPasswordPrompt ()); … … 897 768 CPPUNIT_ASSERT (m_View->isShownIndex ()); 898 769 CPPUNIT_ASSERT (outline == m_View->getOutline ()); 899 CPPUNIT_ASSERT (m_View->hasImagePageView ());900 770 901 771 // When the user does click on a outline item, the view … … 904 774 m_MainPter->outlineActivated (child); 905 775 CPPUNIT_ASSERT_EQUAL (2, m_View->getCurrentPage ()); 906 CPPUNIT_ASSERT (m_View->hasImagePageView ());907 776 908 777 // When the user clicks on the "Show Index" option, the -
trunk/tests/Makefile.am
r136 r141 18 18 DumbMainView.cxx \ 19 19 DumbMainView.h \ 20 DumbPageView.cxx \ 21 DumbPageView.h \ 20 22 main.cxx \ 21 23 MainPterTest.cxx \ 22 24 MainPterTest.h \ 25 PagePterTest.cxx \ 26 PagePterTest.h \ 23 27 PDFDocumentTest.cxx \ 24 28 PDFDocumentTest.h \
