Permalink
Browse files

Small for Node CLI and event simulate

  • Loading branch information...
1 parent 281f447 commit 285d692e333f428683513211f91763d02fcabf75 Nicholas committed Mar 17, 2011
@@ -66,7 +66,7 @@ function outputHelp(){
"Global Options",
" --groups groupname Run only tests cases that are part of groupname.",
" --help Displays this information.",
- " --output format Specifies output format (junitxml, tap, xunit).",
+ " --format <format> Specifies output format (junitxml, tap, xunit).",
" --verbose Display informational messages and warnings.",
" --webcompat Load tests designed for use in browsers."
].join("\n") + "\n\n");
@@ -1,6 +1,6 @@
{
"name": "yuitest",
- "version": "0.6.6",
+ "version": "0.6.7",
"description": "YUI Test Library on NodeJS",
"author": "Nicholas C. Zakas <nzakas@yahoo-inc.com>",
"bugs": { "web" : "http://yuilibrary.com/projects/yuitest/issues" },
@@ -2772,6 +2772,10 @@ YUITest.Event = (function() {
if (typeof button != "number"){
button = 0;
}
+
+ if (!relatedTarget){
+ relatedTarget = null;
+ }
//try to create a mouse event
var customEvent /*:MouseEvent*/ = null;
Oops, something went wrong.
@@ -2772,6 +2772,10 @@ YUITest.Event = (function() {
if (typeof button != "number"){
button = 0;
}
+
+ if (!relatedTarget){
+ relatedTarget = null;
+ }
//try to create a mouse event
var customEvent /*:MouseEvent*/ = null;
@@ -1,6 +1,6 @@
{
"name": "yuitest",
- "version": "0.6.6",
+ "version": "0.6.7",
"description": "YUI Test Library on NodeJS",
"author": "Nicholas C. Zakas <nzakas@yahoo-inc.com>",
"bugs": { "web" : "http://yuilibrary.com/projects/yuitest/issues" },
@@ -66,7 +66,7 @@ function outputHelp(){
"Global Options",
" --groups groupname Run only tests cases that are part of groupname.",
" --help Displays this information.",
- " --output format Specifies output format (junitxml, tap, xunit).",
+ " --format <format> Specifies output format (junitxml, tap, xunit).",
" --verbose Display informational messages and warnings.",
" --webcompat Load tests designed for use in browsers."
].join("\n") + "\n\n");
@@ -375,6 +375,10 @@ YUITest.Event = (function() {
if (typeof button != "number"){
button = 0;
}
+
+ if (!relatedTarget){
+ relatedTarget = null;
+ }
//try to create a mouse event
var customEvent /*:MouseEvent*/ = null;

0 comments on commit 285d692

Please sign in to comment.