aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng')
-rwxr-xr-xtest/ng/compileSpec.js6
-rw-r--r--test/ng/snifferSpec.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index 13604f6f..d2643878 100755
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -2897,7 +2897,7 @@ describe('$compile', function() {
}));
- // Fails on IE < 10 with "TypeError: Access is denied" when trying to set img[src]
+ // Fails on IE <= 10 with "TypeError: Access is denied" when trying to set img[src]
if (!msie || msie > 10) {
it('should sanitize mailto: urls', inject(function($compile, $rootScope) {
element = $compile('<img src="{{testUrl}}"></a>')($rootScope);
@@ -3008,9 +3008,9 @@ describe('$compile', function() {
inject(function($compile, $rootScope) {
element = $compile('<img src="{{testUrl}}"></img>')($rootScope);
- // Fails on IE < 10 with "TypeError: Object doesn't support this property or method" when
+ // Fails on IE <= 11 with "TypeError: Object doesn't support this property or method" when
// trying to set img[src]
- if (!msie || msie > 10) {
+ if (!msie || msie > 11) {
$rootScope.testUrl = "javascript:doEvilStuff()";
$rootScope.$apply();
expect(element.attr('src')).toBe('javascript:doEvilStuff()');
diff --git a/test/ng/snifferSpec.js b/test/ng/snifferSpec.js
index 1bf29f73..6edf9f61 100644
--- a/test/ng/snifferSpec.js
+++ b/test/ng/snifferSpec.js
@@ -112,7 +112,7 @@ describe('$sniffer', function() {
else if(/firefox/i.test(ua)) {
expectedPrefix = 'Moz';
}
- else if(/ie/i.test(ua)) {
+ else if(/ie/i.test(ua) || /trident/i.test(ua)) {
expectedPrefix = 'Ms';
}
else if(/opera/i.test(ua)) {