Skip to content

Commit

Permalink
style(warnings): prevent the browser from making bogus GET requests d…
Browse files Browse the repository at this point in the history
…uring tests
  • Loading branch information
mhevery committed Jul 20, 2011
1 parent fe576f1 commit a4f1ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/directivesSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
4 changes: 2 additions & 2 deletions test/markupSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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/');
Expand Down

0 comments on commit a4f1ed5

Please sign in to comment.