Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0960cd0

Browse files
committed
test($compile): fix IE specific test.
1 parent cefdaf1 commit 0960cd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ng/directive/booleanAttrsSpec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ describe('ngSrc', function() {
131131
// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
132132
// to set the property as well to achieve the desired effect
133133

134-
var element = $compile('<div ng-src="some/{{id}}"></div>')($rootScope);
134+
var element = $compile('<div ng-src="{{id}}"></div>')($rootScope);
135135

136136
$rootScope.$digest();
137-
expect(element.prop('src')).toEqual('some/');
137+
expect(element.prop('src')).toBeUndefined();
138138

139139
$rootScope.$apply(function() {
140140
$rootScope.id = 1;
141141
});
142-
expect(element.prop('src')).toEqual('some/1');
142+
expect(element.prop('src')).toEqual('1');
143143

144144
dealoc(element);
145145
}));

0 commit comments

Comments
 (0)