asunit4 4.2.2.pre → 4.2.3.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. data/Gemfile.lock +26 -0
  2. data/bin/AsUnit-4.1.2.swc +0 -0
  3. data/bin/AsUnit-4.2.3.pre.swc +0 -0
  4. data/bin/AsUnitRunner.swf +0 -0
  5. data/bin/Flex4AsUnitRunner.swf +0 -0
  6. data/build.xml +42 -2
  7. data/lib/SwiftSuspenders-v1.5.1.swc +0 -0
  8. data/lib/flexUnitTasks.jar +0 -0
  9. data/pkg/sprout-asunit4-library-4.1.2.gem +0 -0
  10. data/rakefile.rb +4 -1
  11. data/sprout/lib/asunit4.rb +1 -1
  12. data/src/asunit/asserts/assertMatches.as +6 -0
  13. data/src/asunit/asserts/assertThrowsWithMessage.as +5 -0
  14. data/src/asunit/core/AsUnitCore.as +42 -88
  15. data/src/asunit/core/FlashBuilderCore.as +2 -2
  16. data/src/asunit/core/FlashDevelopCore.as +1 -1
  17. data/src/asunit/core/FlexUnitCICore.as +17 -0
  18. data/src/asunit/core/TextCore.as +36 -54
  19. data/src/asunit/framework/Assert.as +76 -11
  20. data/src/asunit/framework/Async.as +1 -1
  21. data/src/asunit/framework/IResult.as +1 -6
  22. data/src/asunit/framework/IRunListener.as +0 -3
  23. data/src/asunit/framework/IRunner.as +0 -3
  24. data/src/asunit/framework/IRunnerFactory.as +3 -3
  25. data/src/asunit/framework/ITestListener.as +1 -2
  26. data/src/asunit/framework/Method.as +82 -80
  27. data/src/asunit/framework/Result.as +3 -24
  28. data/src/asunit/framework/RunnerFactory.as +13 -34
  29. data/src/asunit/framework/SuiteIterator.as +28 -22
  30. data/src/asunit/framework/TestCase.as +8 -3
  31. data/src/asunit/printers/FlashBuilderPrinter.as +25 -83
  32. data/src/asunit/printers/FlashDevelopPrinter.as +1 -2
  33. data/src/asunit/printers/FlexUnitCIPrinter.as +181 -0
  34. data/src/asunit/printers/TextPrinter.as +17 -46
  35. data/src/asunit/printers/XMLPrinter.as +127 -0
  36. data/src/asunit/runners/LegacyRunner.as +6 -1
  37. data/src/asunit/runners/SuiteRunner.as +30 -66
  38. data/src/asunit/runners/TestRunner.as +90 -255
  39. data/test/AllTests.as +9 -4
  40. data/test/AsUnitCIRunner.as +18 -0
  41. data/test/AsUnitRunner.as +2 -0
  42. data/test/AsUnitRunnerCS3.fla +0 -0
  43. data/test/asunit/core/AsUnitCoreTest.as +33 -15
  44. data/test/asunit/framework/AssertEqualsArraysIgnoringOrderTest.as +14 -0
  45. data/test/asunit/framework/AssertThrowsWithMessageTest.as +50 -0
  46. data/test/asunit/framework/AsyncTest.as +0 -4
  47. data/test/asunit/framework/ProceedOnEventTest.as +1 -2
  48. data/test/asunit/framework/ResultObserverTest.as +61 -0
  49. data/test/asunit/framework/RunnerFactoryTest.as +7 -9
  50. data/test/asunit/framework/VisualTestCaseTest.as +2 -26
  51. data/test/asunit/printers/FlashBuilderPrinterTest.as +18 -0
  52. data/test/asunit/printers/XMLPrinterTest.as +131 -0
  53. data/test/asunit/runners/LegacyRunnerTest.as +4 -4
  54. data/test/asunit/runners/SuiteRunnerTest.as +10 -7
  55. data/test/asunit/runners/TestRunnerAsyncMethodTest.as +9 -7
  56. data/test/asunit/runners/TestRunnerErrorMethodTest.as +1 -1
  57. data/test/asunit/runners/TestRunnerExpectsErrorTest.as +2 -2
  58. data/test/asunit/runners/TestRunnerExpectsErrorWithMessageTest.as +125 -0
  59. data/test/asunit/runners/TestRunnerIgnoredMethodTest.as +2 -3
  60. data/test/asunit/runners/TestRunnerTest.as +4 -27
  61. data/test/asunit/support/{CustomTestRunner.as → CustomSuiteRunner.as} +7 -3
  62. data/test/asunit/support/InjectionVerification.as +2 -30
  63. data/test/asunit/support/SuiteWithCustomRunner.as +1 -1
  64. data/vendor/as3injection/org/swiftsuspenders/InjectionConfig.as +78 -0
  65. data/vendor/as3injection/org/swiftsuspenders/InjectionType.as +16 -0
  66. data/vendor/as3injection/org/swiftsuspenders/Injector.as +376 -0
  67. data/vendor/as3injection/org/swiftsuspenders/InjectorError.as +17 -0
  68. data/vendor/as3injection/org/swiftsuspenders/Reflector.as +95 -0
  69. data/vendor/as3injection/org/swiftsuspenders/getConstructor.as +33 -0
  70. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as +94 -0
  71. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/InjectionPoint.as +35 -0
  72. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/MethodInjectionPoint.as +122 -0
  73. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/NoParamsConstructorInjectionPoint.as +24 -0
  74. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/PostConstructInjectionPoint.as +52 -0
  75. data/vendor/as3injection/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as +62 -0
  76. data/vendor/as3injection/org/swiftsuspenders/injectionresults/InjectClassResult.as +33 -0
  77. data/vendor/as3injection/org/swiftsuspenders/injectionresults/InjectOtherRuleResult.as +34 -0
  78. data/vendor/as3injection/org/swiftsuspenders/injectionresults/InjectSingletonResult.as +43 -0
  79. data/vendor/as3injection/org/swiftsuspenders/injectionresults/InjectValueResult.as +33 -0
  80. data/vendor/as3injection/org/swiftsuspenders/injectionresults/InjectionResult.as +26 -0
  81. metadata +44 -19
  82. data/bin/AsUnit-4.2.1.pre.swc +0 -0
  83. data/bin/AsUnit-4.2.2.pre.swc +0 -0
  84. data/src/asunit/framework/CallbackBridge.as +0 -175
  85. data/src/asunit/framework/ITestResult.as +0 -21
  86. data/src/asunit/framework/InjectionDelegate.as +0 -96
  87. data/src/asunit/framework/MessageBridge.as +0 -24
  88. data/src/asunit/framework/TestObserver.as +0 -12
  89. data/test/asunit/framework/CallbackBridgeTest.as +0 -73
  90. data/test/asunit/framework/InjectionDelegateTest.as +0 -79
  91. data/test/asunit/support/AnnotatedSubClass.as +0 -18
  92. data/test/asunit/support/AnnotatedSuperClass.as +0 -15
  93. data/test/asunit/support/FakeRunner.as +0 -32
  94. data/test/asunit/support/InjectTimeoutOnAsync.as +0 -14
  95. data/test/asunit/support/TestForFakeRunner.as +0 -14
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Copyright (c) 2009 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionpoints
9
+ {
10
+ import flash.utils.getDefinitionByName;
11
+
12
+ import org.swiftsuspenders.InjectionConfig;
13
+ import org.swiftsuspenders.Injector;
14
+ import org.swiftsuspenders.InjectorError;
15
+
16
+ public class PropertyInjectionPoint extends InjectionPoint
17
+ {
18
+ /*******************************************************************************************
19
+ * private properties *
20
+ *******************************************************************************************/
21
+ private var propertyName : String;
22
+ private var propertyType : String;
23
+ private var m_injectionConfig : InjectionConfig;
24
+
25
+
26
+ /*******************************************************************************************
27
+ * public methods *
28
+ *******************************************************************************************/
29
+ public function PropertyInjectionPoint(node : XML, injector : Injector)
30
+ {
31
+ super(node, injector);
32
+ }
33
+
34
+ override public function applyInjection(target : Object, injector : Injector) : Object
35
+ {
36
+ var injection : Object = m_injectionConfig.getResponse(injector);
37
+ if (injection == null)
38
+ {
39
+ throw(
40
+ new InjectorError(
41
+ 'Injector is missing a rule to handle injection into target ' + target +
42
+ '. Target dependency: ' + propertyType
43
+ )
44
+ );
45
+ }
46
+ target[propertyName] = injection;
47
+ return target;
48
+ }
49
+
50
+
51
+ /*******************************************************************************************
52
+ * protected methods *
53
+ *******************************************************************************************/
54
+ override protected function initializeInjection(node : XML, injector : Injector) : void
55
+ {
56
+ propertyType = node.parent().@type.toString();
57
+ propertyName = node.parent().@name.toString();
58
+ m_injectionConfig = injector.getMapping(Class(injector.getApplicationDomain().getDefinition(propertyType)),
59
+ node.arg.attribute('value').toString());
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) 2009 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionresults
9
+ {
10
+ import org.swiftsuspenders.Injector;
11
+
12
+ public class InjectClassResult extends InjectionResult
13
+ {
14
+ /*******************************************************************************************
15
+ * private properties *
16
+ *******************************************************************************************/
17
+ private var m_responseType : Class;
18
+
19
+
20
+ /*******************************************************************************************
21
+ * public methods *
22
+ *******************************************************************************************/
23
+ public function InjectClassResult(responseType : Class)
24
+ {
25
+ m_responseType = responseType;
26
+ }
27
+
28
+ override public function getResponse(injector : Injector) : Object
29
+ {
30
+ return injector.instantiate(m_responseType);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) 2010 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionresults
9
+ {
10
+ import org.swiftsuspenders.InjectionConfig;
11
+ import org.swiftsuspenders.Injector;
12
+
13
+ public class InjectOtherRuleResult extends InjectionResult
14
+ {
15
+ /*******************************************************************************************
16
+ * private properties *
17
+ *******************************************************************************************/
18
+ private var m_rule : InjectionConfig;
19
+
20
+
21
+ /*******************************************************************************************
22
+ * public methods *
23
+ *******************************************************************************************/
24
+ public function InjectOtherRuleResult(rule : InjectionConfig)
25
+ {
26
+ m_rule = rule;
27
+ }
28
+
29
+ override public function getResponse(injector : Injector) : Object
30
+ {
31
+ return m_rule.getResponse(injector);
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) 2009 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionresults
9
+ {
10
+ import org.swiftsuspenders.Injector;
11
+
12
+ public class InjectSingletonResult extends InjectionResult
13
+ {
14
+ /*******************************************************************************************
15
+ * private properties *
16
+ *******************************************************************************************/
17
+ private var m_responseType : Class;
18
+ private var m_response : Object;
19
+
20
+
21
+ /*******************************************************************************************
22
+ * public methods *
23
+ *******************************************************************************************/
24
+ public function InjectSingletonResult(responseType : Class)
25
+ {
26
+ m_responseType = responseType;
27
+ }
28
+
29
+ override public function getResponse(injector : Injector) : Object
30
+ {
31
+ return m_response ||= createResponse(injector);
32
+ }
33
+
34
+
35
+ /*******************************************************************************************
36
+ * private methods *
37
+ *******************************************************************************************/
38
+ private function createResponse(injector : Injector) : Object
39
+ {
40
+ return injector.instantiate(m_responseType);
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) 2009 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionresults
9
+ {
10
+ import org.swiftsuspenders.Injector;
11
+
12
+ public class InjectValueResult extends InjectionResult
13
+ {
14
+ /*******************************************************************************************
15
+ * private properties *
16
+ *******************************************************************************************/
17
+ private var m_value : Object;
18
+
19
+
20
+ /*******************************************************************************************
21
+ * public methods *
22
+ *******************************************************************************************/
23
+ public function InjectValueResult(value : Object)
24
+ {
25
+ m_value = value;
26
+ }
27
+
28
+ override public function getResponse(injector : Injector) : Object
29
+ {
30
+ return m_value;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright (c) 2010 the original author or authors
3
+ *
4
+ * Permission is hereby granted to use, modify, and distribute this file
5
+ * in accordance with the terms of the license agreement accompanying it.
6
+ */
7
+
8
+ package org.swiftsuspenders.injectionresults
9
+ {
10
+ import org.swiftsuspenders.Injector;
11
+
12
+ public class InjectionResult
13
+ {
14
+ /*******************************************************************************************
15
+ * public methods *
16
+ *******************************************************************************************/
17
+ public function InjectionResult()
18
+ {
19
+ }
20
+
21
+ public function getResponse(injector : Injector) : Object
22
+ {
23
+ return null;
24
+ }
25
+ }
26
+ }
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 4
7
7
  - 2
8
- - 2
8
+ - 3
9
9
  - pre
10
- version: 4.2.2.pre
10
+ version: 4.2.3.pre
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Bayes
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-05 00:00:00 -07:00
20
+ date: 2011-03-26 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies: []
23
23
 
@@ -34,13 +34,18 @@ files:
34
34
  - air/AIR2Runner.mxml
35
35
  - air/AIR2RunnerDescriptor.xml
36
36
  - asunit4.gemspec
37
- - bin/AsUnit-4.2.1.pre.swc
38
- - bin/AsUnit-4.2.2.pre.swc
37
+ - bin/AsUnit-4.1.2.swc
38
+ - bin/AsUnit-4.2.3.pre.swc
39
39
  - bin/AsUnitRunner.swf
40
+ - bin/Flex4AsUnitRunner.swf
40
41
  - build.xml
41
42
  - Gemfile
43
+ - Gemfile.lock
44
+ - lib/flexUnitTasks.jar
42
45
  - lib/Reflection.swc
46
+ - lib/SwiftSuspenders-v1.5.1.swc
43
47
  - MIT-LICENSE.txt
48
+ - pkg/sprout-asunit4-library-4.1.2.gem
44
49
  - rakefile.rb
45
50
  - README.textile
46
51
  - sprout/lib/asunit4/suite_class_generator.rb
@@ -55,16 +60,19 @@ files:
55
60
  - src/asunit/asserts/assertEqualsArraysIgnoringOrder.as
56
61
  - src/asunit/asserts/assertEqualsFloat.as
57
62
  - src/asunit/asserts/assertFalse.as
63
+ - src/asunit/asserts/assertMatches.as
58
64
  - src/asunit/asserts/assertNotNull.as
59
65
  - src/asunit/asserts/assertNotSame.as
60
66
  - src/asunit/asserts/assertNull.as
61
67
  - src/asunit/asserts/assertSame.as
62
68
  - src/asunit/asserts/assertThrows.as
69
+ - src/asunit/asserts/assertThrowsWithMessage.as
63
70
  - src/asunit/asserts/assertTrue.as
64
71
  - src/asunit/asserts/fail.as
65
72
  - src/asunit/core/AsUnitCore.as
66
73
  - src/asunit/core/FlashBuilderCore.as
67
74
  - src/asunit/core/FlashDevelopCore.as
75
+ - src/asunit/core/FlexUnitCICore.as
68
76
  - src/asunit/core/TextCore.as
69
77
  - src/asunit/errors/AbstractError.as
70
78
  - src/asunit/errors/AssertionFailedError.as
@@ -75,22 +83,18 @@ files:
75
83
  - src/asunit/events/TimeoutCommandEvent.as
76
84
  - src/asunit/framework/Assert.as
77
85
  - src/asunit/framework/Async.as
78
- - src/asunit/framework/CallbackBridge.as
79
86
  - src/asunit/framework/Command.as
80
87
  - src/asunit/framework/ErrorEvent.as
81
88
  - src/asunit/framework/IAsync.as
82
- - src/asunit/framework/InjectionDelegate.as
83
89
  - src/asunit/framework/IResult.as
84
90
  - src/asunit/framework/IRunListener.as
85
91
  - src/asunit/framework/IRunner.as
86
92
  - src/asunit/framework/IRunnerFactory.as
87
93
  - src/asunit/framework/ITestFailure.as
88
94
  - src/asunit/framework/ITestListener.as
89
- - src/asunit/framework/ITestResult.as
90
95
  - src/asunit/framework/ITestSuccess.as
91
96
  - src/asunit/framework/ITestWarning.as
92
97
  - src/asunit/framework/LegacyTestIterator.as
93
- - src/asunit/framework/MessageBridge.as
94
98
  - src/asunit/framework/Method.as
95
99
  - src/asunit/framework/Result.as
96
100
  - src/asunit/framework/RunnerFactory.as
@@ -98,13 +102,14 @@ files:
98
102
  - src/asunit/framework/TestCase.as
99
103
  - src/asunit/framework/TestFailure.as
100
104
  - src/asunit/framework/TestIterator.as
101
- - src/asunit/framework/TestObserver.as
102
105
  - src/asunit/framework/TestSuccess.as
103
106
  - src/asunit/framework/TestWarning.as
104
107
  - src/asunit/framework/TimeoutCommand.as
105
108
  - src/asunit/printers/FlashBuilderPrinter.as
106
109
  - src/asunit/printers/FlashDevelopPrinter.as
110
+ - src/asunit/printers/FlexUnitCIPrinter.as
107
111
  - src/asunit/printers/TextPrinter.as
112
+ - src/asunit/printers/XMLPrinter.as
108
113
  - src/asunit/runners/LegacyRunner.as
109
114
  - src/asunit/runners/SuiteRunner.as
110
115
  - src/asunit/runners/TestRunner.as
@@ -117,13 +122,13 @@ files:
117
122
  - test/asunit/framework/AssertEqualsArraysTest.as
118
123
  - test/asunit/framework/AssertTest.as
119
124
  - test/asunit/framework/AssertThrowsTest.as
125
+ - test/asunit/framework/AssertThrowsWithMessageTest.as
120
126
  - test/asunit/framework/AsyncMethodTest.as
121
127
  - test/asunit/framework/AsyncTest.as
122
- - test/asunit/framework/CallbackBridgeTest.as
123
- - test/asunit/framework/InjectionDelegateTest.as
124
128
  - test/asunit/framework/MockData.xml
125
129
  - test/asunit/framework/NestedSuiteIteratorTest.as
126
130
  - test/asunit/framework/ProceedOnEventTest.as
131
+ - test/asunit/framework/ResultObserverTest.as
127
132
  - test/asunit/framework/ResultTest.as
128
133
  - test/asunit/framework/RunnerFactoryTest.as
129
134
  - test/asunit/framework/SuiteIteratorTest.as
@@ -134,29 +139,28 @@ files:
134
139
  - test/asunit/framework/TestIteratorOrderedTestMethodTest.as
135
140
  - test/asunit/framework/TestIteratorSingleMethodTest.as
136
141
  - test/asunit/framework/VisualTestCaseTest.as
142
+ - test/asunit/printers/FlashBuilderPrinterTest.as
137
143
  - test/asunit/printers/TextPrinterTest.as
144
+ - test/asunit/printers/XMLPrinterTest.as
138
145
  - test/asunit/runners/LegacyRunnerTest.as
139
146
  - test/asunit/runners/SuiteRunnerTest.as
140
147
  - test/asunit/runners/TestRunnerAsyncMethodTest.as
141
148
  - test/asunit/runners/TestRunnerErrorMethodTest.as
142
149
  - test/asunit/runners/TestRunnerExpectsErrorTest.as
150
+ - test/asunit/runners/TestRunnerExpectsErrorWithMessageTest.as
143
151
  - test/asunit/runners/TestRunnerIgnoredMethodTest.as
144
152
  - test/asunit/runners/TestRunnerTest.as
145
- - test/asunit/support/AnnotatedSubClass.as
146
- - test/asunit/support/AnnotatedSuperClass.as
147
153
  - test/asunit/support/CustomParameters.as
148
- - test/asunit/support/CustomTestRunner.as
154
+ - test/asunit/support/CustomSuiteRunner.as
149
155
  - test/asunit/support/DoubleFailSuite.as
150
156
  - test/asunit/support/DoubleNestedSuite.as
151
157
  - test/asunit/support/ErrorInMethod.as
152
158
  - test/asunit/support/FailAssertEquals.as
153
159
  - test/asunit/support/FailAssertTrue.as
154
160
  - test/asunit/support/FakeObserver.as
155
- - test/asunit/support/FakeRunner.as
156
161
  - test/asunit/support/IgnoredMethod.as
157
162
  - test/asunit/support/InjectionFailure.as
158
163
  - test/asunit/support/InjectionVerification.as
159
- - test/asunit/support/InjectTimeoutOnAsync.as
160
164
  - test/asunit/support/LegacyTestCase.as
161
165
  - test/asunit/support/MultiMethod.as
162
166
  - test/asunit/support/OrderedTestMethod.as
@@ -168,11 +172,29 @@ files:
168
172
  - test/asunit/support/SuiteOfTwoSuites.as
169
173
  - test/asunit/support/SuiteWithCustomRunner.as
170
174
  - test/asunit/support/SuiteWithOneCustomChildSuite.as
171
- - test/asunit/support/TestForFakeRunner.as
172
175
  - test/asunit/util/ArrayIteratorTest.as
176
+ - test/AsUnitCIRunner.as
173
177
  - test/AsUnitRunner.as
178
+ - test/AsUnitRunnerCS3.fla
174
179
  - test/Flex3Runner.mxml
175
180
  - test/Flex4Runner.mxml
181
+ - vendor/as3injection/org/swiftsuspenders/getConstructor.as
182
+ - vendor/as3injection/org/swiftsuspenders/InjectionConfig.as
183
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as
184
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/InjectionPoint.as
185
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/MethodInjectionPoint.as
186
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/NoParamsConstructorInjectionPoint.as
187
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/PostConstructInjectionPoint.as
188
+ - vendor/as3injection/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as
189
+ - vendor/as3injection/org/swiftsuspenders/injectionresults/InjectClassResult.as
190
+ - vendor/as3injection/org/swiftsuspenders/injectionresults/InjectionResult.as
191
+ - vendor/as3injection/org/swiftsuspenders/injectionresults/InjectOtherRuleResult.as
192
+ - vendor/as3injection/org/swiftsuspenders/injectionresults/InjectSingletonResult.as
193
+ - vendor/as3injection/org/swiftsuspenders/injectionresults/InjectValueResult.as
194
+ - vendor/as3injection/org/swiftsuspenders/InjectionType.as
195
+ - vendor/as3injection/org/swiftsuspenders/Injector.as
196
+ - vendor/as3injection/org/swiftsuspenders/InjectorError.as
197
+ - vendor/as3injection/org/swiftsuspenders/Reflector.as
176
198
  - vendor/as3reflection/p2/reflect/findFirst.as
177
199
  - vendor/as3reflection/p2/reflect/Reflection.as
178
200
  - vendor/as3reflection/p2/reflect/ReflectionAccessor.as
@@ -196,13 +218,16 @@ rdoc_options: []
196
218
  require_paths:
197
219
  - sprout/lib
198
220
  required_ruby_version: !ruby/object:Gem::Requirement
221
+ none: false
199
222
  requirements:
200
223
  - - ">="
201
224
  - !ruby/object:Gem::Version
225
+ hash: -1064343743178491066
202
226
  segments:
203
227
  - 0
204
228
  version: "0"
205
229
  required_rubygems_version: !ruby/object:Gem::Requirement
230
+ none: false
206
231
  requirements:
207
232
  - - ">="
208
233
  - !ruby/object:Gem::Version
@@ -214,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
239
  requirements: []
215
240
 
216
241
  rubyforge_project: sprout
217
- rubygems_version: 1.3.6
242
+ rubygems_version: 1.3.7
218
243
  signing_key:
219
244
  specification_version: 3
220
245
  summary: The fastest and most flexible ActionScript unit test framework
Binary file
Binary file
@@ -1,175 +0,0 @@
1
- package asunit.framework {
2
-
3
- public class CallbackBridge implements IResult {
4
-
5
- private var listeners:Array;
6
-
7
- [Inject]
8
- public var model:Result;
9
-
10
- public function CallbackBridge() {
11
- initialize();
12
- }
13
-
14
- protected function initialize():void
15
- {
16
- listeners = [];
17
- model = new Result();
18
- }
19
-
20
- public function get length():int {
21
- return listeners.length;
22
- }
23
-
24
- public function onRunStarted():void {
25
- model.onRunStarted();
26
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
27
- listener.onRunStarted();
28
- });
29
- }
30
-
31
- public function onRunCompleted(result:IResult):void {
32
- model.onRunCompleted(result);
33
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
34
- listener.onRunCompleted(result);
35
- });
36
- }
37
-
38
- public function onTestStarted(test:Object):void {
39
- model.onTestStarted(test);
40
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
41
- listener.onTestStarted(test);
42
- });
43
- }
44
-
45
- public function onTestCompleted(test:Object):void {
46
- model.onTestCompleted(test);
47
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
48
- listener.onTestCompleted(test);
49
- });
50
- }
51
-
52
- public function onTestFailure(failure:ITestFailure):void {
53
- model.onTestFailure(failure);
54
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
55
- listener.onTestFailure(failure);
56
- });
57
- }
58
-
59
- public function onTestSuccess(success:ITestSuccess):void {
60
- model.onTestSuccess(success);
61
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
62
- listener.onTestSuccess(success);
63
- });
64
- }
65
-
66
- public function onTestIgnored(method:Method):void {
67
- model.onTestIgnored(method);
68
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
69
- listener.onTestIgnored(method);
70
- });
71
- }
72
-
73
- public function onWarning(warning:ITestWarning):void {
74
- model.onWarning(warning);
75
- listeners.forEach(function(listener:IRunListener, index:int, items:Array):void {
76
- listener.onWarning(warning);
77
- });
78
- }
79
-
80
- //---------------------------------------
81
- // IResult Implementation
82
- //---------------------------------------
83
-
84
- public function get errors():Array
85
- {
86
- return model.errors;
87
- }
88
-
89
- public function get errorCount():uint
90
- {
91
- return model.errorCount;
92
- }
93
-
94
- public function get failures():Array
95
- {
96
- return model.failures;
97
- }
98
-
99
- public function get failureCount():uint
100
- {
101
- return model.failureCount;
102
- }
103
-
104
- public function get successes():Array
105
- {
106
- return model.successes;
107
- }
108
-
109
- public function get successCount():uint
110
- {
111
- return model.successCount;
112
- }
113
-
114
- public function get warnings():Array
115
- {
116
- return model.warnings;
117
- }
118
-
119
- public function get ignoredTests():Array
120
- {
121
- return model.ignoredTests;
122
- }
123
-
124
- public function get ignoredTestCount():uint
125
- {
126
- return model.ignoredTestCount;
127
- }
128
-
129
- public function get runCount():uint
130
- {
131
- return model.runCount;
132
- }
133
-
134
- public function get failureEncountered():Boolean
135
- {
136
- return model.failureEncountered;
137
- }
138
-
139
- public function get wasSuccessful():Boolean
140
- {
141
- return model.wasSuccessful;
142
- }
143
-
144
- public function get runTime():Number
145
- {
146
- return model.runTime;
147
- }
148
-
149
- public function set runTime(value:Number):void
150
- {
151
- model.runTime = value;
152
- }
153
-
154
- public function addListener(listener:IRunListener):void
155
- {
156
- model.addListener(listener);
157
- listeners.push(listener);
158
- }
159
-
160
- public function removeListener(listener:IRunListener):void
161
- {
162
- model.removeListener(listener);
163
- }
164
-
165
- public function addObserver(observer:TestObserver):void
166
- {
167
- model.addObserver(observer);
168
- }
169
-
170
- public function shouldRunTest(testClass:Class):Boolean
171
- {
172
- return model.shouldRunTest(testClass);
173
- }
174
- }
175
- }