зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1351456 - Fix test logging.
MozReview-Commit-ID: KpyHg95FKcv
This commit is contained in:
Родитель
7b230dd9fb
Коммит
26e9175c0d
|
@ -18,26 +18,26 @@ SpecialPowers.pushPrefEnv({
|
|||
[ "dom.disable_open_during_load", false ]
|
||||
]
|
||||
}).then(function() {
|
||||
todo(true, "after pref");
|
||||
info("after pref");
|
||||
var sub = encodeURI("data:text/html,<!DOCTYPE html>\n"+
|
||||
"<html><script>"+
|
||||
"var context = new AudioContext();"+
|
||||
"setTimeout(function(){window.close();},1000);\x3C/script></html>");
|
||||
window.onload = function(){
|
||||
todo(true, "after onload");
|
||||
info("after onload");
|
||||
var a = window.open(sub);
|
||||
todo(true, "after open: " + a);
|
||||
info("after open: " + a);
|
||||
a.onbeforeunload = function(){
|
||||
setTimeout(function(){
|
||||
try {
|
||||
todo(true, "before sp");
|
||||
info("before sp");
|
||||
a.context.createScriptProcessor(512, 1, 1);
|
||||
todo(true, "after sp");
|
||||
info("after sp");
|
||||
} catch(e) {
|
||||
ok (true,"got exception");
|
||||
}
|
||||
setTimeout(function() {
|
||||
todo(true, "finish");
|
||||
info("finish");
|
||||
ok (true,"no crash");
|
||||
SimpleTest.finish();
|
||||
}, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче