simple-nohead.html 734 Bytes
<!DOCTYPE html>

<h1>require.js: Simple Test, no head tag</h1>
<p>Check console for messages</p>

<script type="text/javascript" src="requirejs-setup.js"></script>
<script type="text/javascript" data-main="dataMain.js" src="../../../../dojo.js"></script>
<script type="text/javascript">
require(["require", "simple", "dimple", "func", "doh"],
    function(require, simple, dimple, func) {
        doh.register(
            "simple-nohead", 
            [
                function colors(t){
                    t.is("blue", simple.color);
                    t.is("dimple-blue", dimple.color);
                    t.is("You called a function", func());
                }
            ]
        );
        doh.run();
    }
);
</script>