~azzar1/nux/fix-916088

« back to all changes in this revision

Viewing changes to tests/test_graphics_display.cpp

  • Committer: Jay Taoko
  • Date: 2011-11-21 19:10:06 UTC
  • mfrom: (518.1.7 nux-fix-makecheck)
  • Revision ID: jay.taoko@canonical.com-20111121191006-cv93lu1vwk2wibkc
* Added requirement for XTest
* Fixed crash in GraphicsDisplay at program termination.
* Added Automated test Framework
* Added Testing framework
* Added empty program test
* Added Button test through XTest
* Added macros nuxOkMsg to NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    nux::NuxInitialize(0);
36
36
    // When the GUI thread is created, it creates the GraphicsDisplay.
37
37
    nux::WindowThread* wt = nux::CreateGUIThread(TEXT("Graphics Display"),
38
 
                                                 400, 300, 0, &ThreadWidgetInit, 0);
 
38
                                                 300, 200, 0, &ThreadWidgetInit, 0);
39
39
 
40
40
    // Test to see if the variable in GraphicsDisplay is initialized
41
41
    int result = 1;
49
49
      std::cerr << "FAIL: GraphicsDisplay hasn't correctly initialized.\n";
50
50
    }
51
51
 
52
 
    // Dont want to make the window pop up
53
 
    //wt->Run(NULL);
54
 
 
55
52
    delete wt;
56
53
    return result;
57
54
}