diff --git a/CHANGELOG b/CHANGELOG index 86b6be3..3ed6d02 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Add more tests to Element.update. Closes #9327. [Tobie Langel] + * Make the Ajax.Response#headerJSON property correctly decode unicode characters. Closes #9285. [Marius Feraru, Tobie Langel] * Make sure Event and Event.extend are defined before wrapping events and calling their handler. Prevents a known Firefox bug from throwing errors on page load/unload (cf.: https://bugzilla.mozilla.org/show_bug.cgi?id=361271). Closes #5393, #9421. [staaky, John Resig, sam, Tobie Langel] diff --git a/test/unit/dom.html b/test/unit/dom.html index a0f8f44..dc4f901 100644 --- a/test/unit/dom.html +++ b/test/unit/dom.html @@ -619,10 +619,13 @@ assertEqual('another hello from div!', $('testdiv').innerHTML); Element.update('testdiv', 123); - assertEqual('123', $('testdiv').innerHTML) + assertEqual('123', $('testdiv').innerHTML); Element.update('testdiv'); - assertEqual('', $('testdiv').innerHTML) + assertEqual('', $('testdiv').innerHTML); + + Element.update('testdiv', ' '); + assert(!$('testdiv').innerHTML.empty()); }}, testElementUpdateWithScript: function() {with(this) {