aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Matcher.js
diff options
context:
space:
mode:
authorAndres Ornelas2010-07-27 15:43:14 -0700
committerAndres Ornelas2010-07-27 15:43:14 -0700
commitda95010350882d9e13b5e461fb4a1e05bc7d065c (patch)
tree2d97049da8cb268dc0c4bca85e5908f6ac1b5d58 /src/scenario/Matcher.js
parentb42072733c3afd03a49457d88ffed28ebe55655e (diff)
downloadangular.js-da95010350882d9e13b5e461fb4a1e05bc7d065c.tar.bz2
stable before refactoring
Diffstat (limited to 'src/scenario/Matcher.js')
-rw-r--r--src/scenario/Matcher.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/scenario/Matcher.js b/src/scenario/Matcher.js
new file mode 100644
index 00000000..dd7b7ee6
--- /dev/null
+++ b/src/scenario/Matcher.js
@@ -0,0 +1,21 @@
+//function Matcher(future, logger) {
+// var self = this;
+// this.logger = logger;
+// this.future = future;
+//}
+//
+//Matcher.addMatcher = function(name, matcher){
+// Matcher.prototype[name] = function(expected) {
+// var future = this.future;
+// $scenario.addFuture(
+// 'expect ' + future.name + ' ' + name + ' ' + expected,
+// function(done){
+// if (matcher(future.value, expected))
+// throw "Expected " + expected + ' but was ' + future.value;
+// done();
+// }
+// );
+// };
+//};
+//
+//Matcher.addMatcher('toEqual', function(a,b){ return a == b; });