miguel-perez/smoothState.js

Add anchor tests

Open

#184 aberto em 13 de jun. de 2015

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)CSS (515 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (4.433 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador