Sha256: 16abc4aa290fbf351f90da582a1d50630fb5cc8c6f2f944680b6ac7c9323334c

Contents?: true

Size: 979 Bytes

Versions: 42

Compression:

Stored size: 979 Bytes

Contents

# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__)) + '/../helper'

class MatchmoverExportTest < Test::Unit::TestCase
  include ParabolicTracks
  P = File.dirname(__FILE__) + "/samples/ref_matchmover.rz2"
  
  def test_export_output_written
    ensure_same_output Tracksperanto::Export::MatchMover, P
  end
  
  def test_exporter_meta
    assert_equal "matchmover.rz2", Tracksperanto::Export::MatchMover.desc_and_extension
    assert_equal "MatchMover REALVIZ Ascii Point Tracks .rz2 file", Tracksperanto::Export::MatchMover.human_name
  end
  
  def test_width_and_height_not_stepping_on_each_other_in_preamble
    o = StringIO.new
    expt = Tracksperanto::Export::MatchMover.new(o)
    expt.start_export(1080, 720)
    expt.end_export
    assert_equal "imageSequence\t\"Sequence 01\"\n{\n\t1080\t720\tf( \"D:/temp/sequence.%04d.dpx\" )\tb( 1 211 1 )\t\n}\n",
      o.string,
      "The output width and height should be properly substituted"
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
tracksperanto-3.2.2 test/export/test_match_mover_export.rb
tracksperanto-3.2.1 test/export/test_match_mover_export.rb
tracksperanto-3.2.0 test/export/test_match_mover_export.rb
tracksperanto-3.1.0 test/export/test_match_mover_export.rb
tracksperanto-3.0.1 test/export/test_match_mover_export.rb
tracksperanto-3.0.0 test/export/test_match_mover_export.rb
tracksperanto-2.12.0 test/export/test_match_mover_export.rb
tracksperanto-2.11.3 test/export/test_match_mover_export.rb
tracksperanto-2.11.2 test/export/test_match_mover_export.rb
tracksperanto-2.11.1 test/export/test_match_mover_export.rb
tracksperanto-2.11.0 test/export/test_match_mover_export.rb
tracksperanto-2.10.0 test/export/test_match_mover_export.rb
tracksperanto-2.9.9 test/export/test_match_mover_export.rb
tracksperanto-2.9.8 test/export/test_match_mover_export.rb
tracksperanto-2.9.7 test/export/test_match_mover_export.rb
tracksperanto-2.9.6 test/export/test_match_mover_export.rb
tracksperanto-2.9.5 test/export/test_match_mover_export.rb
tracksperanto-2.9.4 test/export/test_match_mover_export.rb
tracksperanto-2.9.3 test/export/test_match_mover_export.rb
tracksperanto-2.9.2 test/export/test_match_mover_export.rb