first four library tests

This commit is contained in:
guybedford
2014-02-15 21:45:17 +02:00
parent 0171d5b508
commit 1fa30a0d28
6 changed files with 32 additions and 11 deletions
+17 -4
View File
@@ -4,23 +4,36 @@ System.paths['npm:*'] = 'jspm_packages/npm/*.js';
System.paths['github:*'] = 'jspm_packages/github/*.js';
System.map = {
'angular': 'github:angular/bower-angular@^1.2.12',
'mocha': 'npm:mocha@^1.17.1',
'text': 'github:systemjs/plugin-text@master',
'bootstrap': 'github:twbs/bootstrap@^3.1.1',
'jquery': 'github:components/jquery@^2.1.0',
'css': 'github:systemjs/plugin-css@master',
'jquery': 'npm:jquery@^2.1.0',
'd3': 'github:mbostock/d3@^3.4.1',
'angular': 'github:angular/bower-angular@^1.2.13',
'npm:mocha@1.17.1': {
'css': 'github:systemjs/plugin-css@master'
},
'github:jspm/nodelibs@0.0.2': {
'inherits': 'npm:inherits@^2.0.1',
'ieee754': 'npm:ieee754@^1.1.1',
'Base64': 'npm:Base64@^0.2.0',
'base64-js': 'npm:base64-js@^0.0.4'
}
};
System.versions = {
'github:angular/bower-angular': '1.2.12',
'github:angular/bower-angular': '1.2.13',
'npm:mocha': '1.17.1',
'github:systemjs/plugin-css': 'master',
'github:systemjs/plugin-text': 'master',
'github:twbs/bootstrap': '3.1.1',
'github:components/jquery': '2.1.0'
'npm:jquery': '2.1.0',
'github:jspm/nodelibs': '0.0.2',
'npm:inherits': '2.0.1',
'npm:ieee754': '1.1.2',
'npm:Base64': '0.2.0',
'npm:base64-js': '0.0.4',
'github:mbostock/d3': '3.4.1'
};
+3 -2
View File
@@ -7,11 +7,12 @@
"configFile": "config.js",
"registry": "jspm",
"dependencies": {
"angular": "^1.2.12",
"mocha": "^1.17.1",
"text": "master",
"bootstrap": "^3.1.1",
"css": "master",
"jquery": "^2.1.0",
"css": "master"
"d3": "^3.4.1",
"angular": "^1.2.13"
}
}
+1 -2
View File
@@ -1,6 +1,5 @@
<!doctype html>
<script src="../../es6-module-loader/lib/es6-module-loader.js"></script>
<script src="../../systemjs/dist/system.js"></script>
<script src="jspm_packages/system@0.4.js"></script>
<script src="config.js"></script>
<body>
+2 -3
View File
@@ -1,7 +1,6 @@
var someHTML = require('./angular.html!text');
var angular = require('angular');
exports['load test'] = function(done) {
System.import('angular').then(function() {
if (angular)
done();
});
}
+7
View File
@@ -0,0 +1,7 @@
var d3 = require('d3');
exports['style test'] = function(done) {
document.querySelector('#sandbox').innerHTML = '<p>d3</p>';
d3.selectAll("p").style("color", "red");
done();
}
+2
View File
@@ -2,3 +2,5 @@
// exports['Angular'] = require('tests/angular');
exports['Bootstrap'] = require('tests/bootstrap');
exports['jQuery'] = require('tests/jquery');
exports['d3'] = require('tests/d3');
exports['angular'] = require('tests/angular');