|
@@ -195,63 +195,63 @@ referencedClasses: []
|
|
smalltalk.SUnitAsyncTest);
|
|
smalltalk.SUnitAsyncTest);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
-"_fakeTimeout",
|
|
|
|
|
|
+"_fakeMultipleTimeoutFailing",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "fakeTimeout",
|
|
|
|
|
|
+selector: "fakeMultipleTimeoutFailing",
|
|
category: 'helpers',
|
|
category: 'helpers',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(self,"_timeout_",[(4)]);
|
|
|
|
|
|
+smalltalk.send(self,"_timeout_",[(100)]);
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
|
|
+smalltalk.send(self,"_timeout_",[(5)]);
|
|
|
|
+return smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
return smalltalk.send(self,"_finished",[]);
|
|
return smalltalk.send(self,"_finished",[]);
|
|
|
|
+})]),"_valueWithTimeout_",[(10)]);
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
return self},
|
|
return self},
|
|
args: [],
|
|
args: [],
|
|
-source: "fakeTimeout\x0a\x09self timeout: 4.\x0a (self async: [ self finished ]) valueWithTimeout: 5\x0a",
|
|
|
|
|
|
+source: "fakeMultipleTimeoutFailing\x0a\x09self timeout: 100.\x0a (self async: [\x0a\x09\x09self timeout: 5.\x0a (self async: [ self finished ]) valueWithTimeout: 10\x0a\x09]) valueWithTimeout: 5\x0a",
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.SUnitAsyncTest);
|
|
smalltalk.SUnitAsyncTest);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
-"_fakeTimeoutFailing",
|
|
|
|
|
|
+"_fakeMultipleTimeoutPassing",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "fakeTimeoutFailing",
|
|
|
|
|
|
+selector: "fakeMultipleTimeoutPassing",
|
|
category: 'helpers',
|
|
category: 'helpers',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(self,"_timeout_",[(100)]);
|
|
|
|
|
|
+smalltalk.send(self,"_timeout_",[(10)]);
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
-smalltalk.send(self,"_timeout_",[(5)]);
|
|
|
|
|
|
+smalltalk.send(self,"_timeout_",[(20)]);
|
|
return smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
return smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
return smalltalk.send(self,"_finished",[]);
|
|
return smalltalk.send(self,"_finished",[]);
|
|
})]),"_valueWithTimeout_",[(10)]);
|
|
})]),"_valueWithTimeout_",[(10)]);
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
return self},
|
|
return self},
|
|
args: [],
|
|
args: [],
|
|
-source: "fakeTimeoutFailing\x0a\x09self timeout: 100.\x0a (self async: [\x0a\x09\x09self timeout: 5.\x0a (self async: [ self finished ]) valueWithTimeout: 10\x0a\x09]) valueWithTimeout: 5\x0a",
|
|
|
|
|
|
+source: "fakeMultipleTimeoutPassing\x0a\x09self timeout: 10.\x0a (self async: [\x0a\x09\x09self timeout: 20.\x0a (self async: [ self finished ]) valueWithTimeout: 10\x0a\x09]) valueWithTimeout: 5\x0a",
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.SUnitAsyncTest);
|
|
smalltalk.SUnitAsyncTest);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
-"_fakeTimeoutPassing",
|
|
|
|
|
|
+"_fakeTimeout",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "fakeTimeoutPassing",
|
|
|
|
|
|
+selector: "fakeTimeout",
|
|
category: 'helpers',
|
|
category: 'helpers',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(self,"_timeout_",[(10)]);
|
|
|
|
|
|
+smalltalk.send(self,"_timeout_",[(4)]);
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
-smalltalk.send(self,"_timeout_",[(20)]);
|
|
|
|
-return smalltalk.send(smalltalk.send(self,"_async_",[(function(){
|
|
|
|
return smalltalk.send(self,"_finished",[]);
|
|
return smalltalk.send(self,"_finished",[]);
|
|
-})]),"_valueWithTimeout_",[(10)]);
|
|
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
})]),"_valueWithTimeout_",[(5)]);
|
|
return self},
|
|
return self},
|
|
args: [],
|
|
args: [],
|
|
-source: "fakeTimeoutPassing\x0a\x09self timeout: 10.\x0a (self async: [\x0a\x09\x09self timeout: 20.\x0a (self async: [ self finished ]) valueWithTimeout: 10\x0a\x09]) valueWithTimeout: 5\x0a",
|
|
|
|
|
|
+source: "fakeTimeout\x0a\x09self timeout: 4.\x0a (self async: [ self finished ]) valueWithTimeout: 5\x0a",
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
messageSends: ["timeout:", "valueWithTimeout:", "async:", "finished"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|