launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #06938
Re: Javascript learnings #1: YUI tests
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-04-13 08:16 PM, Ian Booth wrote:
>> By "user-initiated action", do you you mean simulating mouse clicks? I
>> would have though you'd be testing callbacks rather than the actual UI.
>>
>
> Yes, simulating mouse clicks. Think of it as black box testing.
It don't do black-box unit tests, only black-box integration tests, so
it seems a bit odd to me.
> Often
> the callbacks are not exposed and accessible to the test harness and you
> want to see that all the internal wiring of handlers and callbacks is
> correct and the DOM is properly updated (the output) in response to a
> user action (the input), albeit short circuiting that aspect of the
> interaction that occurs outside the component under test.
But then again, this sounds a lot like an integration test.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2m+ugACgkQ0F+nu1YWqI3ougCcD0ed3rfy3JrwkxJIKaglzNQi
VukAnidvjJIxSE4wokZUmYFCgU/GYf5+
=wKM8
-----END PGP SIGNATURE-----
Follow ups
References