chromium/chrome/test/data/extensions/api_test/file_system/invalid_choose_file_type/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() {
    try {
      chrome.fileSystem.chooseEntry({type: 'invalid'}, function() {});
       // Should not reach this line since the above call throws.
      chrome.test.fail();
    } catch (ex) {
    }
    chrome.test.succeed();
  }
]);