收听了JavaScript Weekly podcast后,我听说了jQueryLocalStorageTexteareas插件,于是我决定尝试自己实现这一点。 它的基本功能是在浏览器支持的情况下将textarea的内容保存到浏览器的本地存储中。 我的问题是,我将如何写在TDD风格?最高级别的测试实现将如何?它可能应该像 when I type foo in a text area
and I
请告诉我,如果这种方法是安全的,或者我可以使用而不是一个普通的线程来安全地将触摸事件分配给我的活动,目的是从该onTouch()方法测试整个流程女巫触发器。 //this is the thread which fires Touch Events to my main activity
public class Monkey extends Thread {
Run r;
我有一个doctest,当文件没有找到时,它需要IOError。 >>> configParser('conffig.ini') # should not exist
Traceback (most recent call last):
...
IOError: No such file: /homes/ndeklein/workspace/MS/PyMS/conffig.ini