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 3691d2c15f
commit a6e6438dae

View File

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