miguel-perez/smoothState.js

Add anchor tests

Open

#184 ouverte le 13 juin 2015

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)CSS (515 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 433 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur