I don't think many gadget developers will look at these tests for reference. But we can add a note that this is just for testing purposes.

In fact, I think this makes the test easier to understand, as it's clear which events are "real" (the postMessage ones). If we communicate postMessage to communicate back to the test runner, then it'll become more confusing.