miguel-perez/smoothState.js

Add window parity tests

Open

#185 geöffnet am 13. Juni 2015

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)CSS (515 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (4.433 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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