Browse Source

Helios-SUnit package

Nicolas Petton 10 years ago
parent
commit
58f49ae373
5 changed files with 93 additions and 87 deletions
  1. 0 63
      src/Helios-Core.js
  2. 0 24
      src/Helios-Core.st
  3. 67 0
      src/Helios-SUnit.js
  4. 25 0
      src/Helios-SUnit.st
  5. 1 0
      support/helios.js

+ 0 - 63
src/Helios-Core.js

@@ -5507,67 +5507,4 @@ referencedClasses: []
 }),
 globals.HLProgressBarWidget.klass);
 
-
-smalltalk.addClass('HLSUnit', globals.HLWidget, [], 'Helios-Core');
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "canBeOpenAsTab",
-protocol: 'testing',
-fn: function (){
-var self=this;
-return true;
-},
-args: [],
-source: "canBeOpenAsTab\x0a\x09^ true",
-messageSends: [],
-referencedClasses: []
-}),
-globals.HLSUnit.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "tabClass",
-protocol: 'accessing',
-fn: function (){
-var self=this;
-return "sunit";
-},
-args: [],
-source: "tabClass\x0a\x09^ 'sunit'",
-messageSends: [],
-referencedClasses: []
-}),
-globals.HLSUnit.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "tabLabel",
-protocol: 'accessing',
-fn: function (){
-var self=this;
-return "SUnit";
-},
-args: [],
-source: "tabLabel\x0a\x09^ 'SUnit'",
-messageSends: [],
-referencedClasses: []
-}),
-globals.HLSUnit.klass);
-
-smalltalk.addMethod(
-smalltalk.method({
-selector: "tabPriority",
-protocol: 'accessing',
-fn: function (){
-var self=this;
-return (1000);
-},
-args: [],
-source: "tabPriority\x0a\x09^ 1000",
-messageSends: [],
-referencedClasses: []
-}),
-globals.HLSUnit.klass);
-
 });

+ 0 - 24
src/Helios-Core.st

@@ -1838,27 +1838,3 @@ default
 	^ default ifNil: [ default := self new ]
 ! !
 
-HLWidget subclass: #HLSUnit
-	instanceVariableNames: ''
-	package: 'Helios-Core'!
-
-!HLSUnit class methodsFor: 'accessing'!
-
-tabClass
-	^ 'sunit'
-!
-
-tabLabel
-	^ 'SUnit'
-!
-
-tabPriority
-	^ 1000
-! !
-
-!HLSUnit class methodsFor: 'testing'!
-
-canBeOpenAsTab
-	^ true
-! !
-

+ 67 - 0
src/Helios-SUnit.js

@@ -0,0 +1,67 @@
+define("amber_core/Helios-SUnit", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_vm/globals", "amber_core/Helios-Core"], function(smalltalk,nil,_st, globals){
+smalltalk.addPackage('Helios-SUnit');
+smalltalk.packages["Helios-SUnit"].transport = {"type":"amd","amdNamespace":"amber_core"};
+
+smalltalk.addClass('HLSUnit', globals.HLWidget, [], 'Helios-SUnit');
+
+smalltalk.addMethod(
+smalltalk.method({
+selector: "canBeOpenAsTab",
+protocol: 'testing',
+fn: function (){
+var self=this;
+return true;
+},
+args: [],
+source: "canBeOpenAsTab\x0a\x09^ true",
+messageSends: [],
+referencedClasses: []
+}),
+globals.HLSUnit.klass);
+
+smalltalk.addMethod(
+smalltalk.method({
+selector: "tabClass",
+protocol: 'accessing',
+fn: function (){
+var self=this;
+return "sunit";
+},
+args: [],
+source: "tabClass\x0a\x09^ 'sunit'",
+messageSends: [],
+referencedClasses: []
+}),
+globals.HLSUnit.klass);
+
+smalltalk.addMethod(
+smalltalk.method({
+selector: "tabLabel",
+protocol: 'accessing',
+fn: function (){
+var self=this;
+return "SUnit";
+},
+args: [],
+source: "tabLabel\x0a\x09^ 'SUnit'",
+messageSends: [],
+referencedClasses: []
+}),
+globals.HLSUnit.klass);
+
+smalltalk.addMethod(
+smalltalk.method({
+selector: "tabPriority",
+protocol: 'accessing',
+fn: function (){
+var self=this;
+return (1000);
+},
+args: [],
+source: "tabPriority\x0a\x09^ 1000",
+messageSends: [],
+referencedClasses: []
+}),
+globals.HLSUnit.klass);
+
+});

+ 25 - 0
src/Helios-SUnit.st

@@ -0,0 +1,25 @@
+Smalltalk createPackage: 'Helios-SUnit'!
+HLWidget subclass: #HLSUnit
+	instanceVariableNames: ''
+	package: 'Helios-SUnit'!
+
+!HLSUnit class methodsFor: 'accessing'!
+
+tabClass
+	^ 'sunit'
+!
+
+tabLabel
+	^ 'SUnit'
+!
+
+tabPriority
+	^ 1000
+! !
+
+!HLSUnit class methodsFor: 'testing'!
+
+canBeOpenAsTab
+	^ true
+! !
+

+ 1 - 0
support/helios.js

@@ -23,6 +23,7 @@ define([
 	'amber_core/Helios-Browser',
 	'amber_core/Helios-Workspace',
 	'amber_core/Helios-Transcript',
+	'amber_core/Helios-SUnit',
 	'amber_core/Helios-Debugger',
 	'amber_core/Helios-Inspector',
 	'amber_core/Helios-References',