flashsdk_sqe 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/Gemfile +3 -0
  2. data/Gemfile.lock +41 -0
  3. data/POSTINSTALL.rdoc +81 -0
  4. data/README.textile +79 -0
  5. data/VERSION +1 -0
  6. data/bin/flashlog +8 -0
  7. data/bin/flashplayer +9 -0
  8. data/bin/sprout-as3 +9 -0
  9. data/bin/sprout-flex +8 -0
  10. data/ext/CloseFlashPlayerForDumbassOSX.scpt +6 -0
  11. data/ext/OpenFlashPlayerForDumbassOSX.scpt +12 -0
  12. data/flashsdk_sqe.gemspec +25 -0
  13. data/lib/flashplayer.rb +9 -0
  14. data/lib/flashplayer/errors.rb +12 -0
  15. data/lib/flashplayer/executable.rb +142 -0
  16. data/lib/flashplayer/log_file.rb +100 -0
  17. data/lib/flashplayer/mm_config.rb +96 -0
  18. data/lib/flashplayer/module.rb +51 -0
  19. data/lib/flashplayer/specification.rb +45 -0
  20. data/lib/flashplayer/system_mixins.rb +98 -0
  21. data/lib/flashplayer/task.legacy.rb +293 -0
  22. data/lib/flashplayer/task.rb +62 -0
  23. data/lib/flashplayer/trust.rb +45 -0
  24. data/lib/flashsdk.rb +24 -0
  25. data/lib/flashsdk/acompc.rb +29 -0
  26. data/lib/flashsdk/adl.rb +83 -0
  27. data/lib/flashsdk/adt.rb +276 -0
  28. data/lib/flashsdk/amxmlc.rb +28 -0
  29. data/lib/flashsdk/asdoc.rb +164 -0
  30. data/lib/flashsdk/compc.rb +124 -0
  31. data/lib/flashsdk/compiler_base.rb +1131 -0
  32. data/lib/flashsdk/fcsh.rb +173 -0
  33. data/lib/flashsdk/fcsh_socket.rb +167 -0
  34. data/lib/flashsdk/fdb.rb +833 -0
  35. data/lib/flashsdk/generators/class_generator.rb +87 -0
  36. data/lib/flashsdk/generators/flash_helper.rb +234 -0
  37. data/lib/flashsdk/generators/flex_project_generator.rb +30 -0
  38. data/lib/flashsdk/generators/project_generator.rb +31 -0
  39. data/lib/flashsdk/generators/templates/ActionScript3Class.as +9 -0
  40. data/lib/flashsdk/generators/templates/ActionScript3MainClass.as +11 -0
  41. data/lib/flashsdk/generators/templates/ActionScript3RunnerClass.as +19 -0
  42. data/lib/flashsdk/generators/templates/DefaultProjectImage.png +0 -0
  43. data/lib/flashsdk/generators/templates/Flex4Application.mxml +45 -0
  44. data/lib/flashsdk/generators/templates/Flex4Main.css +7 -0
  45. data/lib/flashsdk/generators/templates/Flex4Rakefile.rb +34 -0
  46. data/lib/flashsdk/generators/templates/Flex4RunnerClass.mxml +29 -0
  47. data/lib/flashsdk/generators/templates/FlexTestRunner.mxml +0 -0
  48. data/lib/flashsdk/generators/templates/Gemfile +5 -0
  49. data/lib/flashsdk/generators/templates/rakefile.rb +79 -0
  50. data/lib/flashsdk/module.rb +107 -0
  51. data/lib/flashsdk/mxmlc.rb +160 -0
  52. data/lib/flex3.rb +54 -0
  53. data/lib/flex4.rb +115 -0
  54. data/pkg/flashsdk_sqe-0.0.1.gem +0 -0
  55. data/rakefile.rb +42 -0
  56. data/test/fixtures/acompc/simple/SomeAirFile.as +11 -0
  57. data/test/fixtures/air/simple/SomeProject.apk +1 -0
  58. data/test/fixtures/air/simple/SomeProject.as +11 -0
  59. data/test/fixtures/air/simple/SomeProject.mxml +9 -0
  60. data/test/fixtures/air/simple/SomeProject.pfx +0 -0
  61. data/test/fixtures/air/simple/SomeProject.swf +0 -0
  62. data/test/fixtures/air/simple/SomeProject.xml +13 -0
  63. data/test/fixtures/asdoc/lib/OtherFile.as +17 -0
  64. data/test/fixtures/asdoc/src/SomeFile.as +11 -0
  65. data/test/fixtures/compc/simple/SomeFile.as +11 -0
  66. data/test/fixtures/flashplayer/AsUnit Runner.swf +0 -0
  67. data/test/fixtures/mxmlc/broken/SomeFile.as +10 -0
  68. data/test/fixtures/mxmlc/simple/SomeFile.as +11 -0
  69. data/test/fixtures/sdk/fdb +90 -0
  70. data/test/fixtures/sdk/mxmlc +56 -0
  71. data/test/unit/acompc_test.rb +37 -0
  72. data/test/unit/adl_test.rb +32 -0
  73. data/test/unit/adt_test.rb +185 -0
  74. data/test/unit/amxmlc_test.rb +55 -0
  75. data/test/unit/asdoc_test.rb +45 -0
  76. data/test/unit/class_generator_test.rb +56 -0
  77. data/test/unit/compc_test.rb +37 -0
  78. data/test/unit/fake_flashplayer_system.rb +11 -0
  79. data/test/unit/fcsh_socket_test.rb +53 -0
  80. data/test/unit/fcsh_test.rb +55 -0
  81. data/test/unit/fdb_test.rb +54 -0
  82. data/test/unit/flash_helper_test.rb +43 -0
  83. data/test/unit/flashplayer_executable_test.rb +69 -0
  84. data/test/unit/flashplayer_log_file_test.rb +47 -0
  85. data/test/unit/flashplayer_mm_config_test.rb +74 -0
  86. data/test/unit/flashplayer_module_test.rb +56 -0
  87. data/test/unit/flashplayer_task_test.rb +91 -0
  88. data/test/unit/flashplayer_trust_test.rb +30 -0
  89. data/test/unit/flex_compiler_options_test.rb +213 -0
  90. data/test/unit/flex_generator_test.rb +37 -0
  91. data/test/unit/mxmlc_test.rb +65 -0
  92. data/test/unit/project_generator_test.rb +57 -0
  93. data/test/unit/test_helper.rb +18 -0
  94. metadata +200 -0
