Skip to content

Commit

Permalink
Fix for unit test that may fail when using super high dpi.
Browse files Browse the repository at this point in the history
The scrollbars could interfere with the expected outcome of
some tests so just make the text field a lot larger.
  • Loading branch information
fruxo committed Jun 10, 2014
1 parent 9f342ca commit 8a8e940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tb/tests/test_tb_style_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TB_TEST_GROUP(tb_editfield)
sedit = edit->GetStyleEdit();

/** Set a size so the layout code will be called and we can do some layout tests. */
edit->SetRect(TBRect(0, 0, 100, 100));
edit->SetRect(TBRect(0, 0, 1000, 1000));

/** Force windows style line breaks so testing is the same on all platforms. */
sedit->SetWindowsStyleBreak(true);
Expand Down

0 comments on commit 8a8e940

Please sign in to comment.