Add unit test for minified d3.call().
This commit is contained in:
Родитель
673151160b
Коммит
d2ede7ce69
1
Makefile
1
Makefile
|
@ -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
|
||||
|
|
|
@ -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("");
|
|
@ -0,0 +1,3 @@
|
|||
simple:
|
||||
test
|
||||
|
Загрузка…
Ссылка в новой задаче