aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ng/browserSpecs.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ng/browserSpecs.js b/test/ng/browserSpecs.js
index 55b8167c..3f28c605 100644
--- a/test/ng/browserSpecs.js
+++ b/test/ng/browserSpecs.js
@@ -468,6 +468,14 @@ describe('browser', function() {
fakeWindow.location.href = "http://ff-bug/?single%27quote";
expect(browser.url()).toBe("http://ff-bug/?single'quote");
});
+
+ it('should not set URL when the URL is already set', function() {
+ var current = fakeWindow.location.href;
+ sniffer.history = false;
+ fakeWindow.location.href = 'dontchange';
+ browser.url(current);
+ expect(fakeWindow.location.href).toBe('dontchange');
+ });
});
describe('urlChange', function() {