aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-01 19:35:58 +0200
committerDavid Robillard <d@drobilla.net>2020-04-01 19:41:37 +0200
commitfcddc7933dbff47754b8e4acea7406b77df1bf21 (patch)
tree8d82bc731b5e86b10e28acc85654d9be86ff321a /test
parent3f71daba7d92c50f7fd31e8775fc58d3ebf3900d (diff)
downloadpugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.gz
pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.tar.bz2
pugl-fcddc7933dbff47754b8e4acea7406b77df1bf21.zip
Replace puglShowWindow() with puglRealize()
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