miguel-perez/smoothState.js

Add window parity tests

Open

#185 建立於 2015年6月13日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)CSS (4,433 star) (515 fork)batch import
enhancementhelp wanted

描述

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.

貢獻者指南