]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog tests: Work around inconsistent handling of non-breaking spaces in IE7/8 with...
authorScott González <scott.gonzalez@gmail.com>
Thu, 15 Nov 2012 15:47:36 +0000 (10:47 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 15 Nov 2012 15:47:36 +0000 (10:47 -0500)
tests/unit/dialog/dialog_options.js

index c58cf69151c454d97e02b23b3a0e04db34fb74e2..33123031898085b1a7a397a68eb59d33ed89c0ae 100644 (file)
@@ -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();