- test_item.cpp: 3 tests for Item class - test_timelineview.cpp: 3 tests for TimelineView class - test_timelinewidget.cpp: 3 tests for TimelineWidget class - test_timelineindicator.cpp: 3 tests for TimelineIndicator class Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 lines
815 B
C++
39 lines
815 B
C++
#include "Lts/Common/LtsTimelineClassic/TimelineView.h"
|
|
|
|
#include <QWidget>
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace LtsTimelineClassic
|
|
{
|
|
|
|
class TimelineViewTest : public ::testing::Test
|
|
{
|
|
protected:
|
|
void SetUp() override {}
|
|
|
|
void TearDown() override {}
|
|
};
|
|
|
|
TEST(TimelineViewTest, HeaderCompilesAndLinks)
|
|
{
|
|
// Verify header compiles without errors
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
TEST(TimelineViewTest, CanInstantiateTimelineView)
|
|
{
|
|
// Basic instantiation test
|
|
QWidget parent;
|
|
TimelineView timelineView(&parent);
|
|
EXPECT_NO_THROW(timelineView.update());
|
|
}
|
|
|
|
TEST(TimelineViewTest, TimelineViewHasValidState)
|
|
{
|
|
QWidget parent;
|
|
TimelineView timelineView(&parent);
|
|
// Test basic properties
|
|
EXPECT_NO_THROW(timelineView.setGeometry(0, 0, 800, 600));
|
|
}
|
|
|
|
} // namespace LtsTimelineClassic
|