Helios-Workspace-Tests.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. define(["amber/boot", "require", "amber/core/SUnit"], function($boot,requirejs){"use strict";
  2. var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. var $pkg = $core.addPackage("Helios-Workspace-Tests");
  4. $pkg.transport = {"type":"amd","amdNamespace":"helios"};
  5. $core.addClass("HLCodeWidgetTest", $globals.TestCase, "Helios-Workspace-Tests");
  6. $core.addMethod(
  7. $core.method({
  8. selector: "testKeyMap",
  9. protocol: "tests",
  10. //>>excludeStart("ide", pragmas.excludeIdeData);
  11. args: [],
  12. source: "testKeyMap\x0a\x09\x22Key maps are a collection of associations.\x22\x0a\x09self assert: (HLCodeWidget pcKeyMap isKindOf: HashedCollection).\x0a\x09self assert: (HLCodeWidget macKeyMap isKindOf: HashedCollection)",
  13. referencedClasses: ["HLCodeWidget", "HashedCollection"],
  14. //>>excludeEnd("ide");
  15. pragmas: [],
  16. messageSends: ["assert:", "isKindOf:", "pcKeyMap", "macKeyMap"]
  17. }, function ($methodClass){ return function (){
  18. var self=this,$self=this;
  19. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  20. return $core.withContext(function($ctx1) {
  21. //>>excludeEnd("ctx");
  22. [$self._assert_([$recv($recv($globals.HLCodeWidget)._pcKeyMap())._isKindOf_($globals.HashedCollection)
  23. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  24. ,$ctx1.sendIdx["isKindOf:"]=1
  25. //>>excludeEnd("ctx");
  26. ][0])
  27. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  28. ,$ctx1.sendIdx["assert:"]=1
  29. //>>excludeEnd("ctx");
  30. ][0];
  31. $self._assert_($recv($recv($globals.HLCodeWidget)._macKeyMap())._isKindOf_($globals.HashedCollection));
  32. return self;
  33. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  34. }, function($ctx1) {$ctx1.fill(self,"testKeyMap",{})});
  35. //>>excludeEnd("ctx");
  36. }; }),
  37. $globals.HLCodeWidgetTest);
  38. });