aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDusan Bartos2013-08-21 14:54:54 +0200
committerJeff Cross2013-08-23 11:57:55 -0700
commiteefcdad013b56d5d3a05c0b2137a5860091b2575 (patch)
treec62d49512d1367873fc5a9a159b0df2e68f53a80 /test
parent74ae3edf8614ea8a97580033db0fd145d5260b62 (diff)
downloadangular.js-eefcdad013b56d5d3a05c0b2137a5860091b2575.tar.bz2
fix($sniffer): history problems on Boxee box
History API not working properly on Boxee box browser (old Webkit) problem similar to the one on Android < 4
Diffstat (limited to 'test')
-rw-r--r--test/ng/snifferSpec.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/ng/snifferSpec.js b/test/ng/snifferSpec.js
index 2206a271..1bf29f73 100644
--- a/test/ng/snifferSpec.js
+++ b/test/ng/snifferSpec.js
@@ -316,4 +316,30 @@ describe('$sniffer', function() {
});
});
+
+
+ describe('history', function() {
+ it('should be true on Boxee box with an older version of Webkit', function() {
+ module(function($provide) {
+ var doc = {
+ body : {
+ style : {}
+ }
+ };
+ var win = {
+ history: {
+ pushState: noop
+ },
+ navigator: {
+ userAgent: 'boxee (alpha/Darwin 8.7.1 i386 - 0.9.11.5591)'
+ }
+ };
+ $provide.value('$document', jqLite(doc));
+ $provide.value('$window', win);
+ });
+ inject(function($sniffer) {
+ expect($sniffer.history).toBe(false);
+ });
+ });
+ });
});