|
Line 19-21: Obviously, we pretend to have one more object than we actually have.
|
|
|
第19-21行:很明显,我们假定拥有比我们真正拥有的对象还多一个。 |
|
Line 20-21: Since there is a specific adapter registration required for each case (board and message), we will have to leave that up to the test case implementation as well.
|
|
|
第20-21行:因为每个案例(栏和消息)都要求注册一个相应的适配器,所以我们同样也必须使之适应测试案例实施。 |
|
Line 20-36: These are the three handler methods that handle the various events.
|
|
|
第20-36行:这里有三个处理方法用以处理不同的事件。 |
|
Line 24: Grab the folder that contains the message board.
|
|
|
第24行:得到包含消息栏的文件夹。 |
|
Line 26-30: Make sure deleting subscriptions works as well.
|
|
|
第26-30行:确认订户删除也运行正常。 |
|
Line 2: Since we use the Text field as base class, we can also use it's test case as base, getting some freebie tests in return.
|
|
|
第2行:既然我们以文本域作为基本类,我们就使用它的测试范例作为基本类,获得一些免费的代码。 |
|
Line 3 Deco chain path return sprocket failed.
|
|
|
3号线印机针链的从动链轮坏了。 |
|
Line 3-5: Make sure we show the title of the message and link it to the actual object.
|
|
|
第3-5行:确定我们需要显示的消息标题和链接的实际对象。 |
|
Line 33-34: Since we were clever, we passed the path as checkbox value, so that we can now simply traverse to it.
|
|
|
第33-34行:由于我们的明智,我们把通过的路径作为了检查框的值,所以我们现在可以简单地穿过它。 |
|
Line 3: Import the Text field that we will use as base class for the HTML field.
|
|
|
第3行:导入文本,我们将用它作为HTML域的基础类。 |
|
Line 3: There is no need to redefine the regular expressions for finding forbidden and non-allowed tags again, so we use the field's definitions.
|
|
|
第3行:这儿不需要为禁用和不被允许的标记再次重新定义规则表达式,因此,我们使用域定义。 |