miguel-perez/smoothState.js

Add window parity tests

Open

#185 opened on Jun 13, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)CSS (4,433 stars) (515 forks)batch import
enhancementhelp wanted

Description

We should add the following tests:

  • clicking back while loading cancels XHR
  • scrolls to top of page once the target page is loaded (optional)
  • sets title to first response title (double/nested titles)
  • can alter request url
  • bad/timedout request falls back to full load
  • evals scripts
  • preserves query string on GET request
  • popstate going back/forward in history
  • popstate restores original scroll position
  • hitting the back button obeys cacheLength
  • hitting the forward button obeys cacheLength
  • sets initial popstate
  • handles going back to page after loading an error page

See tests/testWindowParity.js.

Contributor guide