miguel-perez/smoothState.js

Add anchor tests

Open

#184 建立於 2015年6月13日

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

描述

We should add the following tests:

  • ignores middle clicks
  • ignores command clicks
  • ignores ctrl clicks
  • ignores cross origin links
  • ignores [target] anchors
  • ignores same page anchors
  • ignores same page anchors from URL that has hash: 'window.location = "#foo"'
  • ignores event with prevented default

See tests/testAnchors.js.

貢獻者指南