зеркало из https://github.com/mozilla/gecko-dev.git
Bug 541707 - semi-random failures in test_crashing2.html, probably due to interminism in the crash/crashreport/reload sequence
--HG-- extra : rebase_source : eaa6c45f5383e14b7d64dc71bc84c91256144864
This commit is contained in:
Родитель
0db41ce779
Коммит
0203e38ac8
|
@ -51,27 +51,29 @@
|
|||
var p = iframe.contentDocument.getElementById('plugin1');
|
||||
try {
|
||||
p.setColor('FF00FF00');
|
||||
ok(true, "Reloading worked");
|
||||
ok(true, "Reloading after crash-on-new worked");
|
||||
}
|
||||
catch (e) {
|
||||
ok(false, "Reloading didn't give us a usable plugin");
|
||||
ok(false, "Reloading after crash-on-new didn't give us a usable plugin");
|
||||
}
|
||||
p.crashOnDestroy();
|
||||
// the child crash should happen here
|
||||
p.parentNode.removeChild(p);
|
||||
|
||||
window.frameLoaded = reloaded2;
|
||||
SimpleTest.executeSoon(function() {
|
||||
iframe.contentWindow.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
function reloaded2() {
|
||||
var p = iframe.contentDocument.getElementById('plugin1');
|
||||
try {
|
||||
p.setColor('FF00FF00');
|
||||
ok(true, "Reloading worked");
|
||||
ok(true, "Reloading after crash-on-destroy worked");
|
||||
}
|
||||
catch (e) {
|
||||
ok(false, "Reloading didn't give us a usable plugin");
|
||||
ok(false, "Reloading after crash-on-destroy didn't give us a usable plugin");
|
||||
}
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче