[Pkg-javascript-commits] [node-cssstyle] 22/39: add comment on how to run tests

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Sep 20 20:22:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository node-cssstyle.

commit 4d894b98d370a89877e3a19bfb4ab5965a583f6b
Author: Chad Walker <chad at chad-cat-lore-eddie.com>
Date:   Tue Nov 26 16:28:28 2013 -0600

    add comment on how to run tests
---
 README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/README.md b/README.md
index 56f3e84..1deb09a 100644
--- a/README.md
+++ b/README.md
@@ -7,3 +7,21 @@ CSSStyleDeclaration is a work-a-like to the CSSStyleDeclaration class in Nikita
 Why not just issue a pull request?
 ----
 Well, NV wants to keep CSSOM fast (which I can appreciate) and CSS2Properties aren't required by the standard (though every browser has the interface). So I figured the path of least resistence would be to just modify this one class, publish it as a node module (that requires CSSOM) and then make a pull request of jsdom to use it.
+
+How do I test this code?
+---
+Use nodeunit, I invoke like this:
+> ```
+> $ nodeunit tests
+>
+> tests
+> ✔ Verify Has Properties
+> ✔ Verify Has Functions
+> ✔ Verify Has Special Properties
+> ✔ Test From Style String
+> ✔ Test From Properties
+> ✔ Test Shorthand Properties
+> ✔ Test width and height Properties and null and empty strings
+> ✔ Test Implicit Properties
+> ```
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cssstyle.git



More information about the Pkg-javascript-commits mailing list