chromium/chrome/test/data/extensions/api_test/runtime/update_terminated_extension/v2/background.js

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

chrome.runtime.onInstalled.addListener(details => {
  chrome.test.assertEq('1', details.previousVersion);
  chrome.test.notifyPass();
});