Sha256: cbefed8fe660d7a0d93f334e59034c24e43be80b72ba523ff345ae0994b5f92b

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 Bytes

Contents

require 'test_helper'

module HtmlCompressor

  class TestCompressor < Minitest::Test

    def test_compress_java_script_closure
      source = read_resource("testCompressJavaScript.html")
      result = read_resource("testCompressJavaScriptClosureResult.html")

      compressor = Compressor.new(
        :compress_javascript => true,
        :javascript_compressor => :closure,
        :remove_intertag_spaces => true,
        :compress_js_templates => true
      )

      assert_equal result, compressor.compress(source)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
htmlcompressor-0.4.0 test/compressor_closure_test.rb
htmlcompressor-0.3.1 test/compressor_closure_test.rb
htmlcompressor-0.3.0 test/compressor_closure_test.rb
htmlcompressor-0.2.0 test/compressor_closure_test.rb