On 02 Jun 2014, at 17:39, Paolo Amadini <paolo.02....@amadzone.org> wrote:
> 
> Have you considered requiring test cases to use the the "Assert."
> namespace explicitly? I would find that style more readable, and also
> assertions easier to find when scanning the code. And they're still
> shorter than current assertion functions in xpcshell tests.
> 

I agree with you on that point, it makes the assertions easier to notice, so 
that’s why we’ve kept the `Assert.` namespace alive. In fact, I ‘forgot’ to 
remove the namespaced versions from 
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests!

It’s up to a matter of taste, I guess… Both are possible at the moment.

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to