mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
test: supplement unit test
This commit is contained in:
parent
e3b021caec
commit
b3189f741c
@ -0,0 +1,31 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" style="background: transparent; position: absolute; outline: none;" color-interpolation-filters="sRGB" tabindex="1">
|
||||
<defs/>
|
||||
<g >
|
||||
<g fill="none">
|
||||
<g fill="none">
|
||||
<g fill="none" marker-start="false" marker-end="false">
|
||||
<g fill="none" marker-start="false" marker-end="false" stroke="transparent" stroke-width="3"/>
|
||||
<g>
|
||||
<path fill="none" d="M 100,112.5 L 100,200 L 1987.5,200" class="key" stroke-width="1" stroke="rgba(153,173,209,1)"/>
|
||||
<path fill="none" d="M 100,112.5 L 100,115 L 100,130 L 120,130 L 120,200 L 115,200 L 112.5,200" class="key" stroke-width="3" stroke="transparent"/>
|
||||
</g>
|
||||
</g>
|
||||
<g fill="none" x="100" y="100" transform="matrix(1,0,0,1,100,100)">
|
||||
<g>
|
||||
<path fill="rgba(248,248,248,1)" d="M -12.5,-12.5 l 25,0 l 0,25 l-25 0 z" class="key" stroke-width="1" stroke="rgba(139,155,175,1)" width="25" height="25" x="-12.5" y="-12.5"/>
|
||||
</g>
|
||||
</g>
|
||||
<g fill="none" x="2000" y="200" transform="matrix(1,0,0,1,2000,200)">
|
||||
<g>
|
||||
<path fill="rgba(248,248,248,1)" d="M -12.5,-12.5 l 25,0 l 0,25 l-25 0 z" class="key" stroke-width="1" stroke="rgba(139,155,175,1)" width="25" height="25" x="-12.5" y="-12.5"/>
|
||||
</g>
|
||||
</g>
|
||||
<g fill="none" x="100" y="150" transform="matrix(1,0,0,1,100,150)">
|
||||
<g>
|
||||
<path fill="rgba(248,248,248,1)" d="M -12.5,-12.5 l 25,0 l 0,25 l-25 0 z" class="key" stroke-width="1" stroke="rgba(139,155,175,1)" width="25" height="25" x="-12.5" y="-12.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
@ -75,6 +75,15 @@ describe('element edge polyline astar', () => {
|
||||
await graph.render();
|
||||
await expect(graph).toMatchSnapshot(__filename, 'obstacle-move-node-3');
|
||||
|
||||
graph.updateNodeData([
|
||||
{
|
||||
id: 'node-2',
|
||||
style: { x: 2000, y: 200 },
|
||||
},
|
||||
]);
|
||||
await graph.render();
|
||||
await expect(graph).toMatchSnapshot(__filename, 'obstacle-move-node-4');
|
||||
|
||||
graph.destroy();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user