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.

贡献者指南