mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
Update svgjs-tests.ts
This commit is contained in:
1 parent
900f86cb1f
commit
18dad4a676
1 file changed
+4
-5
@@ -104,9 +104,8 @@ function elementTransformShouldReturnTransformObject() {
|
||||
/* first try to cast it */
|
||||
var result:svgjs.Element[] = group.children()
|
||||
/* then check values if they are correct */
|
||||
if (!(result[0] instanceof svgjs.Element)) { throw "Element.children() is not working" }
|
||||
if (!(result[1] instanceof svgjs.Element)) { throw "Element.children() is not working" }
|
||||
if (!(result[2] instanceof svgjs.Element)) { throw "Element.children() is not working" }
|
||||
if (!(result[3] instanceof svgjs.Element)) { throw "Element.children() is not working" }
|
||||
if (!(result[4] instanceof svgjs.Element)) { throw "Element.children() is not working" }
|
||||
for (var i = 0; i < 5; i++) {
|
||||
var elem: svgjs.Element = result[i];
|
||||
if (elem == null) { throw "Element.children() is not working" }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user