Browse Source

Actually, deprecate.

Herby Vojčík 3 years ago
parent
commit
3d78fe5c5a
3 changed files with 35 additions and 0 deletions
  1. 6 0
      lang/API-CHANGES.txt
  2. 24 0
      lang/src/SUnit.js
  3. 5 0
      lang/src/SUnit.st

+ 6 - 0
lang/API-CHANGES.txt

@@ -1,3 +1,9 @@
+0.29.3:
+
+* Deprecate TestCase >> debugCase.
+* Remove class DebugTestContext.
+
+
 0.29.2:
 
 * Deprecate ClassBuilder >> addSubclass:named:instanceVariableNames:package:.

+ 24 - 0
lang/src/SUnit.js

@@ -402,6 +402,30 @@ return self;
 }; }),
 $globals.TestCase);
 
+$core.addMethod(
+$core.method({
+selector: "debugCase",
+protocol: "running",
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: [],
+source: "debugCase\x0a\x09self deprecatedAPI: 'Use #runCase instead.'.\x0a\x09^ self runCase",
+referencedClasses: [],
+//>>excludeEnd("ide");
+pragmas: [],
+messageSends: ["deprecatedAPI:", "runCase"]
+}, function ($methodClass){ return function (){
+var self=this,$self=this;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+return $core.withContext(function($ctx1) {
+//>>excludeEnd("ctx");
+$self._deprecatedAPI_("Use #runCase instead.");
+return $self._runCase();
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+}, function($ctx1) {$ctx1.fill(self,"debugCase",{})});
+//>>excludeEnd("ctx");
+}; }),
+$globals.TestCase);
+
 $core.addMethod(
 $core.method({
 selector: "deny:",

+ 5 - 0
lang/src/SUnit.st

@@ -152,6 +152,11 @@ signalFailure: aString
 
 !TestCase methodsFor: 'running'!
 
+debugCase
+	self deprecatedAPI: 'Use #runCase instead.'.
+	^ self runCase
+!
+
 performTest
 	asyncTimeout := nil.
 	self perform: self selector