Add SimpleTest.waitForFocus to fix [orange].

This commit is contained in:
Mats Palmgren 2010-03-15 02:04:13 +01:00
parent 355d7fd5b3
commit f00539aaf8

View File

@ -21,11 +21,6 @@
<pre id="test">
<script class="testbody" type="text/javascript;version=1.7">
SimpleTest.waitForExplicitFinish();
// This seems to be necessary because the selection is not set up properly otherwise
setTimeout(test, 0);
function test() {
var sel = window.getSelection();
var editor = document.getElementById("editor");
@ -48,6 +43,9 @@ function test() {
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(test);
</script>
</pre>