1 if (window.testRunner) {
2 testRunner.dumpAsText()
3 testRunner.waitUntilDone()
6 window.addEventListener('message', function (evt) {
7 if (evt.data != 'qunit::done')
9 var results = document.getElementsByTagName('iframe')[0].contentDocument.querySelector('#qunit-testresult').textContent;
10 var key = 'milliseconds.';
11 alert(results.substr(results.indexOf(key) + key.length));
12 if (window.testRunner)
13 testRunner.notifyDone();
16 document.write('<style>iframe { width: 100%; height: 100%; }</style>');