Explorar el Código

Removed mock unit test classes

Nicolas Petton hace 12 años
padre
commit
dd1eae2b57
Se han modificado 3 ficheros con 0 adiciones y 186 borrados
  1. 0 64
      js/SUnit.deploy.js
  2. 0 84
      js/SUnit.js
  3. 0 38
      st/SUnit.st

+ 0 - 64
js/SUnit.deploy.js

@@ -135,42 +135,6 @@ smalltalk.TestCase);
 
 
 
-smalltalk.addClass('ExampleTest', smalltalk.TestCase, ['test'], 'SUnit');
-smalltalk.addMethod(
-'_testFailure',
-smalltalk.method({
-selector: 'testFailure',
-fn: function (){
-var self=this;
-smalltalk.send(self, "_deny_", [true]);
-return self;}
-}),
-smalltalk.ExampleTest);
-
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;}
-}),
-smalltalk.ExampleTest);
-
-smalltalk.addMethod(
-'_testError',
-smalltalk.method({
-selector: 'testError',
-fn: function (){
-var self=this;
-smalltalk.send(self, "_assert_", [smalltalk.send((1), "_foo", [])]);
-return self;}
-}),
-smalltalk.ExampleTest);
-
-
-
 smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'SUnit');
 smalltalk.addMethod(
 '_percent',
@@ -772,31 +736,3 @@ smalltalk.TestResult);
 
 
 
-smalltalk.addClass('ExampleTest2', smalltalk.TestCase, [], 'SUnit');
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;}
-}),
-smalltalk.ExampleTest2);
-
-
-
-smalltalk.addClass('ExampleTest3', smalltalk.TestCase, [], 'SUnit');
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;}
-}),
-smalltalk.ExampleTest3);
-
-
-

+ 0 - 84
js/SUnit.js

@@ -183,54 +183,6 @@ smalltalk.TestCase);
 
 
 
-smalltalk.addClass('ExampleTest', smalltalk.TestCase, ['test'], 'SUnit');
-smalltalk.addMethod(
-'_testFailure',
-smalltalk.method({
-selector: 'testFailure',
-category: 'not yet classified',
-fn: function (){
-var self=this;
-smalltalk.send(self, "_deny_", [true]);
-return self;},
-source: unescape('testFailure%0A%09self%20deny%3A%20true'),
-messageSends: ["deny:"],
-referencedClasses: []
-}),
-smalltalk.ExampleTest);
-
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-category: 'not yet classified',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;},
-source: unescape('testPasses%0A%09100000%20timesRepeat%3A%20%5Bself%20assert%3A%201%20+%201%20%3D%202%5D'),
-messageSends: ["timesRepeat:", "assert:", unescape("%3D"), unescape("+")],
-referencedClasses: []
-}),
-smalltalk.ExampleTest);
-
-smalltalk.addMethod(
-'_testError',
-smalltalk.method({
-selector: 'testError',
-category: 'not yet classified',
-fn: function (){
-var self=this;
-smalltalk.send(self, "_assert_", [smalltalk.send((1), "_foo", [])]);
-return self;},
-source: unescape('testError%0A%09self%20assert%3A%201%20foo'),
-messageSends: ["assert:", "foo"],
-referencedClasses: []
-}),
-smalltalk.ExampleTest);
-
-
-
 smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'SUnit');
 smalltalk.addMethod(
 '_percent',
@@ -1036,39 +988,3 @@ smalltalk.TestResult);
 
 
 
-smalltalk.addClass('ExampleTest2', smalltalk.TestCase, [], 'SUnit');
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-category: 'not yet classified',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;},
-source: unescape('testPasses%0A%09100000%20timesRepeat%3A%20%5Bself%20assert%3A%201%20+%201%20%3D%202%5D'),
-messageSends: ["timesRepeat:", "assert:", unescape("%3D"), unescape("+")],
-referencedClasses: []
-}),
-smalltalk.ExampleTest2);
-
-
-
-smalltalk.addClass('ExampleTest3', smalltalk.TestCase, [], 'SUnit');
-smalltalk.addMethod(
-'_testPasses',
-smalltalk.method({
-selector: 'testPasses',
-category: 'not yet classified',
-fn: function (){
-var self=this;
-smalltalk.send((100000), "_timesRepeat_", [(function(){return smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "__plus", [(1)]), "__eq", [(2)])]);})]);
-return self;},
-source: unescape('testPasses%0A%09100000%20timesRepeat%3A%20%5Bself%20assert%3A%201%20+%201%20%3D%202%5D'),
-messageSends: ["timesRepeat:", "assert:", unescape("%3D"), unescape("+")],
-referencedClasses: []
-}),
-smalltalk.ExampleTest3);
-
-
-

+ 0 - 38
st/SUnit.st

@@ -72,24 +72,6 @@ assert: expected equals: actual
 	^ self assert: (expected = actual)
 ! !
 
-TestCase subclass: #ExampleTest
-	instanceVariableNames: 'test'
-	category: 'SUnit'!
-
-!ExampleTest methodsFor: 'not yet classified'!
-
-testFailure
-	self deny: true
-!
-
-testPasses
-	100000 timesRepeat: [self assert: 1 + 1 = 2]
-!
-
-testError
-	self assert: 1 foo
-! !
-
 TabWidget subclass: #ProgressBar
 	instanceVariableNames: 'percent progressDiv div'
 	category: 'SUnit'!
@@ -436,23 +418,3 @@ initialize
 	total := 0
 ! !
 
-TestCase subclass: #ExampleTest2
-	instanceVariableNames: ''
-	category: 'SUnit'!
-
-!ExampleTest2 methodsFor: 'not yet classified'!
-
-testPasses
-	100000 timesRepeat: [self assert: 1 + 1 = 2]
-! !
-
-TestCase subclass: #ExampleTest3
-	instanceVariableNames: ''
-	category: 'SUnit'!
-
-!ExampleTest3 methodsFor: 'not yet classified'!
-
-testPasses
-	100000 timesRepeat: [self assert: 1 + 1 = 2]
-! !
-