mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 541707 - semi-random failures in test_crashing2.html, probably due to interminism in the crash/crashreport/reload sequence
This commit is contained in:
parent
85cfeb583f
commit
d474eb0628
@ -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;
|
||||
iframe.contentWindow.location.reload();
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user