mirror of https://gitee.com/bigwinds/arangodb
GraphViewer: Adapted Event tests to new community-node design
This commit is contained in:
parent
f200d8cef0
commit
01dab07c3b
|
@ -249,8 +249,8 @@
|
||||||
n2 = nodes[1],
|
n2 = nodes[1],
|
||||||
n3 = nodes[2],
|
n3 = nodes[2],
|
||||||
edges = [
|
edges = [
|
||||||
{source: n1, target: n2},
|
{_id: "1-2", source: n1, target: n2},
|
||||||
{source: n2, target: n3}
|
{_id: "2-3", source: n2, target: n3}
|
||||||
],
|
],
|
||||||
callback = function() {
|
callback = function() {
|
||||||
called++;
|
called++;
|
||||||
|
@ -543,7 +543,7 @@
|
||||||
|
|
||||||
it('should be able to bind the events to create an edge', function() {
|
it('should be able to bind the events to create an edge', function() {
|
||||||
nodes = helper.createSimpleNodes([1, 2, 3]);
|
nodes = helper.createSimpleNodes([1, 2, 3]);
|
||||||
edges = [{source: nodes[0], target: nodes[2]}];
|
edges = [{_id: "1-3", source: nodes[0], target: nodes[2]}];
|
||||||
nodeShaper.drawNodes(nodes);
|
nodeShaper.drawNodes(nodes);
|
||||||
edgeShaper.drawEdges(edges);
|
edgeShaper.drawEdges(edges);
|
||||||
|
|
||||||
|
@ -632,7 +632,7 @@
|
||||||
it('should be able to bind the delete edge event', function() {
|
it('should be able to bind the delete edge event', function() {
|
||||||
runs(function() {
|
runs(function() {
|
||||||
nodes = helper.createSimpleNodes([1, 2]);
|
nodes = helper.createSimpleNodes([1, 2]);
|
||||||
edges = [{source: nodes[0], target: nodes[1]}];
|
edges = [{_id: "1-2", source: nodes[0], target: nodes[1]}];
|
||||||
edgeShaper.drawEdges(edges);
|
edgeShaper.drawEdges(edges);
|
||||||
dispatcher.bind("edges", "click", dispatcher.events.DELETEEDGE(
|
dispatcher.bind("edges", "click", dispatcher.events.DELETEEDGE(
|
||||||
function(edge) {
|
function(edge) {
|
||||||
|
@ -721,7 +721,7 @@
|
||||||
var n1 = nodes[0],
|
var n1 = nodes[0],
|
||||||
n2 = nodes[1],
|
n2 = nodes[1],
|
||||||
edges = [
|
edges = [
|
||||||
{source: n1, target: n2}
|
{_id: "1-2", source: n1, target: n2}
|
||||||
],
|
],
|
||||||
falseCalled = false,
|
falseCalled = false,
|
||||||
called = false,
|
called = false,
|
||||||
|
@ -941,8 +941,8 @@
|
||||||
n2 = nodes[1],
|
n2 = nodes[1],
|
||||||
n3 = nodes[2],
|
n3 = nodes[2],
|
||||||
edges = [
|
edges = [
|
||||||
{source: n1, target: n2},
|
{_id: "1-2", source: n1, target: n2},
|
||||||
{source: n2, target: n3}
|
{_id: "2-3", source: n2, target: n3}
|
||||||
],
|
],
|
||||||
callback = function() {
|
callback = function() {
|
||||||
called++;
|
called++;
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
edges = [{
|
edges = [{
|
||||||
|
_id: "1-2",
|
||||||
source: nodes[0],
|
source: nodes[0],
|
||||||
target: nodes[1],
|
target: nodes[1],
|
||||||
_data: {
|
_data: {
|
||||||
|
|
Loading…
Reference in New Issue