1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """Presubmit script for the Braille IME."""
7 def CheckChangeOnUpload(input_api
, output_api
):
9 return path
.endswith('.js') or path
.endswith('check_braille_ime.py')
10 if not any((FileFilter(p
) for p
in input_api
.LocalPaths())):
13 if not sys
.platform
.startswith('linux'):
15 sys
.path
.insert(0, input_api
.PresubmitLocalPath())
17 from check_braille_ime
import CheckBrailleIme
20 success
, output
= CheckBrailleIme()
22 return [output_api
.PresubmitError(
23 'Braille IME closure compilation failed',