mirror of
https://github.com/amark/gun.git
synced 2025-06-08 15:16:42 +00:00
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<title>AMD Off</title>
|
|
<link rel="stylesheet" href="./mocha.css"/>
|
|
<script src="./mocha.js"></script>
|
|
<script>mocha.setup('bdd');</script>
|
|
<script src="./expect.js"></script>
|
|
<script src="http://requirejs.org/docs/release/2.1.8/minified/require.js"></script>
|
|
<script>root={opts:{com:false,amd:false}}</script>
|
|
<script src="../theory.js"></script>
|
|
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
|
<script src="http://underscorejs.org/underscore-min.js"></script>
|
|
<script src="http://backbonejs.org/backbone-min.js"></script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
Theory without AMD
|
|
<div id="debug"></div>
|
|
<div id="mocha"></div>
|
|
<script>
|
|
describe('Plays nice with...',function(){
|
|
it('requirejs',function(){
|
|
expect(require.isBrowser).to.ok();
|
|
});
|
|
it('jQuery',function(){
|
|
expect($(document).jquery).to.ok();
|
|
});
|
|
it('underscore',function(){
|
|
expect(_.VERSION).to.ok();
|
|
});
|
|
it('Backbone',function(){
|
|
expect(Backbone.VERSION).to.ok();
|
|
});
|
|
});
|
|
mocha.run();
|
|
</script>
|
|
</body>
|
|
</html> |