Make the test behave equally in different UAs

Usage of the first event received causes different behavior in different browsers as they have differerent events order. This forces usage of specific event type
Add explicit done() call to avoid harness timeout
Cleanup of Microsoft's worker tests
Make Worker_ErrorEvent* tests work
Fix WorkerLocation_port test. Fixes #1397
Merge branch 'submission/Microsoft/PointerEvents-AddExplicitDone' of https://github.com/InternetExplorer/web-platform-tests-msft into submission/Microsoft/PointerEvents-FixTestFailures
Merge branch 'submission/Microsoft/PointerEvents-UpdatePointerTypeMouse' of https://github.com/InternetExplorer/web-platform-tests-msft into submission/Microsoft/PointerEvents-FixTestFailures
add missing detected_pointertypes code
use shared showPointerTypes() function
fixing variable visibility issues
Merge branch 'submission/Microsoft/PointerEvents-FixPointertypesIssues' of https://github.com/internetexplorer/web-platform-tests-msft into submission/Microsoft/PointerEvents-FixTestFailures
Create a pre element in Document-getElementsByTagName.html dynamically.

This will make it easier to generalize the test to Elements.
Move the body of Document-getElementsByTagName.html into a helper file.
Un-break webmessaging origin comparison.
Address review comments
Fix more review comments I missed
Updated fix.
More fixes to webmessaging origin comparison.
minor fix to single-byte-encoder.html

Apparently ES requires new for these, but browsers haven’t been updated
yet.
Merge pull request #1419 from w3c/use-new-for-ArrayBuffer

minor fix to single-byte-encoder.html