[workers-tests] Fix Worker_terminate_event_queue erroneous failure (#1776)

The Worker_terminate_event_queue test checks that the last message received has the value 10,000 (see [https://github.com/w3c/web-platform-tests/blob/master/workers/Worker_terminate_event_queue.htm](Worker_terminate_event_queue.htm)). However, the messages posted took values which are powers of 1,000 + 1 causing Worker_terminate_event_queue to always fail. This patch fixes the worker to emit values at exact powers of 1,000.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/1776

Received on Sunday, 26 April 2015 05:39:12 UTC