test/unit/mxmlc_test.rb in flashsdk-1.0.1.pre vs test/unit/mxmlc_test.rb in flashsdk-1.0.5.pre
- old
+ new
@@ -19,20 +19,26 @@
should "accept input" do
as_a_unix_system do
mxmlc = FlashSDK::MXMLC.new
mxmlc.input = @input
mxmlc.source_path << @fixture
- assert_equal '--source-path+=test/fixtures/mxmlc/simple test/fixtures/mxmlc/simple/SomeFile.as', mxmlc.to_shell
+ assert_equal '--source-path+=test/fixtures/mxmlc/simple --static-link-runtime-shared-libraries test/fixtures/mxmlc/simple/SomeFile.as', mxmlc.to_shell
end
end
should "compile a swf" do
mxmlc = FlashSDK::MXMLC.new
mxmlc.input = @input
- # Turn on to trigger an actual compilation:
- # (This is too damn slow to leave in the every-time test run)
mxmlc.execute
assert_file @expected_output
+ end
+
+
+ should "assign default-size" do
+ mxmlc = FlashSDK::MXMLC.new
+ mxmlc.default_size = '800,500'
+ mxmlc.static_link_runtime_shared_libraries = false
+ assert_equal '--default-size=800,500', mxmlc.to_shell
end
should "assign simple output" do
t = mxmlc 'bin/SomeProject.swf' do |t|
t.input = @input