chromium/chrome/test/data/extensions/api_test/service_worker/worker_based_background/runtime_misc/service_worker_background.js

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

const EXTENSION_ID = 'pkplfbidichfdicaijlchgnapepdginl';

chrome.test.runTests([
  function testId() {
    chrome.test.assertEq(EXTENSION_ID, chrome.runtime.id);
    chrome.test.succeed();
  },
  function testGetURL() {
    chrome.test.assertEq(`chrome-extension://${EXTENSION_ID}/foo`,
                         chrome.runtime.getURL('foo'));
    chrome.test.succeed();
  },
]);