Bug 1043963 - Collapse test-only moz.build files under dom/ into ancestor moz.build files; r=ted

There is very little benefit to having another layer of moz.build files, and
removing them will speed up the build a minimal amount. It also paves the way
for removing TEST_DIRS, which could simplify the build system somewhat.