3.0 source code

This commit is contained in:
agolybev
2015-04-28 17:59:00 +03:00
parent c69fd34bdd
commit 7b3b2248e5
16311 changed files with 1445974 additions and 3108429 deletions

View File

@@ -0,0 +1,10 @@
define(function (require) {
//Tests detecting a full URL dependency inside simplified wrapper.
require('https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js');
function noop() {};
return {
isFunction: jQuery.isFunction(noop)
};
});

View File

@@ -0,0 +1,17 @@
require({
baseUrl: requirejs.isBrowser ? "./" : "./remoteUrls/"
},
["require", "jqwrap"],
function(require, jqwrap) {
doh.register(
"remoteUrls",
[
function remoteUrls(t){
t.is(true, jqwrap.isFunction);
}
]
);
doh.run();
}
);

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>require.js: Remote URL Test</title>
<script type="text/javascript" src="../../require.js"></script>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script type="text/javascript" src="remoteUrls-tests.js"></script>
</head>
<body>
<h1>require.js: Remote URL Test</h1>
<p>Check console for messages</p>
</body>
</html>