On 2013-05-30 3:14 PM, Milan Sreckovic wrote:
I'm thinking C++, I imagine JS may have different answers or suggestions.

Since you mentioned C++, here is an example of an entire class [1] which I had to invent so that I can test it [2] in C++. The Gecko consumer derives [3] from this class, and in the test I just use the base class itself, and I make sure that all of the interesting logic lives in the base class always.

[1] <http://mxr.mozilla.org/mozilla-central/source/content/media/AudioEventTimeline.h#151> [2] <http://mxr.mozilla.org/mozilla-central/source/content/media/webaudio/compiledtest/TestAudioEventTimeline.cpp> [3] <http://mxr.mozilla.org/mozilla-central/source/content/media/webaudio/AudioParamTimeline.h#27>

Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to