mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 09:02:40 +08:00
Update svgjs-tests.ts
This commit is contained in:
@@ -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