rendered paste bodyFrom 800dba89c9cc1c819e964c9cd9bb505127f7d813 Mon Sep 17 00:00:00 2001From: Philippe Normand <pnormand@igalia.com>Date: Tue, 9 Mar 2010 16:41:42 +0100Subject: [PATCH] 2010-03-09 Philippe Normand <pnormand@igalia.com> Rubber-stamped by Gustavo Noronha. * tests/testkeyevents.c: (load_status_cb): Added a safeguard to exit from the test if the input event injection failed.--- WebKit/gtk/ChangeLog | 8 ++++++++ WebKit/gtk/tests/testkeyevents.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-)diff --git a/WebKit/gtk/ChangeLog b/WebKit/gtk/ChangeLogindex 94ec288..f6d0cbe 100644--- a/WebKit/gtk/ChangeLog+++ b/WebKit/gtk/ChangeLog@@ -1,3 +1,11 @@+2010-03-09 Philippe Normand <pnormand@igalia.com>++ Rubber-stamped by Gustavo Noronha.++ * tests/testkeyevents.c:+ (load_status_cb): Added a safeguard to exit from the test if the+ input event injection failed.+ 2010-03-08 Csaba Osztrogonác <ossy@webkit.org> [GTK] Unreviewed buildfix after r55688.diff --git a/WebKit/gtk/tests/testkeyevents.c b/WebKit/gtk/tests/testkeyevents.cindex ee7728c..3c9e198 100644--- a/WebKit/gtk/tests/testkeyevents.c+++ b/WebKit/gtk/tests/testkeyevents.c@@ -100,8 +100,9 @@ static void load_status_cb(WebKitWebView* webView, GParamSpec* spec, gpointer da KeyEventFixture* fixture = (KeyEventFixture*)data; WebKitLoadStatus status = webkit_web_view_get_load_status(webView); if (status == WEBKIT_LOAD_FINISHED) {- gtk_test_widget_send_key(GTK_WIDGET(fixture->webView),- gdk_unicode_to_keyval('a'), 0);+ if (!gtk_test_widget_send_key(GTK_WIDGET(fixture->webView),+ gdk_unicode_to_keyval('a'), 0))+ g_assert_not_reached(); } }-- 1.6.3.3