include HTML test
This commit is contained in:
+3
-1
@@ -7,6 +7,7 @@ System.paths['tests/*'] = 'tests/*.js';
|
|||||||
System.map = {
|
System.map = {
|
||||||
'mocha': 'npm:mocha@^1.17.1',
|
'mocha': 'npm:mocha@^1.17.1',
|
||||||
'angular': 'github:angular/bower-angular@^1.2.12',
|
'angular': 'github:angular/bower-angular@^1.2.12',
|
||||||
|
'text': 'github:systemjs/plugin-text@master',
|
||||||
'npm:mocha@1.17.1': {
|
'npm:mocha@1.17.1': {
|
||||||
'css': 'github:systemjs/plugin-css@master'
|
'css': 'github:systemjs/plugin-css@master'
|
||||||
}
|
}
|
||||||
@@ -15,6 +16,7 @@ System.map = {
|
|||||||
System.versions = {
|
System.versions = {
|
||||||
'github:angular/bower-angular': '1.2.12',
|
'github:angular/bower-angular': '1.2.12',
|
||||||
'npm:mocha': '1.17.1',
|
'npm:mocha': '1.17.1',
|
||||||
'github:systemjs/plugin-css': 'master'
|
'github:systemjs/plugin-css': 'master',
|
||||||
|
'github:systemjs/plugin-text': 'master'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -8,6 +8,7 @@
|
|||||||
"registry": "jspm",
|
"registry": "jspm",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mocha": "^1.17.1",
|
"mocha": "^1.17.1",
|
||||||
"angular": "^1.2.12"
|
"angular": "^1.2.12",
|
||||||
|
"text": "master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<h1>This is an HTML test</h1>
|
||||||
Vendored
+10
-1
@@ -1,3 +1,4 @@
|
|||||||
|
var someHTML = require('./angular.html!text');
|
||||||
|
|
||||||
exports['load test'] = function(done) {
|
exports['load test'] = function(done) {
|
||||||
System.import('angular').then(function() {
|
System.import('angular').then(function() {
|
||||||
@@ -7,8 +8,16 @@ exports['load test'] = function(done) {
|
|||||||
|
|
||||||
exports['another test'] = function(done) {
|
exports['another test'] = function(done) {
|
||||||
System.import('angular').then(function(angular) {
|
System.import('angular').then(function(angular) {
|
||||||
|
|
||||||
|
document.querySelector("#sandbox").innerHTML = someHTML;
|
||||||
|
|
||||||
if (!angular)
|
if (!angular)
|
||||||
throw 'Test failed...';
|
throw 'Test failed...';
|
||||||
done();
|
|
||||||
|
setTimeout(done, 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports['last test'] = function(done) {
|
||||||
|
done();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user