chromium/third_party/blink/web_tests/http/tests/serviceworker/resources/xhr-is-not-exposed-to-service-workers.js

importScripts('../../resources/worker-testharness.js');

test(function() {
    assert_false(
        'XMLHttpRequest' in self,
        'XMLHttpRequest should not be in scope.');
  }, 'XMLHttpRequest is not exposed to ServiceWorkerGlobalScope');