Skip to content

Commit

Permalink
Update unit tests with last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Jul 25, 2016
1 parent 7afaf8a commit fd7bcad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions tests/unit/labelTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ TEST_CASE( "Ensure anchor fallback behavior when looping over all fallbacks with
l.update(glm::ortho(0.f, screenSize.x, screenSize.y, 0.f, -1.f, 1.f), screenSize, 0);
l.occlude(true);
l.evalState(1.f);
REQUIRE(l.state() == Label::State::fading_out);
REQUIRE(l.state() == Label::State::sleep);

l.update(glm::ortho(0.f, screenSize.x, screenSize.y, 0.f, -1.f, 1.f), screenSize, 0);
l.occlude(true);
Expand All @@ -254,7 +254,6 @@ TEST_CASE( "Ensure anchor fallback behavior when looping over all fallbacks with
}
}

#if 0
TEST_CASE( "Ensure anchor fallback behavior when looping over all fallback and finding one", "[Core][Label]" ) {
TextLabel l = makeLabelWithAnchorFallbacks();

Expand All @@ -276,4 +275,3 @@ TEST_CASE( "Ensure anchor fallback behavior when looping over all fallback and f
REQUIRE(l.anchorType() == LabelProperty::Anchor::left);
REQUIRE(l.state() == Label::State::visible);
}
#endif
2 changes: 0 additions & 2 deletions tests/unit/lineWrapTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ void initFont(std::string _font = TEST_FONT) {
font->addFace(face);
}

// TODO: Update

TEST_CASE("Ensure empty line is given when giving empty shape to alfons", "[Core][Alfons]") {
initFont();
auto line = shaper.shape(font, "");
Expand Down

0 comments on commit fd7bcad

Please sign in to comment.