From b6ddca0f88097c1278c90c1b8d34651b70848c6f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 24 Jun 2013 10:09:59 +0200 Subject: [PATCH] Improved test output. --- test/browser_test_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index cf264bc21..99729e93e 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -188,20 +188,20 @@ class TestCase < Test::Unit::TestCase elsif action[:element] == :title title = instance.title if title =~ /#{action[:value]}/i - assert( true, "(#{test[:name]}) matching '#{action[:value]}' in title" ) + assert( true, "(#{test[:name]}) matching '#{action[:value]}' in title '#{title}'" ) else - assert( false, "(#{test[:name]}) not matching '#{action[:value]}' in title" ) + assert( false, "(#{test[:name]}) not matching '#{action[:value]}' in title '#{title}'" ) end return elsif action[:element] == :cookie cookies = instance.manage.all_cookies cookies.each {|cookie| if cookie.to_s =~ /#{action[:value]}/i - assert( true, "(#{test[:name]}) matching '#{action[:value]}' in cookie" ) + assert( true, "(#{test[:name]}) matching '#{action[:value]}' in cookie '#{cookie.to_s}'" ) return end } - assert( false, "(#{test[:name]}) not matching '#{action[:value]}' in cookie" ) + assert( false, "(#{test[:name]}) not matching '#{action[:value]}' in cookie '#{cookie.to_s}'" ) return elsif action[:element] == :alert element = instance.switch_to.alert