Permalink
Browse files

Unicode: Found a working test!

  • Loading branch information...
1 parent 321299a commit 897a20fb37fa6d1a9c3d1f24a53b81a585cb68ac @espadrine committed Aug 29, 2012
Showing with 4 additions and 5 deletions.
  1. +1 −1 try
  2. +3 −4 unicode-style-editor.diff
View
@@ -1,4 +1,4 @@
# HG changeset patch
-# Parent d880221c9687c4da26f57670cb7a6f0e03af73d9
+# Parent 166fbd0741dc1c085720ba31c9d97159f6b26501
# User Thaddee Tyl <thaddee.tyl@gmail.com>
try: -b do -p all -u mochitests -t none
@@ -1,5 +1,5 @@
# HG changeset patch
-# Parent c80d0e010be310c2770e6668a89ee5cce1e97f3d
+# Parent f77ed5fe36f0b82349db2d2b7b9700d44fda3cd9
# User Thaddee Tyl <thaddee.tyl@gmail.com>
Bug 747820 — Style editor breaks with non-latin encoding.
@@ -135,13 +135,12 @@ diff --git a/browser/devtools/styleeditor/StyleEditor.jsm b/browser/devtools/sty
diff --git a/browser/devtools/styleeditor/test/browser_styleeditor_init.js b/browser/devtools/styleeditor/test/browser_styleeditor_init.js
--- a/browser/devtools/styleeditor/test/browser_styleeditor_init.js
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_init.js
-@@ -71,6 +71,11 @@ function testEditorAdded(aChrome, aEdito
+@@ -71,6 +71,10 @@ function testEditorAdded(aChrome, aEdito
function testFirstStyleSheetEditor(aChrome, aEditor)
{
+ // Note: the html <link> contains charset="UTF-8".
-+ let text = aEditor._state.text;
-+ ok(text.indexOf("☺") >= 0,
++ ok(aEditor._state.text.indexOf("\u263a") >= 0,
+ "stylesheet is unicode-aware.");
+
//testing TESTCASE's simple.css stylesheet

0 comments on commit 897a20f

Please sign in to comment.