Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcurtis committed Mar 4, 2018
1 parent 6db6de5 commit 8741540
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/qml/ui/Shortcuts.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Item {
Shortcut {
objectName: "newShortcut"
sequence: settings.newShortcut
onActivated: {print("@@@");doIfChangesDiscarded(function() { newProjectPopup.open() }, true)}
onActivated: doIfChangesDiscarded(function() { newProjectPopup.open() }, true)
enabled: canvasHasActiveFocus
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ bool TestHelper::createNewProject(Project::Type projectType, const QVariantMap &
VERIFY(!newImageProjectPopup->property("visible").toBool());
}

return !updateVariables(true, projectType);
return updateVariables(true, projectType);
}

bool TestHelper::createNewTilesetProject(int tileWidth, int tileHeight, int tilesetTilesWide, int tilesetTilesHigh,
Expand Down
4 changes: 1 addition & 3 deletions tests/testutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ do { \

#define VERIFY2(statement, description) \
do { \
if (statement) { \
return true; \
} else { \
if (!static_cast<bool>(statement)) { \
failureMessage = description; \
return false; \
} \
Expand Down

0 comments on commit 8741540

Please sign in to comment.