root/mochikit/branches/scriptaculous/tests/test_MochiKit-JSAN.html

Revision 384, 0.7 kB (checked in by bob, 3 years ago)

remove Compat, strip out 2k

  • Property svn:mime-type set to text/html
  • Property svn:eol-style set to native
Line 
1 <html>
2 <head>
3     <script type="text/javascript" src="JSAN.js"></script>
4 </head>
5 <body>
6
7 <pre id="test">
8 <script type="text/javascript">
9     // TODO: Make this a harness for the other tests
10     JSAN.use('Test.More');
11     JSAN.addRepository('..');
12     var lst = [];
13     plan({"tests": 1});
14     var wc = {};
15     wc['MochiKit'] = true;
16     for (var k in window) { wc[k] = true; }
17     for (var k in window) { wc[k] = true; }
18     JSAN.use('MochiKit.MochiKit', []);
19     for (var k in window) {
20         if (!(k in wc) && !(k.charAt(0) == '[')) {
21             lst.push(k);
22         }
23     }
24     lst.sort();
25     pollution = lst.join(" ");
26     is(pollution, "compare reduce", "namespace pollution?");
27     JSAN.use('MochiKit.MochiKit');
28
29 </script>
30 </pre>
31 </body>
32 </html>
Note: See TracBrowser for help on using the browser.