miguel-perez/smoothState.js

Add window parity tests

Open

#185 aperta il 13 giu 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)CSS (515 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4433 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor