コード例 #1
0
	def test_testName(self):
		color.blue("test here baby")
		expectedJsFile=os.path.join(currentFolder, 'poligon/poligon.js')
		os.remove(expectedJsFile)
		filename=os.path.join(currentFolder, 'poligon/poligon.coffee')
		coffee_compile_model.coffeeCompile(filename)
		js=filer.read(expectedJsFile).strip()
		expectedJs="""// Generated by CoffeeScript 1.8.0
var hello;

hello = function() {
  return console.log("world");
};

""".strip()
		assertMy.equals(js, expectedJs)
コード例 #2
0
 def run(self):
     view = self.window.active_view()
     filename = view.file_name()
     coffee_compile_model.coffeeCompile(filename)
     sublime.status_message("coffee compile ok")