Sha256: 39c8fda492f4b4e55604b2b35f7b98caf13470f49c953f8dff43f03a45e786b8

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

<!DOCTYPE html>
<html>
<head>
    <title>require.js: Unique Dependency Test</title>
    <script type="text/javascript">
		requirejsArgs= {
			dojoLocation:"../../../../.."
		};
	</script>
    <script type="text/javascript" src="../requirejs-setup.js"></script>
    <script type="text/javascript" src="../../../../../dojo.js"></script>
    <script type="text/javascript">
    require({
            baseUrl: "./"
        },
        ["require", "one", "two", "three", "doh"],
        function(require, one, two, three, doh) {
            doh.register(
                "uniques",
                [
                    function uniques(t){
                        t.is("one", one.name);
                        t.is("three", one.threeName);
                        t.is("three", one.threeName2);
                        t.is("one", two.oneName);
                        t.is("one", two.oneName2);
                        t.is("two", two.name);
                        t.is("three", two.threeName);
                        t.is("three", three.name);
                    }
                ]
            );
            doh.run();
        }
    );
    </script>
</head>
<body>
    <h1>require.js: Unique Dependency Test</h1>
    <p>Make sure if a dependency is listed more than once code still operates correctly.</p>
    <p>Check console for messages</p>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dojo_rails-0.0.2 vendor/assets/javascripts/dojo/tests/_base/loader/requirejs/uniques/uniques.html
dojo_rails-0.0.1 vendor/assets/javascripts/dojo/tests/_base/loader/requirejs/uniques/uniques.html