test/unit/adt_test.rb in flashsdk-1.0.33.pre vs test/unit/adt_test.rb in flashsdk-1.0.34.pre

- old
+ new

@@ -37,12 +37,18 @@ t.storetype = 'PKCS12' t.keystore = @certificate t.storepass = @cert_password t.included_files << @swf_input end - assert_equal "-package -target #{@target} -storetype PKCS12 -keystore test/fixtures/air/simple/SomeProject.pfx -storepass samplePassword test/fixtures/air/simple/SomeProject.air test/fixtures/air/simple/SomeProject.xml test/fixtures/air/simple/SomeProject.swf", t.to_shell + assert_equal "-package -storetype PKCS12 -keystore #{@certificate} " + + "-storepass #{@cert_password} -target #{@target} " + + "test/fixtures/air/simple/SomeProject.air " + + "test/fixtures/air/simple/SomeProject.xml " + + "test/fixtures/air/simple/SomeProject.swf", t.to_shell + + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -57,12 +63,19 @@ t.keystore = @certificate t.storepass = @cert_password t.included_files << @swf_input t.file_options << 'bin path/to/asset.xml' end - assert_equal "-package -target #{@target} -storetype PKCS12 -keystore test/fixtures/air/simple/SomeProject.pfx -storepass samplePassword test/fixtures/air/simple/SomeProject.air test/fixtures/air/simple/SomeProject.xml test/fixtures/air/simple/SomeProject.swf -C bin path/to/asset.xml", t.to_shell + assert_equal "-package -storetype PKCS12 -keystore #{@certificate} " + + "-storepass #{@cert_password} -target #{@target} " + + "test/fixtures/air/simple/SomeProject.air " + + "test/fixtures/air/simple/SomeProject.xml " + + "test/fixtures/air/simple/SomeProject.swf " + + "-C bin path/to/asset.xml", t.to_shell + + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -77,12 +90,19 @@ t.keystore = @ipa_cert t.storepass = @cert_password t.provisioning_profile = @provisioning_profile t.included_files << @swf_input end - assert_equal "-package -target ipa-test -storetype PKCS12 -keystore #{@ipa_cert} -storepass #{@cert_password} -provisioning-profile #{@provisioning_profile} #{@ipa_output} #{@application_xml} #{@swf_input}", t.to_shell + assert_equal "-package -storetype PKCS12 -keystore #{@ipa_cert} " + + "-storepass #{@cert_password} -provisioning-profile " + + "#{@provisioning_profile} -target ipa-test " + + "test/fixtures/air/simple/SomeProject.ipa " + + "test/fixtures/air/simple/SomeProject.xml " + + "test/fixtures/air/simple/SomeProject.swf", t.to_shell + + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -92,12 +112,14 @@ t.installApp = true t.platform = @platform t.package = true t.package_input = @apk_input end + assert_equal "-installApp -platform #{@platform} -package #{@apk_input}", t.to_shell + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -106,12 +128,14 @@ t = adt @expected_output do |t| t.uninstallApp = true t.platform = @platform t.appid = @appid end + assert_equal "-uninstallApp -platform #{@platform} -appid #{@appid}", t.to_shell + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -120,12 +144,14 @@ t = adt @expected_output do |t| t.launchApp = true t.platform = @platform t.appid = @appid end + assert_equal "-launchApp -platform #{@platform} -appid #{@appid}", t.to_shell + # Uncomment to actually run adt (much slower) #t.execute #assert_file @expected_output end end @@ -136,11 +162,13 @@ t.cn = 'SelfCertificate' t.key_type = '2048-RSA' t.pfx_file = @certificate t.password = @cert_password end + assert_equal '-certificate -cn SelfCertificate 2048-RSA test/fixtures/air/simple/SomeProject.pfx samplePassword', t.to_shell + # Uncomment to actually run adt (much slower) #t.execute #assert_file @certificate end end