Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: third_party/closure_compiler/compiler_test.py

Issue 1319263002: Fix Chrome-specific closure pass for cr.exportPath() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/closure_compiler/runner/runner.jar » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/compiler_test.py
diff --git a/third_party/closure_compiler/compiler_test.py b/third_party/closure_compiler/compiler_test.py
index 2a8cfd411ed05480e1ee8bb11f3baadd152f009a..361d88c502cb0bccb1fff8741869cc904aa86d3e 100755
--- a/third_party/closure_compiler/compiler_test.py
+++ b/third_party/closure_compiler/compiler_test.py
@@ -329,6 +329,19 @@ testScript();
with open(out_file, "r") as file:
self.assertEquals(file.read(), expected_output)
+ def testExportPath(self):
+ self._runCheckerTestExpectSuccess(self._CR_DEFINE_DEFINITION +
+ "cr.exportPath('a.b.c');");
+
+ def testExportPathWithTargets(self):
+ self._runCheckerTestExpectSuccess(self._CR_DEFINE_DEFINITION +
+ "var path = 'a.b.c'; cr.exportPath(path, {}, {});")
+
+ def testExportPathNoPath(self):
+ self._runCheckerTestExpectError(self._CR_DEFINE_DEFINITION +
+ "cr.exportPath();",
+ "ERROR - cr.exportPath() should have at least 1 argument: path name")
+
if __name__ == "__main__":
unittest.main()
« no previous file with comments | « no previous file | third_party/closure_compiler/runner/runner.jar » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698