aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/scenario/dslSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js
index 9f7bf085..fd22303e 100644
--- a/test/scenario/dslSpec.js
+++ b/test/scenario/dslSpec.js
@@ -370,6 +370,12 @@ describe("angular.scenario.dsl", function() {
expect($root.futureResult).toEqual('some value');
});
+ it('should select binding by regexp', function() {
+ doc.append('<span class="ng-binding" ng:bind="foo.bar">some value</span>');
+ $root.dsl.binding(/^foo\..+/);
+ expect($root.futureResult).toEqual('some value');
+ });
+
it('should select binding in template by name', function() {
doc.append('<pre class="ng-binding" ng:bind-template="foo {{bar}} baz">foo some baz</pre>');
$root.dsl.binding('bar');