|
@@ -15,12 +15,12 @@ $core.method({
|
|
|
selector: "setUp",
|
|
|
protocol: "running",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@empty"]=$recv($globals.Set)._new();
|
|
|
-self["@full"]=$recv($globals.Set)._with_with_((5),"abc");
|
|
|
+$self["@empty"]=$recv($globals.Set)._new();
|
|
|
+$self["@full"]=$recv($globals.Set)._with_with_((5),"abc");
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"setUp",{},$globals.ExampleSetTest)});
|
|
@@ -40,12 +40,12 @@ $core.method({
|
|
|
selector: "testAdd",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(self["@empty"])._add_((5));
|
|
|
-self._assert_($recv(self["@empty"])._includes_((5)));
|
|
|
+$recv($self["@empty"])._add_((5));
|
|
|
+$self._assert_($recv($self["@empty"])._includes_((5)));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testAdd",{},$globals.ExampleSetTest)});
|
|
@@ -65,12 +65,12 @@ $core.method({
|
|
|
selector: "testGrow",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(self["@empty"])._addAll_((1)._to_((100)));
|
|
|
-self._assert_equals_($recv(self["@empty"])._size(),(100));
|
|
|
+$recv($self["@empty"])._addAll_((1)._to_((100)));
|
|
|
+$self._assert_equals_($recv($self["@empty"])._size(),(100));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testGrow",{},$globals.ExampleSetTest)});
|
|
@@ -90,15 +90,15 @@ $core.method({
|
|
|
selector: "testIllegal",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._should_raise_((function(){
|
|
|
+$self._should_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(self["@empty"])._at_((5));
|
|
|
+return $recv($self["@empty"])._at_((5));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -106,11 +106,11 @@ return $recv(self["@empty"])._at_((5));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["should:raise:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._should_raise_((function(){
|
|
|
+$self._should_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(self["@empty"])._at_put_((5),"abc");
|
|
|
+return $recv($self["@empty"])._at_put_((5),"abc");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -134,20 +134,20 @@ $core.method({
|
|
|
selector: "testIncludes",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1;
|
|
|
-$1=$recv(self["@full"])._includes_((5));
|
|
|
+$1=$recv($self["@full"])._includes_((5));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["includes:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_($1);
|
|
|
+$self._assert_($1);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["assert:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_($recv(self["@full"])._includes_("abc"));
|
|
|
+$self._assert_($recv($self["@full"])._includes_("abc"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testIncludes",{},$globals.ExampleSetTest)});
|
|
@@ -167,29 +167,29 @@ $core.method({
|
|
|
selector: "testOccurrences",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1,$2;
|
|
|
-$1=$recv(self["@empty"])._occurrencesOf_((0));
|
|
|
+$1=$recv($self["@empty"])._occurrencesOf_((0));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["occurrencesOf:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_($1,(0));
|
|
|
+$self._assert_equals_($1,(0));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["assert:equals:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$2=$recv(self["@full"])._occurrencesOf_((5));
|
|
|
+$2=$recv($self["@full"])._occurrencesOf_((5));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["occurrencesOf:"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_($2,(1));
|
|
|
+$self._assert_equals_($2,(1));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["assert:equals:"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(self["@full"])._add_((5));
|
|
|
-self._assert_equals_($recv(self["@full"])._occurrencesOf_((5)),(1));
|
|
|
+$recv($self["@full"])._add_((5));
|
|
|
+$self._assert_equals_($recv($self["@full"])._occurrencesOf_((5)),(1));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testOccurrences",{},$globals.ExampleSetTest)});
|
|
@@ -209,18 +209,18 @@ $core.method({
|
|
|
selector: "testRemove",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1;
|
|
|
-$recv(self["@full"])._remove_((5));
|
|
|
-$1=$recv(self["@full"])._includes_("abc");
|
|
|
+$recv($self["@full"])._remove_((5));
|
|
|
+$1=$recv($self["@full"])._includes_("abc");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["includes:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_($1);
|
|
|
-self._deny_($recv(self["@full"])._includes_((5)));
|
|
|
+$self._assert_($1);
|
|
|
+$self._deny_($recv($self["@full"])._includes_((5)));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testRemove",{},$globals.ExampleSetTest)});
|
|
@@ -243,19 +243,19 @@ $core.method({
|
|
|
selector: "fakeError",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="bad";
|
|
|
-self._timeout_((30));
|
|
|
-self["@flag"]=$recv(self._async_((function(){
|
|
|
+$self["@flag"]="bad";
|
|
|
+$self._timeout_((30));
|
|
|
+$self["@flag"]=$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="ok";
|
|
|
-self["@flag"];
|
|
|
-return self._error_("Intentional");
|
|
|
+$self["@flag"]="ok";
|
|
|
+$self["@flag"];
|
|
|
+return $self._error_("Intentional");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -279,17 +279,17 @@ $core.method({
|
|
|
selector: "fakeErrorFailingInTearDown",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="bad";
|
|
|
-self._timeout_((30));
|
|
|
-self["@flag"]=$recv(self._async_((function(){
|
|
|
+$self["@flag"]="bad";
|
|
|
+$self._timeout_((30));
|
|
|
+$self["@flag"]=$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._error_("Intentional");
|
|
|
+return $self._error_("Intentional");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -313,19 +313,19 @@ $core.method({
|
|
|
selector: "fakeFailure",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="bad";
|
|
|
-self._timeout_((30));
|
|
|
-self["@flag"]=$recv(self._async_((function(){
|
|
|
+$self["@flag"]="bad";
|
|
|
+$self._timeout_((30));
|
|
|
+$self["@flag"]=$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="ok";
|
|
|
-self["@flag"];
|
|
|
-return self._assert_(false);
|
|
|
+$self["@flag"]="ok";
|
|
|
+$self["@flag"];
|
|
|
+return $self._assert_(false);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -349,25 +349,25 @@ $core.method({
|
|
|
selector: "fakeMultipleTimeoutFailing",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1;
|
|
|
-self._timeout_((100));
|
|
|
+$self._timeout_((100));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["timeout:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$1=self._async_((function(){
|
|
|
+$1=$self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._timeout_((20));
|
|
|
-return $recv(self._async_((function(){
|
|
|
+$self._timeout_((20));
|
|
|
+return $recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx3) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._finished();
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -402,25 +402,25 @@ $core.method({
|
|
|
selector: "fakeMultipleTimeoutPassing",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1;
|
|
|
-self._timeout_((20));
|
|
|
+$self._timeout_((20));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["timeout:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$1=self._async_((function(){
|
|
|
+$1=$self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._timeout_((40));
|
|
|
-return $recv(self._async_((function(){
|
|
|
+$self._timeout_((40));
|
|
|
+return $recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx3) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._finished();
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -455,16 +455,16 @@ $core.method({
|
|
|
selector: "fakeTimeout",
|
|
|
protocol: "helpers",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._timeout_((10));
|
|
|
-$recv(self._async_((function(){
|
|
|
+$self._timeout_((10));
|
|
|
+$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._finished();
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -488,7 +488,7 @@ $core.method({
|
|
|
selector: "selectorSetOf:",
|
|
|
protocol: "private",
|
|
|
fn: function (aCollection){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -519,8 +519,8 @@ $core.method({
|
|
|
selector: "setUp",
|
|
|
protocol: "running",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
-self["@flag"]="ok";
|
|
|
+var self=this,$self=this;
|
|
|
+$self["@flag"]="ok";
|
|
|
return self;
|
|
|
|
|
|
},
|
|
@@ -538,11 +538,11 @@ $core.method({
|
|
|
selector: "tearDown",
|
|
|
protocol: "running",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_("ok",self["@flag"]);
|
|
|
+$self._assert_equals_("ok",$self["@flag"]);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"tearDown",{},$globals.SUnitAsyncTest)});
|
|
@@ -562,7 +562,7 @@ $core.method({
|
|
|
selector: "testAsyncErrorsAndFailures",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
var suite,runner,result,assertBlock;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -572,22 +572,22 @@ suite=["fakeError", "fakeErrorFailingInTearDown", "fakeFailure", "testPass"]._co
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(self._class())._selector_(each);
|
|
|
+return $recv($self._class())._selector_(each);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
runner=$recv($globals.TestSuiteRunner)._on_(suite);
|
|
|
-self._timeout_((200));
|
|
|
+$self._timeout_((200));
|
|
|
result=$recv(runner)._result();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["result"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-assertBlock=self._async_((function(){
|
|
|
+assertBlock=$self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$1=self._selectorSetOf_($recv(result)._errors());
|
|
|
+$1=$self._selectorSetOf_($recv(result)._errors());
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["selectorSetOf:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -595,12 +595,12 @@ $2=["fakeError"]._asSet();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["asSet"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_($1,$2);
|
|
|
+$self._assert_equals_($1,$2);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["assert:equals:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_(self._selectorSetOf_($recv(result)._failures()),["fakeErrorFailingInTearDown", "fakeFailure"]._asSet());
|
|
|
-return self._finished();
|
|
|
+$self._assert_equals_($self._selectorSetOf_($recv(result)._failures()),["fakeErrorFailingInTearDown", "fakeFailure"]._asSet());
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -638,15 +638,15 @@ $core.method({
|
|
|
selector: "testAsyncNeedsTimeout",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._should_raise_((function(){
|
|
|
+$self._should_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._async_((function(){
|
|
|
+return $self._async_((function(){
|
|
|
|
|
|
}));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -656,19 +656,19 @@ $ctx2.sendIdx["async:"]=1;
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}),$globals.Error);
|
|
|
-self._timeout_((0));
|
|
|
-self._shouldnt_raise_((function(){
|
|
|
+$self._timeout_((0));
|
|
|
+$self._shouldnt_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._async_((function(){
|
|
|
+return $self._async_((function(){
|
|
|
|
|
|
}));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}),$globals.Error);
|
|
|
-self._finished();
|
|
|
+$self._finished();
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testAsyncNeedsTimeout",{},$globals.SUnitAsyncTest)});
|
|
@@ -688,15 +688,15 @@ $core.method({
|
|
|
selector: "testFinishedNeedsTimeout",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._should_raise_((function(){
|
|
|
+$self._should_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._finished();
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["finished"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -704,12 +704,12 @@ $ctx2.sendIdx["finished"]=1;
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}),$globals.Error);
|
|
|
-self._timeout_((0));
|
|
|
-self._shouldnt_raise_((function(){
|
|
|
+$self._timeout_((0));
|
|
|
+$self._shouldnt_raise_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return self._finished();
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -733,27 +733,27 @@ $core.method({
|
|
|
selector: "testIsAsyncReturnsCorrectValues",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1,$2;
|
|
|
-$1=self._isAsync();
|
|
|
+$1=$self._isAsync();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["isAsync"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._deny_($1);
|
|
|
+$self._deny_($1);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["deny:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._timeout_((0));
|
|
|
-$2=self._isAsync();
|
|
|
+$self._timeout_((0));
|
|
|
+$2=$self._isAsync();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["isAsync"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_($2);
|
|
|
-self._finished();
|
|
|
-self._deny_(self._isAsync());
|
|
|
+$self._assert_($2);
|
|
|
+$self._finished();
|
|
|
+$self._deny_($self._isAsync());
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testIsAsyncReturnsCorrectValues",{},$globals.SUnitAsyncTest)});
|
|
@@ -773,20 +773,20 @@ $core.method({
|
|
|
selector: "testPass",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="bad";
|
|
|
-self._timeout_((10));
|
|
|
-self["@flag"]=$recv(self._async_((function(){
|
|
|
+$self["@flag"]="bad";
|
|
|
+$self._timeout_((10));
|
|
|
+$self["@flag"]=$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_(true);
|
|
|
-self._finished();
|
|
|
-self["@flag"]="ok";
|
|
|
-return self["@flag"];
|
|
|
+$self._assert_(true);
|
|
|
+$self._finished();
|
|
|
+$self["@flag"]="ok";
|
|
|
+return $self["@flag"];
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -810,7 +810,7 @@ $core.method({
|
|
|
selector: "testTimeouts",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
var suite,runner,result,assertBlock;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -820,31 +820,31 @@ suite=["fakeTimeout", "fakeMultipleTimeoutFailing", "fakeMultipleTimeoutPassing"
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(self._class())._selector_(each);
|
|
|
+return $recv($self._class())._selector_(each);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
runner=$recv($globals.TestSuiteRunner)._on_(suite);
|
|
|
-self._timeout_((200));
|
|
|
+$self._timeout_((200));
|
|
|
result=$recv(runner)._result();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["result"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-assertBlock=self._async_((function(){
|
|
|
+assertBlock=$self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$1=self._selectorSetOf_($recv(result)._errors());
|
|
|
+$1=$self._selectorSetOf_($recv(result)._errors());
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["selectorSetOf:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_($1,$recv($globals.Set)._new());
|
|
|
+$self._assert_equals_($1,$recv($globals.Set)._new());
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["assert:equals:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._assert_equals_(self._selectorSetOf_($recv(result)._failures()),["fakeMultipleTimeoutFailing", "fakeTimeout"]._asSet());
|
|
|
-return self._finished();
|
|
|
+$self._assert_equals_($self._selectorSetOf_($recv(result)._failures()),["fakeMultipleTimeoutFailing", "fakeTimeout"]._asSet());
|
|
|
+return $self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -882,31 +882,31 @@ $core.method({
|
|
|
selector: "testTwoAsyncPassesWithFinishedOnlyOneIsRun",
|
|
|
protocol: "tests",
|
|
|
fn: function (){
|
|
|
-var self=this;
|
|
|
+var self=this,$self=this;
|
|
|
var x;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $1;
|
|
|
-self["@flag"]="bad";
|
|
|
-self._timeout_((10));
|
|
|
+$self["@flag"]="bad";
|
|
|
+$self._timeout_((10));
|
|
|
x=(0);
|
|
|
-$1=self._async_((function(){
|
|
|
+$1=$self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._finished();
|
|
|
+$self._finished();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["finished"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]="ok";
|
|
|
-self["@flag"];
|
|
|
+$self["@flag"]="ok";
|
|
|
+$self["@flag"];
|
|
|
x=$recv(x).__plus((1));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["+"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
x;
|
|
|
-return self._assert_equals_(x,(1));
|
|
|
+return $self._assert_equals_(x,(1));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx2.sendIdx["assert:equals:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -917,20 +917,20 @@ $ctx2.sendIdx["assert:equals:"]=1;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["async:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]=$recv($1)._valueWithTimeout_((0));
|
|
|
+$self["@flag"]=$recv($1)._valueWithTimeout_((0));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["valueWithTimeout:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self["@flag"]=$recv(self._async_((function(){
|
|
|
+$self["@flag"]=$recv($self._async_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-self._finished();
|
|
|
-self["@flag"]="ok";
|
|
|
-self["@flag"];
|
|
|
+$self._finished();
|
|
|
+$self["@flag"]="ok";
|
|
|
+$self["@flag"];
|
|
|
x=$recv(x).__plus((1));
|
|
|
x;
|
|
|
-return self._assert_equals_(x,(1));
|
|
|
+return $self._assert_equals_(x,(1));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
//>>excludeEnd("ctx");
|