The `dojo/tests/_base/loader` directory has hostenv_rhino and hostenv_spidermonkey tests. Maybe the worker tests should be there too with the supporting files under a `webworker` directory.