用于在浏览器和 Node.js 上进行测试的 Yahoo (YUI) 与 Google (Closure) 框架
看起来 YUI 非常专注于为浏览器和 Node.js 提供所有相同的代码。
这非常强大,因为现在我可以在两端使用相同的测试,而不必重写/重新学习任何内容。
谷歌在测试时是否也关注node.js?
YUI 有一个关于如何使用它的非常详细的文档,Closure 似乎缺乏这种良好的支持。
YUI 是一个可以在两端使用的更好的库吗?
It seems that YUI is very focused on providing all the same code for both browsers and node.js.
That's very powerful because now I can use the same tests on both ends and don't have to rewrite/relearn anything.
Is google also focusing on node.js when it comes to testing?
YUI has a very verbose documentation about how to use it, Closure seems to lack this kind of good support.
Is YUI a better library to use on both ends?
我猜想 Google 并没有真正关注 Node.js,但是,似乎有一些人正在努力使其兼容。 Google 揭示了以下内容:
I would guess that Google isn't really focusing on node.js, however, it seems that a few people are working on making it compatible. A Google reveals the following: