mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog tests: Work around inconsistent handling of non-breaking spaces in IE7/8 with jQuery <1.8.
This commit is contained in:
parent
fb6119e182
commit
8c36603305
@ -424,8 +424,8 @@ test("title", function() {
|
||||
|
||||
var el = $('<div></div>').dialog();
|
||||
// some browsers return a non-breaking space and some return " "
|
||||
// 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> </span>" ).html(), "[default]");
|
||||
equal(el.dialog("option", "title"), "", "option not changed");
|
||||
el.remove();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user