aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-23 17:14:21 +0100
committerDavid Robillard <d@drobilla.net>2020-11-25 14:18:04 +0100
commitadc925180be3a8b4a970c70c58ef6c3de6993458 (patch)
tree899a7fc130f3ac8c0630e45099df77ac7042e200 /test
parent7ce9b578a4433f9606b14291fb3b816aa67999d9 (diff)
downloadpugl-adc925180be3a8b4a970c70c58ef6c3de6993458.tar.gz
pugl-adc925180be3a8b4a970c70c58ef6c3de6993458.tar.bz2
pugl-adc925180be3a8b4a970c70c58ef6c3de6993458.zip
Rename puglShowWindow and puglHideWindow to puglShow an puglHide
These names were confusing because a view is not necessarily a window. Since there's no room for ambiguity here, simply drop the superfluous word.
Diffstat (limited to 'test')
-rw-r--r--test/test_redisplay.c2
-rw-r--r--test/test_show_hide.c4
-rw-r--r--test/test_timer.c2
-rw-r--r--test/test_update.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/test/test_redisplay.c b/test/test_redisplay.c
index 66b9168..1d5b084 100644
--- a/test/test_redisplay.c
+++ b/test/test_redisplay.c
@@ -115,7 +115,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(app.view));
- assert(!puglShowWindow(app.view));
+ assert(!puglShow(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 6252c28..4280408 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -126,13 +126,13 @@ main(int argc, char** argv)
// Show and hide window a couple of times
for (unsigned i = 0u; i < 2u; ++i) {
- assert(!puglShowWindow(test.view));
+ assert(!puglShow(test.view));
while (test.state != EXPOSED) {
tick(test.world);
}
assert(puglGetVisible(test.view));
- assert(!puglHideWindow(test.view));
+ assert(!puglHide(test.view));
while (test.state != UNMAPPED) {
tick(test.world);
}
diff --git a/test/test_timer.c b/test/test_timer.c
index 219fa59..0b77396 100644
--- a/test/test_timer.c
+++ b/test/test_timer.c
@@ -113,7 +113,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(app.view));
- assert(!puglShowWindow(app.view));
+ assert(!puglShow(app.view));
while (app.state != EXPOSED) {
assert(!puglUpdate(app.world, timeout));
}
diff --git a/test/test_update.c b/test/test_update.c
index 02b72a3..b35e96e 100644
--- a/test/test_update.c
+++ b/test/test_update.c
@@ -105,7 +105,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(app.view));
- assert(!puglShowWindow(app.view));
+ assert(!puglShow(app.view));
// Tick until an expose happens
while (app.state < EXPOSED1) {