Add unit test for minified d3.call().

This commit is contained in:
Jason Davies 2011-03-12 12:09:30 +00:00
Родитель 673151160b
Коммит d2ede7ce69
3 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -136,6 +136,7 @@ d3.geom.js: \
tests: \
tests/test-append.test \
tests/test-attr.test \
tests/test-call.test \
tests/test-format.test \
tests/test-transition.test \
tests/test-scale-linear.test

11
tests/test-call.js Normal file
Просмотреть файл

@ -0,0 +1,11 @@
require("./../lib/env-js/envjs/node");
require("./../lib/sizzle/sizzle");
require("./../d3.min");
var vis = d3.select("body").append('svg:svg');
console.log("simple:");
vis.call(function(a, b) {
console.log(" ", b);
}, "test");
console.log("");

3
tests/test-call.out Normal file
Просмотреть файл

@ -0,0 +1,3 @@
simple:
test