Skip to content

Commit

Permalink
Unicode: Found a working test!
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Aug 29, 2012
1 parent 321299a commit 897a20f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion try
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
# HG changeset patch # HG changeset patch
# Parent d880221c9687c4da26f57670cb7a6f0e03af73d9 # Parent 166fbd0741dc1c085720ba31c9d97159f6b26501
# User Thaddee Tyl <thaddee.tyl@gmail.com> # User Thaddee Tyl <thaddee.tyl@gmail.com>
try: -b do -p all -u mochitests -t none try: -b do -p all -u mochitests -t none
7 changes: 3 additions & 4 deletions unicode-style-editor.diff
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
# HG changeset patch # HG changeset patch
# Parent c80d0e010be310c2770e6668a89ee5cce1e97f3d # Parent f77ed5fe36f0b82349db2d2b7b9700d44fda3cd9
# User Thaddee Tyl <thaddee.tyl@gmail.com> # User Thaddee Tyl <thaddee.tyl@gmail.com>
Bug 747820 — Style editor breaks with non-latin encoding. Bug 747820 — Style editor breaks with non-latin encoding.


Expand Down Expand Up @@ -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 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 --- a/browser/devtools/styleeditor/test/browser_styleeditor_init.js
+++ b/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) function testFirstStyleSheetEditor(aChrome, aEditor)
{ {
+ // Note: the html <link> contains charset="UTF-8". + // Note: the html <link> contains charset="UTF-8".
+ let text = aEditor._state.text; + ok(aEditor._state.text.indexOf("\u263a") >= 0,
+ ok(text.indexOf("☺") >= 0,
+ "stylesheet is unicode-aware."); + "stylesheet is unicode-aware.");
+ +
//testing TESTCASE's simple.css stylesheet //testing TESTCASE's simple.css stylesheet
Expand Down

0 comments on commit 897a20f

Please sign in to comment.