mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Merge pull request #4195 from stormpython/upgrade/d3
Upgrade d3 to 3.5.5
This commit is contained in:
commit
a1fb992081
2 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
|||
"angular-ui-ace": "0.2.3",
|
||||
"bluebird": "~2.1.3",
|
||||
"bootstrap": "3.3.4",
|
||||
"d3": "3.4.13",
|
||||
"d3": "3.5.5",
|
||||
"elasticsearch": "4.1.0",
|
||||
"Faker": "1.1.0",
|
||||
"FileSaver": "babc6d9d8f",
|
||||
|
|
|
@ -16,8 +16,8 @@ define(function (require) {
|
|||
vis = null;
|
||||
}
|
||||
|
||||
function getEls(n, type) {
|
||||
return d3.select().data(new Array(n)).enter().append(type);
|
||||
function getEls(el, n, type) {
|
||||
return d3.select(el).data(new Array(n)).enter().append(type);
|
||||
}
|
||||
|
||||
describe('', function () {
|
||||
|
@ -67,7 +67,7 @@ define(function (require) {
|
|||
var apply = chart.events.addEvent('event', _.noop);
|
||||
expect(apply).to.be.a('function');
|
||||
|
||||
var els = getEls(3, 'div');
|
||||
var els = getEls(vis.el, 3, 'div');
|
||||
apply(els);
|
||||
els.each(function () {
|
||||
expect(d3.select(this).on('event')).to.be(_.noop);
|
||||
|
@ -90,7 +90,7 @@ define(function (require) {
|
|||
var apply = chart.events[name](d3.select(document.createElement('svg')));
|
||||
expect(apply).to.be.a('function');
|
||||
|
||||
var els = getEls(3, 'div');
|
||||
var els = getEls(vis.el, 3, 'div');
|
||||
apply(els);
|
||||
els.each(function () {
|
||||
expect(d3.select(this).on(event)).to.be.a('function');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue