зеркало из https://github.com/mozilla/gecko-dev.git
33 строки
757 B
HTML
33 строки
757 B
HTML
<html>
|
|
<head>
|
|
<script type="text/javascript" src="JSAN.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<pre id="test">
|
|
<script type="text/javascript">
|
|
// TODO: Make this a harness for the other tests
|
|
JSAN.use('Test.More');
|
|
JSAN.addRepository('..');
|
|
var lst = [];
|
|
plan({"tests": 1});
|
|
var wc = {};
|
|
wc['MochiKit'] = true;
|
|
for (var k in window) { wc[k] = true; }
|
|
for (var k in window) { wc[k] = true; }
|
|
JSAN.use('MochiKit.MochiKit', []);
|
|
for (var k in window) {
|
|
if (!(k in wc) && !(k.charAt(0) == '[')) {
|
|
lst.push(k);
|
|
}
|
|
}
|
|
lst.sort();
|
|
pollution = lst.join(" ");
|
|
is(pollution, "compare reduce", "namespace pollution?");
|
|
JSAN.use('MochiKit.MochiKit');
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|