1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- define(["amber/boot", "amber_core/SUnit"], function($boot){"use strict";
- if(!$boot.nilAsReceiver)$boot.nilAsReceiver=$boot.nil;
- var $core=$boot.api,nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
- if(!$boot.nilAsClass)$boot.nilAsClass=$boot.dnu;
- $core.addPackage("Helios-Workspace-Tests");
- $core.packages["Helios-Workspace-Tests"].innerEval = function (expr) { return eval(expr); };
- $core.packages["Helios-Workspace-Tests"].transport = {"type":"amd","amdNamespace":"helios"};
- $core.addClass("HLCodeWidgetTest", $globals.TestCase, [], "Helios-Workspace-Tests");
- $core.addMethod(
- $core.method({
- selector: "testKeyMap",
- protocol: "tests",
- fn: function (){
- var self=this,$self=this;
- //>>excludeStart("ctx", pragmas.excludeDebugContexts);
- return $core.withContext(function($ctx1) {
- //>>excludeEnd("ctx");
- var $1;
- $1=$recv($recv($globals.HLCodeWidget)._pcKeyMap())._isKindOf_($globals.HashedCollection);
- //>>excludeStart("ctx", pragmas.excludeDebugContexts);
- $ctx1.sendIdx["isKindOf:"]=1;
- //>>excludeEnd("ctx");
- $self._assert_($1);
- //>>excludeStart("ctx", pragmas.excludeDebugContexts);
- $ctx1.sendIdx["assert:"]=1;
- //>>excludeEnd("ctx");
- $self._assert_($recv($recv($globals.HLCodeWidget)._macKeyMap())._isKindOf_($globals.HashedCollection));
- return self;
- //>>excludeStart("ctx", pragmas.excludeDebugContexts);
- }, function($ctx1) {$ctx1.fill(self,"testKeyMap",{},$globals.HLCodeWidgetTest)});
- //>>excludeEnd("ctx");
- },
- //>>excludeStart("ide", pragmas.excludeIdeData);
- args: [],
- 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)",
- referencedClasses: ["HLCodeWidget", "HashedCollection"],
- //>>excludeEnd("ide");
- messageSends: ["assert:", "isKindOf:", "pcKeyMap", "macKeyMap"]
- }),
- $globals.HLCodeWidgetTest);
- });
|