Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (29 sloc) 1.002 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<!DOCTYPE html>
<html>
<head>
    <title>require.js: NAMESPACE Test</title>
    <script type="text/javascript" src="NAMESPACE.js"></script>
    <script type="text/javascript" src="doh/runner.js"></script>
    <script type="text/javascript" src="doh/_browserRunner.js"></script>
    <script type="text/javascript">
        NAMESPACE.require(['one', 'dimple'], function(one, dimple) {
            doh.register(
                        "namespaceTest",
                        [
                            function namespaceTest(t){
                                t.is("large", one.size);
                                t.is("dimple-blue", dimple.color);
                            }
                        ]
                    );
            doh.run();

        });
    </script>
</head>
<body>
    <h1>require.js: NAMESPACE Test</h1>

    <p>Only works after doing a build using the simpleNamespace.build.js file
    in the r.js project.</p>

    <p>Check console for messages</p>
</body>
</html>
Something went wrong with that request. Please try again.