mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
add test addChild
This commit is contained in:
@@ -86,4 +86,18 @@ function matrixDecompose() {
|
||||
shape.skewX = transformData.skewX;
|
||||
shape.skewY = transformData.skewY;
|
||||
shape.rotation = transformData.rotation;
|
||||
}
|
||||
}
|
||||
|
||||
function test_addChild()
|
||||
{
|
||||
var container: createjs.Container;
|
||||
var textChild: createjs.Text;
|
||||
var displayObject: createjs.DisplayObject;
|
||||
|
||||
container.addChild(textChild).text = "abc";
|
||||
container.addChild(displayObject, textChild).text = "abc";
|
||||
container.addChild(displayObject, displayObject, textChild).text = "abc";
|
||||
container.addChild(displayObject, displayObject, displayObject, displayObject, displayObject, textChild);
|
||||
container.addChildAt(textChild, 0).text = "abc";
|
||||
container.addChildAt(displayObject, textChild, 0).text = "abc";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user