miguel-perez/smoothState.js

Add window parity tests

Open

#185 ouverte le 13 juin 2015

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)CSS (515 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 433 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur