1. Scott Koon
  2. bootstrap

Source

bootstrap / bootstrap_test.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <style type="text/css">
        #cssLoaded { visiblity:hidden;}
    </style>
    <title></title>

</head>
<body>
    <div id="testResults"></div>
    <div id="cssLoaded">Test.css loaded</div>
<script type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript">
    var callbackCalled = false;
    $b("test.css");
    $b("test.js","test", function(){
        callbackCalled = true;
        var runnerId = window.setInterval(
        function() {
            if(callbackCalled) {
                window.clearInterval(runnerId);
                testSuite.run();
            }}, 10) 
    });

    bootstrap("test.js","test2");

</script>
</body>
</html>