File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ describe("directive", function(){
111
111
112
112
describe ( 'ng:bind-attr' , function ( ) {
113
113
it ( 'should bind attributes' , function ( ) {
114
- var scope = compile ( '<img ng:bind-attr="{src:\'http://localhost/mysrc\', alt:\'myalt\'}"/>' ) ;
114
+ var scope = compile ( '<div ng:bind-attr="{src:\'http://localhost/mysrc\', alt:\'myalt\'}"/>' ) ;
115
115
expect ( element . attr ( 'src' ) ) . toEqual ( 'http://localhost/mysrc' ) ;
116
116
expect ( element . attr ( 'alt' ) ) . toEqual ( 'myalt' ) ;
117
117
} ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ describe("markups", function(){
34
34
} ) ;
35
35
36
36
it ( 'should translate {{}} in attributes' , function ( ) {
37
- compile ( '<img src="http://server/{{path}}.png"/>' ) ;
37
+ compile ( '<div src="http://server/{{path}}.png"/>' ) ;
38
38
expect ( element . attr ( 'ng:bind-attr' ) ) . toEqual ( '{"src":"http://server/{{path}}.png"}' ) ;
39
39
scope . $set ( 'path' , 'a/b' ) ;
40
40
scope . $eval ( ) ;
@@ -142,7 +142,7 @@ describe("markups", function(){
142
142
} ) ;
143
143
144
144
it ( 'should bind src' , function ( ) {
145
- compile ( '<img ng:src="{{url}}" />' ) ;
145
+ compile ( '<div ng:src="{{url}}" />' ) ;
146
146
scope . url = 'http://localhost/' ;
147
147
scope . $eval ( ) ;
148
148
expect ( element . attr ( 'src' ) ) . toEqual ( 'http://localhost/' ) ;
You can’t perform that action at this time.
0 commit comments