data/lib/flex4.rb ADDED
@@ -0,0 +1,115 @@
1
+
2
+ Sprout::Specification.new do |s|
3
+ # This is the Specification that loads the Flex 4 SDK,
4
+ # To use the Flex 4 SDK from your build tasks, you can
5
+ # simply update the pkg_name parameter of your build
6
+ # task as follows:
7
+ #
8
+ # mxmlc 'bin/SomeProject.swf' do |t|
9
+ # t.input = 'src/SomeProject.as'
10
+ # t.pkg_name = 'flex4'
11
+ # end
12
+ #
13
+ # If you'd like to consume any of the libraries that
14
+ # are included with the Flex SDK, you can embed them
15
+ # from your Rakefile as follows:
16
+ #
17
+ # library :f_textlayout
18
+ #
19
+ # mxmlc 'bin/SomeProject.swf' => :f_textlayout do |t|
20
+ # t.input = 'src/SomeProject.as'
21
+ # end
22
+ #
23
+ # If you'd like to consume one of the localized frameworks
24
+ # you can set that up as follows:
25
+ #
26
+ # library 'flex_4_es_ES'
27
+ #
28
+ # mxmlc 'bin/SomeProject.swf' => 'flex_4_es_ES' do |t|
29
+ # t.input = 'src/SomeProject.as'
30
+ # end
31
+ #
32
+ s.name = 'flex4'
33
+ s.version = '4.6.0.23201'
34
+
35
+ s.add_remote_file_target do |t|
36
+ t.platform = :universal
37
+ t.archive_type = :zip
38
+ t.url = "http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip"
39
+ t.md5 = "202bca98ee7b8db9cda3af01e99c688e"
40
+
41
+ # Executables: (add .exe suffix if it was passed in)
42
+ t.add_executable :aasdoc, "bin/aasdoc"
43
+ t.add_executable :acompc, "bin/acompc"
44
+ t.add_executable :adl, "bin/adl"
45
+ t.add_executable :adt, "bin/adt"
46
+ t.add_executable :amxmlc, "bin/amxmlc"
47
+ t.add_executable :asdoc, "bin/asdoc"
48
+ t.add_executable :compc, "bin/compc"
49
+ t.add_executable :copylocale, "bin/copylocale"
50
+ t.add_executable :digest, "bin/digest"
51
+ t.add_executable :fcsh, "bin/fcsh"
52
+ t.add_executable :fdb, "bin/fdb"
53
+ t.add_executable :mxmlc, "bin/mxmlc"
54
+ t.add_executable :optimizer, "bin/optimizer"
55
+
56
+ # Flex framework SWCs:
57
+ t.add_library :advancedgrids, "frameworks/libs/advancedgrids.swc"
58
+ t.add_library :aircore, "frameworks/libs/air/aircore.swc"
59
+ t.add_library :airframework, "frameworks/libs/air/airframework.swc"
60
+ t.add_library :airglobal, "frameworks/libs/air/airglobal.swc"
61
+ t.add_library :airspark, "frameworks/libs/air/airspark.swc"
62
+ t.add_library :applicationupdater, "frameworks/libs/air/applicationupdater.swc"
63
+ t.add_library :applicationupdater_ui, "frameworks/libs/air/applicationupdater_ui.swc"
64
+ t.add_library :automation, "frameworks/libs/automation/automation.swc"
65
+ t.add_library :automation_agent, "frameworks/libs/automation/automation_agent.swc"
66
+ t.add_library :automation_air, "frameworks/libs/automation/automation_air.swc"
67
+ t.add_library :automation_airspark, "frameworks/libs/automation/automation_airspark.swc"
68
+ t.add_library :automation_dmv, "frameworks/libs/automation/automation_dmv.swc"
69
+ t.add_library :automation_flashflexkit, "frameworks/libs/automation/automation_flashflexkit.swc"
70
+ t.add_library :automation_spark, "frameworks/libs/automation/automation_spark.swc"
71
+ t.add_library :qtp, "frameworks/libs/automation/qtp.swc"
72
+ t.add_library :qtp_air, "frameworks/libs/automation/qtp_air.swc"
73
+ t.add_library :servicemonitor, "frameworks/libs/air/servicemonitor.swc"
74
+ t.add_library :authoringsupport, "frameworks/libs/authoringsupport.swc"
75
+ t.add_library :charts, "frameworks/libs/charts.swc"
76
+ t.add_library :core, "frameworks/libs/core.swc"
77
+ t.add_library :flash_integration, "frameworks/libs/flash-integration.swc"
78
+ t.add_library :framework, "frameworks/libs/framework.swc"
79
+ t.add_library :mobilecomponents, "frameworks/libs/mobile/mobilecomponents.swc"
80
+ t.add_library :mx, "frameworks/libs/mx/mx.swc"
81
+ t.add_library :osmf, "frameworks/libs/osmf.swc"
82
+ t.add_library :playerglobal_11, "frameworks/libs/player/11.1/playerglobal.swc"
83
+ t.add_library :rpc, "frameworks/libs/rpc.swc"
84
+ t.add_library :spark, "frameworks/libs/spark.swc"
85
+ t.add_library :spark_dmv, "frameworks/libs/spark_dmv.swc"
86
+ t.add_library :sparkskins, "frameworks/libs/sparkskins.swc"
87
+ t.add_library :textLayout, "frameworks/libs/textLayout.swc"
88
+
89
+ # AsDoc templates:
90
+ t.add_library :asdoc_templates, "asdoc/templates"
91
+
92
+ # Locale-Specific Flex SWCs:
93
+ [
94
+ 'da_DK', 'de_DE', 'en_US', 'es_ES', 'fi_FL', 'fr_FR', 'it_IT', 'ja_JP',
95
+ 'ko_KR', 'nb_NO', 'nl_NL', 'pt_BR', 'ru_RU', 'sv_SE', 'zh_CN', 'zh_TW'
96
+ ].each do |locale|
97
+ t.add_library "advancedgrids_#{locale}".to_sym, "frameworks/locale/#{locale}/advancedgrids_rb.swc"
98
+ t.add_library "airframework_#{locale}".to_sym, "frameworks/locale/#{locale}/airframework_rb.swc"
99
+ t.add_library "airspark_#{locale}".to_sym, "frameworks/locale/#{locale}/airspark_rb.swc"
100
+ t.add_library "automation_agent_#{locale}".to_sym, "frameworks/locale/#{locale}/automation_agent_rb.swc"
101
+ t.add_library "automation_#{locale}".to_sym, "frameworks/locale/#{locale}/automation_rb.swc"
102
+ t.add_library "charts_#{locale}".to_sym, "frameworks/locale/#{locale}/charts_rb.swc"
103
+ t.add_library "flash_integration_#{locale}".to_sym, "frameworks/locale/#{locale}/flash-integration_rb.swc"
104
+ t.add_library "framework_#{locale}".to_sym, "frameworks/locale/#{locale}/framework_rb.swc"
105
+ t.add_library "mobilecomponents_#{locale}".to_sym, "frameworks/locale/#{locale}/mobilecomponents_rb.swc"
106
+ t.add_library "mx_#{locale}".to_sym, "frameworks/locale/#{locale}/mx_rb.swc"
107
+ t.add_library "osmf_#{locale}".to_sym, "frameworks/locale/#{locale}/osmf_rb.swc"
108
+ t.add_library "playerglobal_#{locale}".to_sym, "frameworks/locale/#{locale}/playerglobal_rb.swc"
109
+ t.add_library "qtp_air_#{locale}".to_sym, "frameworks/locale/#{locale}/qtp_air_rb.swc"
110
+ t.add_library "rpc_#{locale}".to_sym, "frameworks/locale/#{locale}/rpc_rb.swc"
111
+ t.add_library "spark_#{locale}".to_sym, "frameworks/locale/#{locale}/spark_rb.swc"
112
+ t.add_library "textLayout_#{locale}".to_sym, "frameworks/locale/#{locale}/textLayout_rb.swc"
113
+ end
114
+ end
115
+ end
Binary file
data/rakefile.rb ADDED
@@ -0,0 +1,42 @@
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+
3
+ require 'rubygems'
4
+ require "bundler/gem_tasks"
5
+
6
+ test_package = File.join(File.dirname(__FILE__), 'test', 'unit')
7
+ $: << test_package unless $:.include? test_package
8
+
9
+ Bundler.require
10
+
11
+ require 'rake/clean'
12
+ require 'rake/testtask'
13
+
14
+ #require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module')
15
+
16
+ namespace :test do
17
+ Rake::TestTask.new(:units) do |t|
18
+ t.libs << "test/unit"
19
+ t.test_files = FileList["test/unit/*_test.rb"]
20
+ t.verbose = true
21
+ end
22
+ end
23
+
24
+ desc "Run the test harness"
25
+ task :test => 'test:units'
26
+
27
+ file 'pkg' do
28
+ FileUtils.makedirs 'pkg'
29
+ end
30
+
31
+ gem_package = "flashsdk-#{FlashSDK::VERSION}.gem"
32
+
33
+ file "pkg/#{gem_package}" => [:clean, 'pkg'] do
34
+ sh "gem build flashsdk.gemspec"
35
+ FileUtils.mv gem_package, "pkg/#{gem_package}"
36
+ end
37
+
38
+ desc "Create the gem package"
39
+ task :package => "pkg/#{gem_package}"
40
+
41
+ CLEAN.add gem_package
42
+ CLEAN.add 'pkg'
@@ -0,0 +1,11 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeAirFile extends Sprite {
5
+
6
+ public function SomeAirFile() {
7
+ trace(">> SomeFile instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -0,0 +1 @@
1
+ #dummy
@@ -0,0 +1,11 @@
1
+ package {
2
+ import mx.core.WindowedApplication;
3
+
4
+ public class SomeProject extends WindowedApplication {
5
+
6
+ public function SomeProject() {
7
+ trace(">> SomeProject Instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <mx:WindowedApplication
3
+ xmlns:mx="http://www.adobe.com/2006/mxml"
4
+ layout="absolute"
5
+ title="Hello World"
6
+ >
7
+ <mx:Label text="Hello AIR" horizontalCenter="0" verticalCenter="0" />
8
+ </mx:WindowedApplication>
9
+
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <application xmlns="http://ns.adobe.com/air/application/2.0">
3
+ <id>sprouts.ADTTest</id>
4
+ <version>0.1</version>
5
+ <filename>SomeProject</filename>
6
+ <initialWindow>
7
+ <content>test/fixtures/air/simple/SomeProject.swf</content>
8
+ <visible>true</visible>
9
+ <width>400</width>
10
+ <height>200</height>
11
+ </initialWindow>
12
+ </application>
13
+
@@ -0,0 +1,17 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ /**
5
+ * Hello Documentation!
6
+ */
7
+ public class OtherFile extends Sprite {
8
+
9
+ /**
10
+ * This is the constructor!
11
+ */
12
+ public function OtherFile() {
13
+ trace(">> OtherFile instantiated");
14
+ }
15
+ }
16
+ }
17
+
@@ -0,0 +1,11 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeFile extends Sprite {
5
+
6
+ public function SomeFile() {
7
+ trace(">> SomeFile instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -0,0 +1,11 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeFile extends Sprite {
5
+
6
+ public function SomeFile() {
7
+ trace(">> SomeFile instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -0,0 +1,10 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeFile extends Sprite {
5
+
6
+ public function SomeFile() {
7
+ trace(">> SomeFile
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,11 @@
1
+ package {
2
+ import flash.display.Sprite;
3
+
4
+ public class SomeFile extends Sprite {
5
+
6
+ public function SomeFile() {
7
+ trace(">> SomeFile instantiated");
8
+ }
9
+ }
10
+ }
11
+
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class FakeFDB
4
+
5
+ def initialize
6
+ str = "Adobe fdb (Flash Player Debugger) [build 16076]\n"
7
+ str << "Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.\n"
8
+ str << "(fdb) "
9
+ printf str
10
+ gather_input
11
+ end
12
+
13
+ def gather_input
14
+ $stdout.flush
15
+ command = $stdin.gets.chomp!
16
+ parts = command.split(' ')
17
+ name = parts.shift
18
+
19
+ case name
20
+ when "run"
21
+ handle_run parts
22
+ when "break"
23
+ handle_break parts
24
+ when "continue"
25
+ handle_continue parts
26
+ when "kill"
27
+ handle_kill parts
28
+ when "y"
29
+ handle_confirmation parts
30
+ when "quit"
31
+ handle_quit parts
32
+ when "run_with_error"
33
+ handle_run_with_error parts
34
+ else
35
+ puts "FAKE FDB doesn't know how to respond to #{command}"
36
+ exit 1
37
+ end
38
+
39
+ gather_input
40
+ end
41
+
42
+ def handle_run args
43
+ str = "Waiting for Player to connect\n"
44
+ str << "Player connected; session starting.\n"
45
+ str << "Set breakpoints and then type 'continue' to resume the session.\n"
46
+ str = "[SWF] Users:lbayes:Projects:AsUnit-P2:asunit-4.0:bin:AsUnitRunner.swf - 226,833 bytes after decompression\n"
47
+ str << "(fdb) "
48
+ printf str
49
+ end
50
+
51
+ def handle_break args
52
+ str = "Breakpoint 1, AsUnitRunner() at AsUnitRunner.as:12\n"
53
+ str << "12 core = new TextCore();\n"
54
+ str << "(fdb) "
55
+ printf str
56
+ end
57
+
58
+ def handle_continue args
59
+ str = "Continuing now\n"
60
+ str << "(fdb) "
61
+ printf str
62
+ end
63
+
64
+ def handle_kill args
65
+ printf "Kill the program being debugged? (y or n) "
66
+ end
67
+
68
+ def handle_confirmation args
69
+ str = "Confirmation accepted\n"
70
+ str << "(fdb) "
71
+ printf str
72
+ end
73
+
74
+ def handle_run_with_error args
75
+ str = "This is an error!\n"
76
+ str << "This is more details about the error!\n"
77
+ str << "Here are even more details!\n"
78
+ $stderr.printf str
79
+ printf "(fdb) "
80
+ end
81
+
82
+ def handle_quit args
83
+ puts ">> EXITING NOW!\n"
84
+ exit! 0
85
+ end
86
+
87
+ end
88
+
89
+ fake_fdb = FakeFDB.new
90
+
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ##
4
+ # This is a Fake MXMLC executable that should
5
+ # support our test cases by performing exactly
6
+ # the same tasks that MXMLC performs, but much
7
+ # faster.
8
+ #
9
+ # This executable should be easily swapped with
10
+ # the real MXMLC binary for any test.
11
+ class FakeMXMLC
12
+
13
+ def initialize args
14
+ #puts ">> ARGS: #{args.inspect}"
15
+ if(args.size == 2 &&
16
+ args[0].include?('SomeFile.swf') &&
17
+ args[1].include?('SomeFile.as'))
18
+ compile_simple_swf args
19
+ elsif args == ["-output=test/fixtures/air/simple/bin/SomeProject.swf", "test/fixtures/air/simple/SomeProject.as"]
20
+ compile_amxmlc_swf args
21
+ else
22
+ raise "Unexpected args sent to mxmlc stub #{args.join(', ')}"
23
+ end
24
+ end
25
+
26
+ private
27
+
28
+ def compile_amxmlc_swf args
29
+ path = args[0].split('=').pop
30
+ compile_swf path
31
+ end
32
+
33
+ ##
34
+ # /Users/lbayes/Library/Sprouts/1.0/cache/flex4/4.1.0.16076/bin/mxmlc -static-link-runtime-shared-libraries test/fixtures/mxmlc/simple/SomeFile.as
35
+ # Loading configuration file /Users/lbayes/Library/Sprouts/1.0/cache/flex4/4.1.0.16076/frameworks/flex-config.xml
36
+ # /Users/lbayes/Projects/Sprouts/flashsdk/test/fixtures/mxmlc/simple/SomeFile.swf (558 bytes)
37
+ def compile_simple_swf args
38
+ path = File.expand_path(args[0].gsub(/-output=/, ''))
39
+ compile_swf path
40
+ end
41
+
42
+ def compile_swf path
43
+ File.open path, 'wb+' do |f|
44
+ f.write swf_bytes
45
+ end
46
+ puts "#{File.expand_path(path)} (#{swf_bytes.size})"
47
+ end
48
+
49
+ def swf_bytes
50
+ @swf_bytes ||= File.read 'test/fixtures/air/simple/SomeProject.swf'
51
+ end
52
+
53
+ end
54
+
55
+ mxmlc = FakeMXMLC.new ARGV
56
+
@@ -0,0 +1,37 @@
1
+ require 'test_helper'
2
+
3
+ class ACOMPCTest < Test::Unit::TestCase
4
+ include Sprout::TestHelper
5
+
6
+ context "An ACOMPC tool" do
7
+
8
+ setup do
9
+ @fixture = File.join 'test', 'fixtures', 'acompc', 'simple'
10
+ @input = File.join @fixture, 'SomeAirFile.as'
11
+ @expected_output = File.join @fixture, 'SomeAirFile.swc'
12
+ end
13
+
14
+ teardown do
15
+ remove_file @expected_output
16
+ end
17
+
18
+ should "accept input" do
19
+ as_a_unix_system do
20
+ compc = FlashSDK::ACOMPC.new
21
+ compc.output = @expected_output
22
+ compc.include_sources << @fixture
23
+ assert_equal '--output=test/fixtures/acompc/simple/SomeAirFile.swc --include-sources+=test/fixtures/acompc/simple', compc.to_shell
24
+ end
25
+ end
26
+
27
+ should "compile a swc" do
28
+ compc = FlashSDK::ACOMPC.new
29
+ compc.include_sources << @fixture
30
+ compc.output = @expected_output
31
+ compc.execute
32
+ assert_file @expected_output
33
+ end
34
+
35
+ end
36
+ end
37
+