зеркало из https://github.com/mozilla/pjs.git
Bug 529338 - Remove flaky Prototype test, testUpdater; r=ehsan
This commit is contained in:
Родитель
bff1e9405c
Коммит
10b2e800c6
|
@ -32,33 +32,6 @@ new Test.Unit.Runner({
|
|||
this.assertEqual("Hello world!", h2.innerHTML);
|
||||
},
|
||||
|
||||
testUpdater: function() {
|
||||
this.assertEqual("", $("content").innerHTML);
|
||||
this.waitForFinish();
|
||||
|
||||
new Ajax.Updater("content", "../fixtures/content.html", { method:'get', onComplete: function() {
|
||||
this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
|
||||
$('content').update('');
|
||||
this.assertEqual("", $("content").innerHTML);
|
||||
new Ajax.Updater({ success:"content", failure:"content2" },
|
||||
"../fixtures/content.html",
|
||||
{ method:'get', parameters:{ pet:'monkey' }, onComplete: function() {
|
||||
this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
|
||||
this.assertEqual("", $("content2").innerHTML);
|
||||
$('content').update('');
|
||||
this.assertEqual("", $("content").innerHTML);
|
||||
new Ajax.Updater("", "../fixtures/content.html",
|
||||
{ method:'get', parameters:"pet=monkey", onComplete: function() {
|
||||
this.assertEqual("", $("content").innerHTML);
|
||||
this.finish();
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this)
|
||||
});
|
||||
}.bind(this)
|
||||
});
|
||||
},
|
||||
|
||||
testUpdaterOptions: function() {
|
||||
var options = {
|
||||
method: 'get',
|
||||
|
|
Загрузка…
Ссылка в новой задаче