fix($browser): don’t use history api when only the hash changes

Fixes a failing test on IE9 caused as a side effect
of 404b95fe30 being merged
before 0656484d3e.

The test should have been independent on the browser running it
and it is now.

Closes #9423
Closes #9424
This commit is contained in:
Tobias Bosch
2014-10-03 21:22:59 -07:00
parent feba0174db
commit 7cb01a80be

View File

@@ -652,6 +652,9 @@ describe('browser', function() {
$provide.value('$browser', browser);
browser.pollFns = [];
sniffer.history = true;
$provide.value('$sniffer', sniffer);
$locationProvider.html5Mode(true);
}));