2
0

Helios-SUnit.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. 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){
  2. smalltalk.addPackage('Helios-SUnit');
  3. smalltalk.packages["Helios-SUnit"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('HLSUnit', globals.HLWidget, [], 'Helios-SUnit');
  5. smalltalk.addMethod(
  6. smalltalk.method({
  7. selector: "canBeOpenAsTab",
  8. protocol: 'testing',
  9. fn: function (){
  10. var self=this;
  11. return true;
  12. },
  13. args: [],
  14. source: "canBeOpenAsTab\x0a\x09^ true",
  15. messageSends: [],
  16. referencedClasses: []
  17. }),
  18. globals.HLSUnit.klass);
  19. smalltalk.addMethod(
  20. smalltalk.method({
  21. selector: "tabClass",
  22. protocol: 'accessing',
  23. fn: function (){
  24. var self=this;
  25. return "sunit";
  26. },
  27. args: [],
  28. source: "tabClass\x0a\x09^ 'sunit'",
  29. messageSends: [],
  30. referencedClasses: []
  31. }),
  32. globals.HLSUnit.klass);
  33. smalltalk.addMethod(
  34. smalltalk.method({
  35. selector: "tabLabel",
  36. protocol: 'accessing',
  37. fn: function (){
  38. var self=this;
  39. return "SUnit";
  40. },
  41. args: [],
  42. source: "tabLabel\x0a\x09^ 'SUnit'",
  43. messageSends: [],
  44. referencedClasses: []
  45. }),
  46. globals.HLSUnit.klass);
  47. smalltalk.addMethod(
  48. smalltalk.method({
  49. selector: "tabPriority",
  50. protocol: 'accessing',
  51. fn: function (){
  52. var self=this;
  53. return (1000);
  54. },
  55. args: [],
  56. source: "tabPriority\x0a\x09^ 1000",
  57. messageSends: [],
  58. referencedClasses: []
  59. }),
  60. globals.HLSUnit.klass);
  61. });