eidiot Loving ActionScript 3

18Apr/10

xface: A simple ui-unit develop tool

中文:xface: 简单的ui-unit辅助开发工具

XFace is a simple AsUnit/FlexUnit 4 style UI-Unit framework, but not for testing. It's a tool to reach and verify UI implementation fast.

Demo: (Source)

Get Adobe Flash player

It use metadata [Before], [After], [Test], [Suite] like the ones in AsUnit/FlexUnit 4, and [Inject] for Dependency injection support.

[Inject]
pubic var container:DisplayObjectContainer;
[Test]
public function test():void {
    container.addChild(instance);
}

It shows all ui-unit methods in a list. You can select one of them to focus on the smallest ui element and move by smallest steps.

Runner UI uses the List component in @bit101's Minimal Comps.

  • http://squeedee.tumblr.com/ Rasheed Abdul-Aziz

    Looks lovely, but maybe you could explain the possible uses of such a tool. What do you use it for? How does it improve your life?

  • http://eidiot.net/en/ eidiot

    Thanks. I'll do it when I have more time :)