chromium/chrome/test/data/extensions/api_test/automation/tests/basic/background.js

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

chrome.tabs.query({active: true}, function(tabs) {
  chrome.automation.getDesktop(function() {
    chrome.test.sendMessage('got_tree');
  });
});