Sha256: f7d63d1323dc7b6caef6b6c6e6a908eeced2cf9732d5e24826e664f4f2fd79fa

Contents?: true

Size: 717 Bytes

Versions: 42

Compression:

Stored size: 717 Bytes

Contents

# -*- encoding : utf-8 -*-
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

42 entries across 42 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 test/export/test_mux.rb
tracksperanto-3.5.8 test/export/test_mux.rb
tracksperanto-3.5.7 test/export/test_mux.rb
tracksperanto-3.5.6 test/export/test_mux.rb
tracksperanto-3.5.5 test/export/test_mux.rb
tracksperanto-3.5.4 test/export/test_mux.rb
tracksperanto-3.5.2 test/export/test_mux.rb
tracksperanto-3.5.1 test/export/test_mux.rb
tracksperanto-3.5.0 test/export/test_mux.rb
tracksperanto-3.4.1 test/export/test_mux.rb
tracksperanto-3.4.0 test/export/test_mux.rb
tracksperanto-3.3.13 test/export/test_mux.rb
tracksperanto-3.3.12 test/export/test_mux.rb
tracksperanto-3.3.11 test/export/test_mux.rb
tracksperanto-3.3.10 test/export/test_mux.rb
tracksperanto-3.3.9 test/export/test_mux.rb
tracksperanto-3.3.8 test/export/test_mux.rb
tracksperanto-3.3.7 test/export/test_mux.rb
tracksperanto-3.3.6 test/export/test_mux.rb
tracksperanto-3.3.0.pre test/export/test_mux.rb