Bugzilla – Attachment 35118 Details for
Bug 13264
Full stack encoding tests (UTF-8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13264: (QA followup) prevent double-encoding on the tests
PASSED-QA-Bug-13264-QA-followup-prevent-double-enc.patch (text/plain), 1.79 KB, created by
Katrin Fischer
on 2015-01-12 22:08:27 UTC
(
hide
)
Description:
[PASSED QA] Bug 13264: (QA followup) prevent double-encoding on the tests
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-01-12 22:08:27 UTC
Size:
1.79 KB
patch
obsolete
>From d1c65e7ff5707121a0c5778d103f234fdf49c7b7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Fri, 26 Dec 2014 20:52:54 -0300 >Subject: [PATCH] [PASSED QA] Bug 13264: (QA followup) prevent double-encoding > on the tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/www/search_utf8.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t >index e09a1af..605e21a 100644 >--- a/t/db_dependent/www/search_utf8.t >+++ b/t/db_dependent/www/search_utf8.t >@@ -209,12 +209,12 @@ like( $intra_text, qr|Publisher: $publisher|, ); > $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); > $agent->form_number(1); > $agent->field('idx', 'kw'); >-$agent->field('q', Encode::encode('UTF-8', $publisher)); >+$agent->field('q', $publisher); > $agent->click(); > $intra_text = $agent->text(); > > like( $intra_text, qr|Publisher: $publisher|, ); >-my $expected_base = q|search.pl\?idx=kw&q=| . uri_escape_utf8( Encode::encode('UTF-8', $publisher ) ); >+my $expected_base = q|search.pl\?idx=kw&q=| . uri_escape_utf8( $publisher ); > $agent->base_like(qr|$expected_base|, ); > > ok ( ( length(Encode::encode('UTF-8', $intra_text)) != length($intra_text) ) , 'UTF-8 are multi-byte. Goog') ; >@@ -237,7 +237,7 @@ $agent->click(); > $opac_text = $agent->text(); > > like( $opac_text, qr|Publisher: $publisher|, ); >-$expected_base = q|opac-search.pl\?q=| . uri_escape_utf8( $publisher ); >+$expected_base = q|opac-search.pl\?idx=&q=| . uri_escape_utf8( $publisher ); > $agent->base_like(qr|$expected_base|, ); > > ok ( ( length(Encode::encode('UTF-8', $opac_text)) != length($opac_text) ) , 'UTF-8 are multi-byte. Goog') ; >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13264
:
33614
|
33703
|
33704
|
33705
|
33743
|
33744
|
33756
|
33757
|
33758
|
33759
|
33760
|
33777
|
33778
|
33779
|
33780
|
33781
|
33782
|
33783
|
33784
|
33785
|
33786
|
33811
|
33812
|
33813
|
33814
|
33815
|
33816
|
33817
|
34110
|
34111
|
34112
|
34113
|
34114
|
34115
|
34116
|
34117
|
34694
|
34766
|
34767
|
34768
|
34769
|
34770
|
34771
|
34772
|
34773
|
34774
|
34775
|
34776
|
34798
|
34799
|
34800
|
34801
|
34802
|
34803
|
34804
|
34805
|
34806
|
34807
|
34808
|
34809
|
34810
|
34811
|
34814
|
35068
|
35069
|
35070
|
35071
|
35072
|
35073
|
35074
|
35075
|
35076
|
35077
|
35078
|
35079
|
35080
|
35081
|
35082
|
35110
|
35111
|
35112
|
35113
|
35114
|
35115
|
35116
|
35117
| 35118 |
35119
|
35120
|
35121
|
35122
|
35123
|
35124