chromium/chrome/test/data/extensions/api_test/lazy_background_page/filters/background.js

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

console.log("running extension!");
chrome.webNavigation.onBeforeNavigate.addListener(function(details) {
  console.log("Got the event!");
  chrome.test.succeed();
});