Bug 1062866 - Remove legacy code from test-selection.js

nit: don't use moz only `for each` syntax