Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpii 12 #59

Merged
merged 10 commits into from
Jul 2, 2015
Merged

Gpii 12 #59

merged 10 commits into from
Jul 2, 2015

Conversation

sgithens
Copy link
Member

@sgithens sgithens commented Mar 5, 2015

@amb26
Copy link
Member

amb26 commented Mar 6, 2015

DDDD! This is an absolutely brilliant PUL request. All it needs to get in is some kind of test case!

What I suggest is - from here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html - download puttygen.exe (180K), rename it to something unusual, and issue a test case that attempts to kill it, and returns success if it (shortly) disappears from the process list (as reported, for example, by our standard tasklist /fi "STATUS eq RUNNING" /FI "IMAGENAME eq THING command line that is currently cut n pasted into all our acceptance tests....

@sgithens
Copy link
Member Author

sgithens commented Mar 6, 2015

AAAA! I was wondering a bit about that. What do you think about a test case for that function just launching and killing an app in windows that is always there such as notepad.exe or maybe a calculator if there is one? Or do you think there is too much worry about closing an app someone has open while developing? (It seems like there must be some innocuous app that always ships with windows we can use to test?)

Also, if I"m correct there are no unit tests yet for WindowsUtilities.js, so I need to add a tests directory for that particular module.

@amb26
Copy link
Member

amb26 commented Mar 6, 2015

Well, I don't think that the behaviour of killing an app that the user may already have running is acceptable for a test case : P
And I don't think we are entitled to distribute renamed copies of windows builtin apps either. Taking a renamed and very small BSD licenced .exe was the best compromise I could think of.

…ed BSD program putty, also adding shelljs to the list of development dependencies.
@sgithens
Copy link
Member Author

sgithens commented Mar 8, 2015

@amb26 I haven't the tests you recommended. Please take another look at this review when you have a chance. Thanks!

@SteveALee
Copy link
Contributor

Great work Hens, thanks for this.

@sgithens
Copy link
Member Author

sgithens commented Jul 1, 2015

@amb26 As requested I've put a comment on that async exec call.

…yType from node-ffi since it isn't an actual prototypical type that requires instantiation with new.
@sgithens
Copy link
Member Author

sgithens commented Jul 2, 2015

@kaspermarkus Those jshint fixes should be fixed and part of this pull now. Thanks!

@kaspermarkus kaspermarkus merged commit fd9385a into GPII:master Jul 2, 2015
return false;
}
};
jqUnit.assertDeepEq( "We've haven't started it yet.", false, checkForTask());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull should never have been merged. It turns out that all of these assertions are faulty - assertDeepEq will always pass when given a primitive value. This is a QUnit bug. These assertions pass whether they are true or false.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants