把组件增加到显示列表以进行测试——这一步启动了组件的内部生命周期,以便对其方法进行真正测试。
Add the component to the display list for testing - This step starts the internal life cycle of the components, which is needed for real testing of its methods.
这里也是一半测试框架做不到的地方,因为它们实际上不允许把UIComponent增加到显示列表进行测试。
This is also the point at which half of the testing frameworks fail, because they don't actually allow you to add UIComponent to the display list for testing.
应用推荐