root / trunk / tests / compat / test_compat.html

Revision 3849, 0.9 kB (checked in by jburke, 3 years ago)

Renamed bootstrap2.js to loader.js, created a new bootstrap2.js to do the work of including debug, debutAtAllCosts and/or compat code. Doing this allows those features to work with custom builds.

  • Property svn:eol-style set to native
Line 
1<html>
2        <head>
3                <script language="JavaScript" type="text/javascript">
4                        // Dojo configuration
5                        djConfig = {
6                                compat: "0.2.2",
7                                isDebug: true
8                        };
9                </script>
10                <script language="JavaScript" type="text/javascript" 
11                        src="../../dojo.js"></script>
12                <script language="JavaScript" type="text/javascript">
13                        dojo.debug("Start compat calls.");
14                        dojo.hostenv.conditionalLoadModule({
15                                common: ["dojo.lang"]
16                        });
17
18                        dojo.hostenv.moduleLoaded("dojo.foobarCompat");
19                       
20                        function init(){
21                                dojo.hostenv.require("dojo.html");
22                                dj_debug("The compat package for 0.2.2 loaded OK");
23                                dojo.hostenv.byId("testTarget").innerHTML = "OK";
24                                dojo.debug("End compat calls.");
25                        }
26
27                        dojo.addOnLoad(init);
28                </script>
29        </head>
30        <body>
31                <p>This page tests the loading and usage of the compatibility package. If there are no
32                errors on the page, then that means the compatibility loading worked.</p>
33                <p id="testTarget"></p>
34        </body>
35</html>
Note: See TracBrowser for help on using the browser.