prototype: Add more tests to Element.update.
This commit is contained in:
parent
44c9d8937a
commit
0100aee1a0
|
@ -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]
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue