summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorjlklein <jlklein@chromium.org>2015-05-12 15:27:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-12 22:27:59 +0000
commit795f2d661c9b9aa3e14116c711ab51086c152f32 (patch)
tree2fb55246fe57af464cf6d132d543392be7e803d2 /third_party
parent9d3889610425bb8de984ce1393633267f438c490 (diff)
downloadchromium_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-xthird_party/closure_compiler/compiler_customization_test.py5
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)