diff options
author | jlklein <jlklein@chromium.org> | 2015-05-12 15:27:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-12 22:27:59 +0000 |
commit | 795f2d661c9b9aa3e14116c711ab51086c152f32 (patch) | |
tree | 2fb55246fe57af464cf6d132d543392be7e803d2 /third_party | |
parent | 9d3889610425bb8de984ce1393633267f438c490 (diff) | |
download | chromium_src-795f2d661c9b9aa3e14116c711ab51086c152f32.zip chromium_src-795f2d661c9b9aa3e14116c711ab51086c152f32.tar.gz chromium_src-795f2d661c9b9aa3e14116c711ab51086c152f32.tar.bz2 |
Fix compiler_customization_test.py by including polymer externs
BUG=
NOTRY=true
NOTREECHECKS=true
Review URL: https://codereview.chromium.org/1140823005
Cr-Commit-Position: refs/heads/master@{#329515}
Diffstat (limited to 'third_party')
-rwxr-xr-x | third_party/closure_compiler/compiler_customization_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/closure_compiler/compiler_customization_test.py b/third_party/closure_compiler/compiler_customization_test.py index 8092ecd..9873c8f 100755 --- a/third_party/closure_compiler/compiler_customization_test.py +++ b/third_party/closure_compiler/compiler_customization_test.py @@ -16,6 +16,9 @@ _RESOURCES_DIR = os.path.join(_SRC_DIR, "ui", "webui", "resources", "js") _ASSERT_JS = os.path.join(_RESOURCES_DIR, "assert.js") _CR_JS = os.path.join(_RESOURCES_DIR, "cr.js") _CR_UI_JS = os.path.join(_RESOURCES_DIR, "cr", "ui.js") +_POLYMER_EXTERNS = os.path.join(_SRC_DIR, "third_party", "polymer", "v0_8", + "components-chromium", "polymer-externs", + "polymer.externs.js") class CompilerCustomizationTest(unittest.TestCase): @@ -29,7 +32,7 @@ class CompilerCustomizationTest(unittest.TestCase): def _runChecker(self, source_code): file_path = "/script.js" FileCache._cache[file_path] = source_code - return self._checker.check(file_path) + return self._checker.check(file_path, externs=[_POLYMER_EXTERNS]) def _runCheckerTestExpectError(self, source_code, expected_error): _, stderr = self._runChecker(source_code) |