aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/snifferSpec.js
diff options
context:
space:
mode:
authorTobias Bosch2013-11-21 14:30:50 -0800
committerTobias Bosch2013-11-21 21:53:09 -0800
commit579242346c4202ea58fc2cae6df232289cbea0bb (patch)
treec2ef1ed6020f93994a080d13871c636e5618fbb5 /test/ng/snifferSpec.js
parentc42d0a041890b39fc98afd357ec1307a3a36208d (diff)
downloadangular.js-579242346c4202ea58fc2cae6df232289cbea0bb.tar.bz2
fix(tests): Correct tests for IE11
Some tests were wrong. However, src/* did not contain problems. Fixes #5046
Diffstat (limited to 'test/ng/snifferSpec.js')
-rw-r--r--test/ng/snifferSpec.js7
1 files changed, 5 insertions, 2 deletions
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() {