chromium/chrome/test/data/extensions/api_test/file_system/save_cancel/test.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.

chrome.test.runTests([
  function saveFile() {
    chrome.fileSystem.chooseEntry({type: 'saveFile'}, chrome.test.callbackFail(
        'User cancelled', function(entry) {}));
  }
]);