Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ec8c7e4b7a
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (45 sloc) 0.886 kb
<!DOCTYPE HTML>
<html>
<head>
<title>top-level plugin test</title>
<script>
curl = {
baseUrl: 'support',
paths: {
curl: '../../src/curl',
fake: 'fake'
},
packages: {
fake2: { location: './fake', main: '../fake' }
}
};
</script>
<script src="../src/curl.js" type="text/javascript"></script>
<script type="text/javascript">
curl(
[
'fake!',
'fake2!',
'domReady!'
]
).then(
success,
fail
);
function success (fake1, fake2) {
write('SUCCESS: top-level plugin was found at top-level using path config');
write('SUCCESS: top-level plugin was found at top-level using packages config');
}
function fail (ex) {
write('FAILED: ' + ex.message);
}
function write (msg) {
curl('domReady!', function () {
document.body.appendChild(document.createElement('div')).innerHTML = msg;
});
}
</script>
</head>
<body>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.