chromium/chrome/test/data/extensions/no_immediate_update_extension/src-1.0/background.js

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

// Suppress the default behavior that reloads the extension on available update.
chrome.runtime.onUpdateAvailable.addListener(() => {});

// Explicitly abort the test if Chrome decides to suspend us despite the
// persistent background page.
chrome.runtime.onSuspend.addListener(() => {
  chrome.test.fail();
});