Files
jspm-registry/test/tests/angular.js
T

23 lines
449 B
JavaScript
Raw Normal View History

2014-02-11 17:06:33 +02:00
var someHTML = require('./angular.html!text');
2014-02-11 17:02:14 +02:00
exports['load test'] = function(done) {
System.import('angular').then(function() {
done();
2014-02-11 16:10:53 +02:00
});
2014-02-11 17:02:14 +02:00
}
exports['another test'] = function(done) {
System.import('angular').then(function(angular) {
2014-02-11 17:06:33 +02:00
document.querySelector("#sandbox").innerHTML = someHTML;
2014-02-11 17:02:14 +02:00
if (!angular)
throw 'Test failed...';
2014-02-11 17:06:33 +02:00
setTimeout(done, 1000);
2014-02-11 17:02:14 +02:00
});
2014-02-11 17:06:33 +02:00
}
exports['last test'] = function(done) {
done();
2014-02-11 17:02:14 +02:00
}