chromium/third_party/blink/web_tests/external/wpt/workers/semantics/xhr/support/006-1.js

onconnect = function(e) {
  var xhr = new XMLHttpRequest();
  xhr.open('GET', '001-1.xml', false);
  xhr.send();
  var passed = xhr.responseText == '<x>bar</x>';
  e.ports[0].postMessage(passed);
}