From 0100aee1a0338d1559c0d808332b524a96c045b0 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Mon, 22 Oct 2007 11:30:52 +0000 Subject: [PATCH] prototype: Add more tests to Element.update. --- CHANGELOG | 2 ++ test/unit/dom.html | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) {