summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgue5t <gue5t@midori.launchpad>2015-08-09 19:26:03 -0500
committergue5t <gue5t@midori.launchpad>2015-08-09 19:26:03 -0500
commit72b5ff42823fbe6faa165c5964a25350257115da (patch)
treeccfa36eed942dad6d9088c62582efc97b5dbb076 /tests
parenta01a5f94e914e5edfabbfb8822390dbcfc2bea59 (diff)
downloadmidori-72b5ff42823fbe6faa165c5964a25350257115da.tar.gz
Fix a pointer truncation bug on 64-bit where C compiler assumed int return type
Diffstat (limited to 'tests')
-rw-r--r--tests/actions.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/actions.vala b/tests/actions.vala
index b44c891c..90ae8f62 100644
--- a/tests/actions.vala
+++ b/tests/actions.vala
@@ -20,13 +20,17 @@ void actions_view_page () {
var hit_test_result = Object.new (typeof (WebKit.HitTestResult), "context", WebKit.HitTestResultContext.DOCUMENT) as WebKit.HitTestResult;
var menu = view.get_page_context_action (hit_test_result);
+ assert (menu != null);
assert (menu.name == "PageContextMenu");
assert (menu.get_by_name ("Back") != null);
#if !HAVE_WEBKIT2
- hit_test_result = Object.new (typeof (WebKit.HitTestResult), "context", WebKit.HitTestResultContext.EDITABLE) as WebKit.HitTestResult;
- menu = view.get_page_context_action (hit_test_result);
- var copy = menu.get_by_name ("Copy");
+ var hit_test_result2 = Object.new (typeof (WebKit.HitTestResult), "context", WebKit.HitTestResultContext.EDITABLE) as WebKit.HitTestResult;
+ var menu2 = view.get_page_context_action (hit_test_result2);
+ assert (menu2 != null);
+ assert (menu2.name == "PageContextMenu");
+ var copy = menu2.get_by_name ("Copy");
+ assert (copy != null);
assert (!copy.sensitive);
assert (view.web_view.search_text ("flat", true, false, false));
menu = view.get_page_context_action (hit_test_result);