aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_redisplay.c2
-rw-r--r--test/test_show_hide.c2
-rw-r--r--test/test_timer.c2
-rw-r--r--test/test_update.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/test_redisplay.c b/test/test_redisplay.c
index 6ec5bb8..75006cb 100644
--- a/test/test_redisplay.c
+++ b/test/test_redisplay.c
@@ -107,7 +107,7 @@ main(int argc, char** argv)
puglSetEventFunc(app.view, onEvent);
// Create and show window
- assert(!puglCreateWindow(app.view, "Pugl Test"));
+ assert(!puglRealize(app.view));
assert(!puglShowWindow(app.view));
while (app.state != EXPOSED) {
assert(!puglUpdate(app.world, timeout));
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index ed5ede7..cc2c972 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -117,7 +117,7 @@ main(int argc, char** argv)
puglSetEventFunc(test.view, onEvent);
// Create initially invisible window
- assert(!puglCreateWindow(test.view, "Pugl Test"));
+ assert(!puglRealize(test.view));
assert(!puglGetVisible(test.view));
while (test.state < CREATED) {
tick(test.world);
diff --git a/test/test_timer.c b/test/test_timer.c
index 11666ec..58d0652 100644
--- a/test/test_timer.c
+++ b/test/test_timer.c
@@ -111,7 +111,7 @@ main(int argc, char** argv)
puglSetEventFunc(app.view, onEvent);
// Create and show window
- assert(!puglCreateWindow(app.view, "Pugl Test"));
+ assert(!puglRealize(app.view));
assert(!puglShowWindow(app.view));
while (app.state != EXPOSED) {
assert(!puglUpdate(app.world, timeout));
diff --git a/test/test_update.c b/test/test_update.c
index ada3da8..081fb9b 100644
--- a/test/test_update.c
+++ b/test/test_update.c
@@ -103,7 +103,7 @@ main(int argc, char** argv)
puglSetEventFunc(app.view, onEvent);
// Create and show window
- assert(!puglCreateWindow(app.view, "Pugl Test"));
+ assert(!puglRealize(app.view));
assert(!puglShowWindow(app.view));
// Tick until an expose happens