miguel-perez/smoothState.js

Add anchor tests

Open

#184 aperta il 13 giu 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)CSS (515 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4433 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor