Bug 1351456 - Add some instrumentation to try to understand a test timeout. irc-r=jesup

MozReview-Commit-ID: 935bdFmhwTq

--HG--
extra : rebase_source : 69f29432b714dffbb2eb9c51098d603744e4ceb6
This commit is contained in:
Paul Adenot 2017-03-31 17:41:31 +02:00
Родитель ff47acdd0e
Коммит 93f23173cb
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -9,28 +9,36 @@
<pre id="test">
<script class="testbody" type="text/javascript">
SimpleTest.requestCompleteLog();
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({
set: [
[ "dom.disable_open_during_load", false ]
]
}).then(function() {
todo(true, "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");
var a = window.open(sub);
todo(true, "after open: " + a);
a.onbeforeunload = function(){
setTimeout(function(){
try {
todo(true, "before sp");
a.context.createScriptProcessor(512, 1, 1);
todo(true, "after sp");
} catch(e) {
ok (true,"got exception");
}
setTimeout(function() {
ok (true,"no crash");
todo(true, "finish");
ok (true,"no crash");
SimpleTest.finish();
}, 0);
}, 0);