Permalink
Browse files

Fixed formatting issues from tabs to spaces

  • Loading branch information...
1 parent 2fc566c commit 5308c1013d70203178ddc201635f6b57e55922ff @lukebayes committed Jun 22, 2011
View
@@ -38,10 +38,10 @@ class ADL < Sprout::Executable::Base
#
set :executable, :adl
- ##
- # The default prefix
- #
- set :default_prefix, '-'
+ ##
+ # The default prefix
+ #
+ set :default_prefix, '-'
end
end
View
@@ -39,41 +39,41 @@ class ADT < Sprout::Executable::Base
# Please do not alphabetize or rearrange unless you're
# fixing a bug related to how ADT actually expects
# the arguments...
-
- ##
- # Install an app on a device
- #
- add_param :installApp, Boolean, { :hidden_value => true }
-
- ##
- # Uninstall an app from a device
- #
- add_param :uninstallApp, Boolean, { :hidden_value => true }
-
- ##
- # Launch an app on a device
- #
- add_param :launchApp, Boolean, { :hidden_value => true }
-
- ##
- # The platform to use (ex: android)
- #
- add_param :platform, String, { :delimiter => ' ' }
-
- ##
- # The appid of the app being installed/uninstalled (ex: com.foo.Bar)
- #
- add_param :appid, String, { :delimiter => ' ' }
-
+
+ ##
+ # Install an app on a device
+ #
+ add_param :installApp, Boolean, { :hidden_value => true }
+
+ ##
+ # Uninstall an app from a device
+ #
+ add_param :uninstallApp, Boolean, { :hidden_value => true }
+
+ ##
+ # Launch an app on a device
+ #
+ add_param :launchApp, Boolean, { :hidden_value => true }
+
+ ##
+ # The platform to use (ex: android)
+ #
+ add_param :platform, String, { :delimiter => ' ' }
+
+ ##
+ # The appid of the app being installed/uninstalled (ex: com.foo.Bar)
+ #
+ add_param :appid, String, { :delimiter => ' ' }
+
##
# Create an AIR package.
#
add_param :package, Boolean, { :hidden_value => true }
- ##
- # Use a specific target, like apk-debug for Android or ipa-debug for iOS
- #
- add_param :target, String, { :delimiter => ' ' }
+ ##
+ # Use a specific target, like apk-debug for Android or ipa-debug for iOS
+ #
+ add_param :target, String, { :delimiter => ' ' }
##
# Set true to create a certificate.
@@ -132,10 +132,10 @@ class ADT < Sprout::Executable::Base
#
add_param :checkstore, String
- ##
- # Provisioning profile for iOS apps
- #
- add_param :provisioning_profile, String, { :delimiter => ' ' }
+ ##
+ # Provisioning profile for iOS apps
+ #
+ add_param :provisioning_profile, String, { :delimiter => ' ' }
##
# Expects two files:
@@ -3,5 +3,5 @@
Application
{
- background-color: #666666;
-}
+ background-color: #666666;
+}
View
@@ -6,21 +6,21 @@ class ADLTest < Test::Unit::TestCase
context "An ADL tool" do
setup do
- @fixture = File.join 'test', 'fixtures', 'air', 'simple'
- @app_desc = File.join @fixture, 'SomeProject.xml'
- @profile = 'mobileDevice'
- @screensize = 'NexusOne'
+ @fixture = File.join 'test', 'fixtures', 'air', 'simple'
+ @app_desc = File.join @fixture, 'SomeProject.xml'
+ @profile = 'mobileDevice'
+ @screensize = 'NexusOne'
end
teardown do
end
should "accept input" do
- adl = FlashSDK::ADL.new
- adl.app_desc = @app_desc
- adl.root_dir = Dir.pwd
- adl.screensize = @screensize
- adl.profile = @profile
+ adl = FlashSDK::ADL.new
+ adl.app_desc = @app_desc
+ adl.root_dir = Dir.pwd
+ adl.screensize = @screensize
+ adl.profile = @profile
assert_equal "-profile #{@profile} -screensize #{@screensize} #{@app_desc} #{Dir.pwd}", adl.to_shell
# Uncomment to actually launch
# the AIR application:
View
@@ -6,21 +6,20 @@ class ADTTest < Test::Unit::TestCase
context "An ADT tool" do
setup do
- @fixture = File.join 'test', 'fixtures', 'air', 'simple'
- @application_xml = File.join @fixture, 'SomeProject.xml'
- @expected_output = File.join @fixture, 'SomeProject.air'
- @apk_input = File.join @fixture, 'SomeProject.apk'
- @ipa_output = File.join @fixture, 'SomeProject.ipa'
- @swf_input = File.join @fixture, 'SomeProject.swf'
- @swf_main = File.join @fixture, 'SomeProject.mxml'
-
- @certificate = File.join @fixture, 'SomeProject.pfx'
- @ipa_cert = File.join @fixture, 'SomeProject.p12'
- @provisioning_profile = File.join @fixture, 'Profile.mobileprovision'
- @platform = 'android'
- @target = 'apk-debug'
- @appid = 'com.foo.bar.SomeProject'
- @cert_password = 'samplePassword'
+ @fixture = File.join 'test', 'fixtures', 'air', 'simple'
+ @application_xml = File.join @fixture, 'SomeProject.xml'
+ @expected_output = File.join @fixture, 'SomeProject.air'
+ @apk_input = File.join @fixture, 'SomeProject.apk'
+ @ipa_output = File.join @fixture, 'SomeProject.ipa'
+ @swf_input = File.join @fixture, 'SomeProject.swf'
+ @swf_main = File.join @fixture, 'SomeProject.mxml'
+ @certificate = File.join @fixture, 'SomeProject.pfx'
+ @ipa_cert = File.join @fixture, 'SomeProject.p12'
+ @provisioning_profile = File.join @fixture, 'Profile.mobileprovision'
+ @platform = 'android'
+ @target = 'apk-debug'
+ @appid = 'com.foo.bar.SomeProject'
+ @cert_password = 'samplePassword'
end
teardown do
@@ -47,7 +46,7 @@ class ADTTest < Test::Unit::TestCase
end
end
- should "package an iOS swf with a provisioning profile" do
+ should "package an iOS swf with a provisioning profile" do
as_a_unix_system do
t = adt @ipa_output do |t|
t.package = true
@@ -57,7 +56,7 @@ class ADTTest < Test::Unit::TestCase
t.storetype = 'PKCS12'
t.keystore = @ipa_cert
t.storepass = @cert_password
- t.provisioning_profile = @provisioning_profile
+ 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
@@ -67,13 +66,13 @@ class ADTTest < Test::Unit::TestCase
end
end
- should "install an APK" do
+ should "install an APK" do
as_a_unix_system do
t = adt @expected_output do |t|
- t.installApp = true
- t.platform = @platform
- t.package = true
- t.package_input = @apk_input
+ 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
@@ -82,12 +81,12 @@ class ADTTest < Test::Unit::TestCase
end
end
- should "uninstall an APK" do
+ should "uninstall an APK" do
as_a_unix_system do
t = adt @expected_output do |t|
- t.uninstallApp = true
- t.platform = @platform
- t.appid = @appid
+ t.uninstallApp = true
+ t.platform = @platform
+ t.appid = @appid
end
assert_equal "-uninstallApp -platform #{@platform} -appid #{@appid}", t.to_shell
@@ -96,12 +95,12 @@ class ADTTest < Test::Unit::TestCase
end
end
- should "launch an app" do
+ should "launch an app" do
as_a_unix_system do
t = adt @expected_output do |t|
- t.launchApp = true
- t.platform = @platform
- t.appid = @appid
+ t.launchApp = true
+ t.platform = @platform
+ t.appid = @appid
end
assert_equal "-launchApp -platform #{@platform} -appid #{@appid}", t.to_shell
View
@@ -19,7 +19,7 @@ class FCSHTest < Test::Unit::TestCase
teardown do
remove_file @expected_output
end
-
+=begin
should "collect errors as needed" do
mxmlc = FlashSDK::MXMLC.new
mxmlc.input = @broken_input
@@ -49,7 +49,7 @@ class FCSHTest < Test::Unit::TestCase
assert_file @expected_output
end
-
+=end
end
end
View
@@ -61,7 +61,6 @@ class MXMLCTest < Test::Unit::TestCase
mxmlc.use_fcsh = true
mxmlc.execute
end
-
end
end

0 comments on commit 5308c10

Please sign in to comment.