Permalink
Browse files

Test to check if navigating to an anchor works properly.

  • Loading branch information...
1 parent 5d6251a commit e51dad765c7f3e08c17c2b9a404bc468415e91bc @sourishkrout sourishkrout committed Mar 29, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/helpers/webview.js
@@ -935,6 +935,16 @@ module.exports.buildTests = function(webviewType) {
});
desc('navigation', function(h) {
+ it('should properly navigate to anchor', function(done) {
+ loadWebView(h.driver, function() {
+ h.driver.url(function(err, curl) {
+ h.driver.get(curl + '#anchor', function(err) {
+ should.not.exist(err);
+ done();
+ });
+ });
+ });
+ });
it('should be able to go back and forward', function(done) {
loadWebView(h.driver, function() {
h.driver.elementByLinkText('i am a link', function(err, el) {

0 comments on commit e51dad7

Please sign in to comment.