diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-11-12 21:19:11 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-11-12 21:19:11 +0100 |
commit | 60511d72b8ca2d636624f5292d0cec7ad9742828 (patch) | |
tree | 513f28b43c4fd0bba577ccf4ee3eb9594368f05f /tests/test-expand.c | |
parent | 7ba1b65f237e7c95e0aada55e79508d695390e01 (diff) |
status_message is not a built-in variable anymore so the unit tests must use another built-in variable for testing built-in variable stuff
Diffstat (limited to 'tests/test-expand.c')
-rw-r--r-- | tests/test-expand.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test-expand.c b/tests/test-expand.c index 855d9b4..ef07c80 100644 --- a/tests/test-expand.c +++ b/tests/test-expand.c @@ -64,9 +64,9 @@ test_NAME (void) { } void -test_status_message (void) { - uzbl.gui.sbar.msg = "Hello from frosty Edmonton!"; - g_assert_cmpstr(expand("@status_message", 0), ==, "Hello from frosty Edmonton!"); +test_useragent (void) { + uzbl.net.useragent = "This is the uzbl browser (sort of). and btw: Hello from frosty Edmonton!"; + g_assert_cmpstr(expand("@useragent", 0), ==, "This is the uzbl browser (sort of). and btw: Hello from frosty Edmonton!"); } void @@ -171,12 +171,12 @@ test_escape_expansion (void) { void test_nested (void) { - uzbl.gui.sbar.msg = "xxx"; - g_assert_cmpstr(expand("@<\"..@status_message..\">@", 0), ==, "..xxx.."); - g_assert_cmpstr(expand("@<\"..\\@status_message..\">@", 0), ==, "..@status_message.."); + uzbl.net.useragent = "xxx"; + g_assert_cmpstr(expand("@<\"..@useragent..\">@", 0), ==, "..xxx.."); + g_assert_cmpstr(expand("@<\"..\\@useragent..\">@", 0), ==, "..@useragent.."); - g_assert_cmpstr(expand("@(echo ..@status_message..)@", 0), ==, "..xxx.."); - g_assert_cmpstr(expand("@(echo ..\\@status_message..)@", 0), ==, "..@status_message.."); + g_assert_cmpstr(expand("@(echo ..@useragent..)@", 0), ==, "..xxx.."); + g_assert_cmpstr(expand("@(echo ..\\@useragent..)@", 0), ==, "..@useragent.."); } int @@ -185,7 +185,7 @@ main (int argc, char *argv[]) { g_test_init(&argc, &argv, NULL); g_test_add_func("/test-expand/@keycmd", test_keycmd); - g_test_add_func("/test-expand/@status_message", test_status_message); + g_test_add_func("/test-expand/@useragent", test_useragent); g_test_add_func("/test-expand/@uri", test_uri); g_test_add_func("/test-expand/@TITLE", test_TITLE); g_test_add_func("/test-expand/@SELECTED_URI", test_SELECTED_URI); |