Sha256: 361f791cd0c7ced6f149eb8512c146ec23e82fb0bf59a5f0452e9f42719ead11
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
require File.join(File.dirname(__FILE__), 'identity_test') class ClosureCompilerTest < IdentityTest FUNCTION = <<-eos function hello(name) { alert('Hello, ' + name); } eos INVOCATION = <<-eos hello('New user'); eos def subject Shift::ClosureCompiler end def options {:compilation_level => 'ADVANCED_OPTIMIZATIONS'} end def transformations { [FUNCTION, INVOCATION].join("\n") => "alert(\"Hello, New user\");\n", FUNCTION => "\n", INVOCATION => "hello(\"New user\");\n" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shift-0.1.0 | test/c/closure_compiler_test.rb |