| 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()
|
|
|