aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Future.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/Future.js')
-rw-r--r--src/scenario/Future.js29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/scenario/Future.js b/src/scenario/Future.js
index c718bba2..6c90df9d 100644
--- a/src/scenario/Future.js
+++ b/src/scenario/Future.js
@@ -6,11 +6,12 @@ function Future(name, behavior) {
}
Future.prototype = {
- fulfill: function(value){
+ fulfill: function(value) {
this.fulfilled = true;
this.value = value;
}
};
+
function Matcher(future, logger) {
var self = this;
this.logger = logger;
@@ -32,29 +33,3 @@ Matcher.addMatcher = function(name, matcher){
};
Matcher.addMatcher('toEqual', function(a,b){ return a == b; });
-
-/*
-
-function future(name, behavior) {
- return new Future(name, behavior);
-};
-
-function repeater(selector) {
- var repeaterFuture = future('repeater ' + selector, function(done) {
- done($(selector));
- });
-
- repeaterFuture.count = function(){
- return future(repeaterFuture.name + ' count', function(done) {
- done(repeaterFuture.value.size());
- });
- };
-
- return repeaterFuture;
-}
-
-function expectX(future) {
- return new Matcher(future, window.alert);
-}
-
- */ \ No newline at end of file