diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-12-17 13:16:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-17 13:16:57 +0100 |
| commit | 08f6741d7b0115787309c9ee4800ecbe317c3c07 (patch) | |
| tree | 9663fa697c71f5935b66acbb504edc2e48a64c11 /test/unittest_viewport.cxx | |
| parent | 07041ea06e5516c6dc1b1421bfdb1f58678c56fd (diff) | |
Make unittest conform to CMP (#597)
Update unittest README
Diffstat (limited to 'test/unittest_viewport.cxx')
| -rw-r--r-- | test/unittest_viewport.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unittest_viewport.cxx b/test/unittest_viewport.cxx index 417a9cfa5..a4424ace8 100644 --- a/test/unittest_viewport.cxx +++ b/test/unittest_viewport.cxx @@ -22,12 +22,12 @@ // //------- test viewport clipping ---------- // -class ViewportTest : public Fl_Box { +class Ut_Viewport_Test : public Fl_Box { public: static Fl_Widget *create() { - return new ViewportTest(TESTAREA_X, TESTAREA_Y, TESTAREA_W, TESTAREA_H); + return new Ut_Viewport_Test(UT_TESTAREA_X, UT_TESTAREA_Y, UT_TESTAREA_W, UT_TESTAREA_H); } - ViewportTest(int x, int y, int w, int h) : Fl_Box(x, y, w, h) { + Ut_Viewport_Test(int x, int y, int w, int h) : Fl_Box(x, y, w, h) { label("Testing Viewport Alignment\n\n" "Only green lines should be visible.\n" "If red lines are visible in the corners of this window,\n" @@ -40,12 +40,12 @@ public: } void show() { Fl_Box::show(); - mainwin->testAlignment(1); + mainwin->test_alignment(1); } void hide() { Fl_Box::hide(); - mainwin->testAlignment(0); + mainwin->test_alignment(0); } }; -UnitTest viewport(kTestViewport, "Viewport Test", ViewportTest::create); +UnitTest viewport(UT_TEST_VIEWPORT, "Viewport Test", Ut_Viewport_Test::create); |
