prototype: Add more tests to Element.update.

This commit is contained in:
Tobie Langel 2007-10-22 11:30:52 +00:00
parent 44c9d8937a
commit 0100aee1a0
2 changed files with 7 additions and 2 deletions

View File

@ -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]

View File

@ -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) {