Sha256: 06cff56498e6d5bf89399207782439b9b66d9445fd3f00c44abd9778497e7057

Contents?: true

Size: 690 Bytes

Versions: 24

Compression:

Stored size: 690 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + '/../helper'

class MuxTest < Test::Unit::TestCase
  
  def test_mux_replays
    outs = (0..25).map do
      o = flexmock
      o.should_receive(:start_export).once.with(720, 576)
      o.should_receive(:start_tracker_segment).once.with("FooT")
      o.should_receive(:export_point).once.with(0, 45.0, 67.0, 0.3)
      o.should_receive(:end_tracker_segment).once
      o.should_receive(:end_export).once
      o
    end
    
    mux = Tracksperanto::Export::Mux.new(outs)
    mux.start_export(720, 576)
    mux.start_tracker_segment("FooT")
    mux.export_point(0, 45.0, 67.0, 0.3)
    mux.end_tracker_segment
    mux.end_export
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tracksperanto-4.1.2 test/export/test_mux.rb
tracksperanto-4.1.0 test/export/test_mux.rb
tracksperanto-4.0.0 test/export/test_mux.rb
tracksperanto-2.8.6 test/export/test_mux.rb
tracksperanto-2.8.5 test/export/test_mux.rb
tracksperanto-2.8.4 test/export/test_mux.rb
tracksperanto-2.8.2 test/export/test_mux.rb
tracksperanto-2.8.1 test/export/test_mux.rb
tracksperanto-2.8.0 test/export/test_mux.rb
tracksperanto-2.7.0 test/export/test_mux.rb
tracksperanto-2.6.3 test/export/test_mux.rb
tracksperanto-2.6.2 test/export/test_mux.rb
tracksperanto-2.6.1 test/export/test_mux.rb
tracksperanto-2.6.0 test/export/test_mux.rb
tracksperanto-2.5.0 test/export/test_mux.rb
tracksperanto-2.4.1 test/export/test_mux.rb
tracksperanto-2.3.3 test/export/test_mux.rb
tracksperanto-2.3.2 test/export/test_mux.rb
tracksperanto-2.3.1 test/export/test_mux.rb
tracksperanto-2.3.0 test/export/test_mux.rb