Skip to content

Commit

Permalink
Dialog tests: Work around inconsistent handling of non-breaking space…
Browse files Browse the repository at this point in the history
…s in IE7/8 with jQuery <1.8.
  • Loading branch information
scottgonzalez committed Nov 15, 2012
1 parent fb6119e commit 8c36603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/dialog/dialog_options.js
Expand Up @@ -424,8 +424,8 @@ test("title", function() {

var el = $('<div></div>').dialog();
// some browsers return a non-breaking space and some return "&nbsp;"
// so we get the text to normalize to the actual non-breaking space
equal(el.dialog('widget').find(".ui-dialog-title").text(), " ", "[default]");
// so we generate a non-breaking space for comparison
equal(titleText(), $( "<span>&#160;</span>" ).html(), "[default]");
equal(el.dialog("option", "title"), "", "option not changed");
el.remove();

Expand Down

0 comments on commit 8c36603

Please sign in to comment.