aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng')
-rwxr-xr-xtest/ng/compileSpec.js4
-rw-r--r--test/ng/snifferSpec.js7
2 files changed, 7 insertions, 4 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index c25c5040..5b6e1ada 100755
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -596,8 +596,8 @@ describe('$compile', function() {
expect(element).toHaveClass('class_2');
}));
- if (!msie || msie > 10) {
- // style interpolation not working on IE<11.
+ if (!msie || msie > 11) {
+ // style interpolation not working on IE (including IE11).
it('should handle interpolated css style from replacing directive', inject(
function($compile, $rootScope) {
element = $compile('<div replace-with-interpolated-style></div>')($rootScope);
diff --git a/test/ng/snifferSpec.js b/test/ng/snifferSpec.js
index 24e0584b..8b3d3ffd 100644
--- a/test/ng/snifferSpec.js
+++ b/test/ng/snifferSpec.js
@@ -334,8 +334,11 @@ describe('$sniffer', function() {
});
});
- it('should return true for msie when internet explorer is being used', inject(function($sniffer) {
- expect($sniffer.msie > 0).toBe(window.navigator.appName == 'Microsoft Internet Explorer');
+ it('should return the internal msie flag', inject(function($sniffer) {
+ expect(isNaN($sniffer.msie)).toBe(isNaN(msie));
+ if (msie) {
+ expect($sniffer.msie).toBe(msie);
+ }
}));
it('should return document.documentMode as msieDocumentMode', function() {