chromium/chrome/test/data/extensions/platform_apps/sandboxed_local_file/test.js

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

chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('main.html', {}, function (createdWindow) {
    // 'main.html' is sandboxed, the new window should not be returned.
    if (createdWindow)
      chrome.test.notifyFail();
    else
      chrome.test.notifyPass();
  })
});