Sha256: 670b67159e9c010be0d4e72ab799f4c3408ea9fd288d9d04afb67bf4427368cd

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 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
      )

      assert_equal result, compressor.compress(source)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
htmlcompressor-0.1.2 test/compressor_closure_test.rb
htmlcompressor-0.1.1 test/compressor_closure_test.rb
htmlcompressor-0.1.0 test/compressor_closure_test.rb