diff options
| author | Igor Minar | 2011-01-23 22:22:42 -0800 | 
|---|---|---|
| committer | Igor Minar | 2011-01-24 14:03:42 -0800 | 
| commit | 567f33823b34969fa1b340c9d6c04e2c5a60d281 (patch) | |
| tree | 57e884b251c992e5fce3560562f49a3c973023e6 /test | |
| parent | 5340d1e0b1c29103e187a1cdc33bbee48d98a74d (diff) | |
| download | angular.js-567f33823b34969fa1b340c9d6c04e2c5a60d281.tar.bz2 | |
Revert "fix ng:include issue introduced by a5eb3ed1"
This reverts commit 17ee0f031ac4a37bf9a1dc8c87ffac4bd164d1cc.
this and a5eb3ed1 introduced scope leakage that can't be resolved
until we fix up scope relationships and eval propagation.
I'm reverting both this and a5eb3ed1 until we can properly address
the issue.
Diffstat (limited to 'test')
| -rw-r--r-- | test/widgetsSpec.js | 19 | 
1 files changed, 1 insertions, 18 deletions
| diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 6ec056ca..27c5cb82 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -609,24 +609,7 @@ describe("widget", function(){    });    describe('ng:include', function(){ -    it('should include on external file and create a new child scope', function() { -      var element = jqLite('<ng:include src="url"></ng:include>'); -      var scope = angular.compile(element); -      scope.counter = 0; -      scope.url = 'myUrl'; -      scope.$service('$xhr.cache').data.myUrl = {value:'{{counter = counter + 1}}'}; -      scope.$init(); -      scope.$service('$browser').defer.flush(); -      expect(element.text()).toEqual('2'); - -      //should also propagate evals to the child scope -      scope.$eval(); -      expect(element.text()).toEqual('3'); - -      dealoc(scope); -    }); - -    it('should include on external file and use an existing child scope', function() { +    it('should include on external file', function() {        var element = jqLite('<ng:include src="url" scope="childScope"></ng:include>');        var scope = angular.compile(element);        scope.childScope = createScope(); | 
