TEST(Timeline,range) { Timeline timeline; EXPECT_EQ(Range::EMPTY, timeline.getRange()); //no tracks timeline.emplace_back(); EXPECT_EQ(Range::EMPTY, timeline.getRange()); // empty tracks timeline[0].add(10, Clip { 1 }); EXPECT_EQ(Range(10,10), timeline.getRange()); timeline.emplace_back(); timeline[1].add(15, Clip { 6 }); EXPECT_EQ(Range(10,20), timeline.getRange()); }
TEST(Timeline,empty) { EXPECT_TRUE(Timeline().empty()); Timeline t; t.emplace_back(); t.emplace_back(); EXPECT_TRUE(t.empty()); t.front().add(0, Clip { 1 }); }