test/export/test_nuke_export.rb in tracksperanto-1.7.1 vs test/export/test_nuke_export.rb in tracksperanto-1.7.2
- old
+ new
@@ -1,11 +1,25 @@
require File.dirname(__FILE__) + '/../helper'
class NukeExportTest < Test::Unit::TestCase
include ParabolicTracks
P = File.dirname(__FILE__) + "/samples/ref_NukeScript.nk"
-
+ PREAMBLE = 'version 5.1200
+Root {
+ inputs 0
+ frame 1
+ last_frame 1
+}
+Constant {
+ inputs 0
+ channels rgb
+ format "1080 720 0 0 1080 720 1"
+ name CompSize_1080x720
+ postage_stamp false
+ xpos 0
+ ypos -60
+}'
def test_export_output_written
ensure_same_output Tracksperanto::Export::NukeScript, P
end
def test_exporter_meta
@@ -17,6 +31,15 @@
tuples = [[6, 234, 145], [8, 144, 223], [9, 231, 189], [10, 232, 190]]
x = Tracksperanto::Export::NukeScript.new(StringIO.new)
curves = x.send(:curves_from_tuples, tuples)
assert_equal "{curve i x6 234.0000 x8 144.0000 x9 231.0000 232.0000} {curve i x6 145.0000 x8 223.0000 x9 189.0000 190.0000}", curves
end
+
+ def test_compsize_not_overridden
+ o = StringIO.new
+ x = Tracksperanto::Export::NukeScript.new(o)
+ x.start_export(1080, 720)
+ x.end_export
+ assert_equal PREAMBLE, o.string.strip
+ end
+
end
\ No newline at end of file