From 4804c83b7db5770d5d02eea9eea4cc012b4aa524 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 14 Dec 2011 02:55:31 +0100 Subject: docs(compiler): update the compiler docs --- src/scenario/SpecRunner.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/scenario') diff --git a/src/scenario/SpecRunner.js b/src/scenario/SpecRunner.js index eacf13a8..f4b9b0a7 100644 --- a/src/scenario/SpecRunner.js +++ b/src/scenario/SpecRunner.js @@ -105,6 +105,7 @@ angular.scenario.SpecRunner.prototype.addFuture = function(name, behavior, line) */ angular.scenario.SpecRunner.prototype.addFutureAction = function(name, behavior, line) { var self = this; + var NG = /\[ng\\\:/; return this.addFuture(name, function(done) { this.application.executeAction(function($window, $document) { @@ -117,6 +118,9 @@ angular.scenario.SpecRunner.prototype.addFutureAction = function(name, behavior, selector = selector.replace('$' + (index + 1), value); }); var result = $document.find(selector); + if (selector.match(NG)) { + result = result.add(selector.replace(NG, '[ng-'), $document); + } if (!result.length) { throw { type: 'selector', -- cgit v1.2.3