Make the DOM and HTML idlharness tests more robust.