[Pkg-mozext-commits] [compactheader] 276/441: New version 1.4.3: Fix problem with UTF-8 encoding testcase.

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 12:29:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository compactheader.

commit 5db77f50255a89855e3fc473adcaa7668e64982c
Author: joachim <none at none>
Date:   Sat Sep 10 14:26:56 2011 +0200

    New version 1.4.3: Fix problem with UTF-8 encoding testcase.
    
    --HG--
    branch : review_requests
---
 install.rdf                                          |  2 +-
 test/compactheader/test-compactheader-preferences.js | 17 ++++++++++++-----
 test/shared-modules/test-compactheader-helpers.js    |  2 +-
 3 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/install.rdf b/install.rdf
index 7d0ddac..cdbffc3 100644
--- a/install.rdf
+++ b/install.rdf
@@ -6,7 +6,7 @@
 
 	<RDF:Description about="urn:mozilla:install-manifest">
 		<em:name>CompactHeader</em:name>
-		<em:version>1.4.3beta2</em:version>
+		<em:version>1.4.3</em:version>
 		<em:description>Add ability to reduce header size to one or two lines. Linkify subjects in RSS feeds.</em:description>
 		<em:creator>Joachim Herb</em:creator>
 		<em:contributor>Zamula</em:contributor>
diff --git a/test/compactheader/test-compactheader-preferences.js b/test/compactheader/test-compactheader-preferences.js
index 42500f4..b36a5d3 100644
--- a/test/compactheader/test-compactheader-preferences.js
+++ b/test/compactheader/test-compactheader-preferences.js
@@ -65,7 +65,18 @@ var messageBodyISO8859_1 = "ae: " + String.fromCharCode(228) +
   ", UE: " + String.fromCharCode(220) +
   ", ss: " + String.fromCharCode(223) + "\n";
 
-var messageBodyUTF8 = "ae: ä, oe: ö, ue: ü, AE: Ä, OE: Ö, UE: Ü, ss: ß";
+//var messageBodyUTF8 = "ae: \uc3a4, oe: \uceb6, ue: \uc3bc, " +
+//                      "AE: \uc384, OE: \uc396, UE: \uc39c, ss: \uce9f";
+
+messageBodyUTF8 =
+  "ae: "   + String.fromCharCode(0xc3) + String.fromCharCode(0xa4) +
+  ", oe: " + String.fromCharCode(0xc3) + String.fromCharCode(0xb6) +
+  ", ue: " + String.fromCharCode(0xc3) + String.fromCharCode(0xbc) +
+  ", AE: " + String.fromCharCode(0xc3) + String.fromCharCode(0x84) +
+  ", OE: " + String.fromCharCode(0xc3) + String.fromCharCode(0x96) +
+  ", UE: " + String.fromCharCode(0xc3) + String.fromCharCode(0x9c) +
+  ", ss: " + String.fromCharCode(0xc3) + String.fromCharCode(0x9f) +
+  "\n";
 
 function setupModule(module) {
   let fdh = collector.getModule('folder-display-helpers');
@@ -109,10 +120,6 @@ function setupModule(module) {
 }
 
 
-/**
- *  Make sure that opening the header toolbar customization dialog
- *  does not break the get messages button in main toolbar
- */
 function test_double_preference_change_ISO(){
   select_message_in_folder(folder1, 2, mc);
   assert_browser_text_present(mc.e("messagepane"), messageBodyISO8859_1);
diff --git a/test/shared-modules/test-compactheader-helpers.js b/test/shared-modules/test-compactheader-helpers.js
index 2da1f63..c737820 100644
--- a/test/shared-modules/test-compactheader-helpers.js
+++ b/test/shared-modules/test-compactheader-helpers.js
@@ -141,7 +141,7 @@ function select_message_in_folder(aFolder, aMessageNum, aController)
   let curMessage = folderDisplayHelper.select_click_row(aMessageNum);
 
   // make sure it loads
-  folderDisplayHelper.wait_for_message_display_completion(aController);
+  folderDisplayHelper.wait_for_message_display_completion(aController, true);
   folderDisplayHelper.assert_selected_and_displayed(aController, curMessage);
 
   return curMessage;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/compactheader.git



More information about the Pkg-mozext-commits mailing list