aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Paweł Zuzelski <pawelz@pld-linux.org>2010-01-12 14:16:54 +0100
committerGravatar Paweł Zuzelski <pawelz@pld-linux.org>2010-01-12 14:16:54 +0100
commitd8ba750b6a6c070b8dcadd96944a096a52267fcf (patch)
tree3c41e70b62eff702c1cff01c2b8c9733af82b464 /tests
parent54ed45392b4602fd22c0869afee5a57ab92ecfc2 (diff)
better way to check WebKit version
use webkit_major_version(), webkit_minor_version() and webkit_micro_version() functions to obtain webkit version instead of accessing WEBKIT_MAJOR_VERSION, WEBKIT_MINOR_VERSION and WEBKIT_MICRO_VERSION directly. WEBKIT_M*_VERSION are defined in header files included by uzbl code, so they contain WebKit version that uzbl was compiled against. webkit_m*_version() functions return WebKit version that is realy used at the moment.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-expand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-expand.c b/tests/test-expand.c
index ef07c80..01af401 100644
--- a/tests/test-expand.c
+++ b/tests/test-expand.c
@@ -72,11 +72,11 @@ test_useragent (void) {
void
test_WEBKIT_VERSION (void) {
GString* expected = g_string_new("");
- g_string_append(expected, itos(WEBKIT_MAJOR_VERSION));
+ g_string_append(expected, itos(webkit_major_version()));
g_string_append(expected, " ");
- g_string_append(expected, itos(WEBKIT_MINOR_VERSION));
+ g_string_append(expected, itos(webkit_minor_version()));
g_string_append(expected, " ");
- g_string_append(expected, itos(WEBKIT_MICRO_VERSION));
+ g_string_append(expected, itos(webkit_micro_version()));
g_assert_cmpstr(expand("@WEBKIT_MAJOR @WEBKIT_MINOR @WEBKIT_MICRO", 0), ==, g_string_free(expected, FALSE));
}