diff options
| author | Misko Hevery | 2011-07-19 09:50:51 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2011-07-26 09:40:29 -0700 | 
| commit | ee04141a5a17f375018e20f0919e7afc03b4875f (patch) | |
| tree | a81aa90d28db11129908e03787770c16e7fe258d | |
| parent | 66fec10dc309730ff6aa78a42c94f6c2a2b33b2a (diff) | |
| download | angular.js-ee04141a5a17f375018e20f0919e7afc03b4875f.tar.bz2 | |
style(warnings): prevent the browser from making bogus GET requests during tests
| -rw-r--r-- | test/directivesSpec.js | 2 | ||||
| -rw-r--r-- | test/markupSpec.js | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/test/directivesSpec.js b/test/directivesSpec.js index bb530128..58e5053f 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -111,7 +111,7 @@ describe("directive", function(){    describe('ng:bind-attr', function(){      it('should bind attributes', function(){ -      var scope = compile('<img ng:bind-attr="{src:\'http://localhost/mysrc\', alt:\'myalt\'}"/>'); +      var scope = compile('<div ng:bind-attr="{src:\'http://localhost/mysrc\', alt:\'myalt\'}"/>');        expect(element.attr('src')).toEqual('http://localhost/mysrc');        expect(element.attr('alt')).toEqual('myalt');      }); diff --git a/test/markupSpec.js b/test/markupSpec.js index a457efae..ce44d88c 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -34,7 +34,7 @@ describe("markups", function(){    });    it('should translate {{}} in attributes', function(){ -    compile('<img src="http://server/{{path}}.png"/>'); +    compile('<div src="http://server/{{path}}.png"/>');      expect(element.attr('ng:bind-attr')).toEqual('{"src":"http://server/{{path}}.png"}');      scope.$set('path', 'a/b');      scope.$eval(); @@ -142,7 +142,7 @@ describe("markups", function(){    });    it('should bind src', function() { -    compile('<img ng:src="{{url}}" />'); +    compile('<div ng:src="{{url}}" />');      scope.url = 'http://localhost/';      scope.$eval();      expect(element.attr('src')).toEqual('http://localhost/'); | 
