fix: harden caret and IBus dispatch
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "test.h"
|
||||
#include <limits.h>
|
||||
|
||||
void
|
||||
popup_layout(struct ct *t)
|
||||
@@ -24,4 +25,10 @@ popup_layout(struct ct *t)
|
||||
popupposition(&caret, 0, 0, 800, 600, 100, 60, &x, &y);
|
||||
CT_EQ_INT(t, 700, x);
|
||||
CT_EQ_INT(t, 540, y);
|
||||
caret.x = INT_MIN;
|
||||
caret.y = INT_MAX;
|
||||
caret.h = INT_MAX;
|
||||
popupposition(&caret, 0, 0, 800, 600, 100, 60, &x, &y);
|
||||
CT_EQ_INT(t, 0, x);
|
||||
CT_EQ_INT(t, 540, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user