Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (45 sloc) 941 Bytes
<!DOCTYPE HTML>
<html>
<head>
<title>underscore test file</title>
<script>
curl = {
baseUrl: '',
paths: {
curl: '../src/curl',
underscore: 'support/underscore-amdjs-1.3.1/underscore'
},
preloads: [
]
};
</script>
<script src="../src/curl.js" type="text/javascript"></script>
<script type="text/javascript">
curl(
['underscore'], // load something or callback will execute asap
function (_) {
try {
// test for one of underscore's last methods
if (typeof _.chain == 'function')
write('SUCCESS: underscore loaded');
else
write('FAILED: underscore not fully loaded');
}
catch (ex) {
write('FAILED: ' + ex.message);
}
},
function (ex) {
write('ERROR: ' + ex.message);
}
);
function write (msg) {
curl('domReady!', function () {
document.body.appendChild(document.createElement('div')).innerHTML = msg;
});
}
</script>
</head>
<body>
</body>
</html>
Something went wrong with that request. Please try again.