Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Use conventional term for anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
domchristie committed May 2, 2017
1 parent e2e07c9 commit 75257bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/src/fixtures/navigation.html
Expand Up @@ -13,7 +13,7 @@ <h1>Navigation</h1>
<p><a id="same-origin-false-link" href="/fixtures/one.html" data-turbolinks="false">Same-origin data-turbolinks=false link</a></p>
<p data-turbolinks="false"><a id="same-origin-unannotated-link-inside-false-container" href="/fixtures/one.html">Same-origin unannotated link inside data-turbolinks=false container</a></p>
<p data-turbolinks="false"><a id="same-origin-true-link-inside-false-container" href="/fixtures/one.html" data-turbolinks="true">Same-origin data-turbolinks=true link inside data-turbolinks=false container</a></p>
<p><a id="same-origin-id-link" href="/fixtures/one.html#element-id" data-turbolinks="true">Same-origin link with ID hash</a></p>
<p><a id="same-origin-anchored-link" href="/fixtures/one.html#element-id">Same-origin anchored link</a></p>
<p><a id="cross-origin-unannotated-link" href="about:blank">Cross-origin unannotated link</a></p>
<p><a id="same-origin-targeted-link" href="/fixtures/one.html" target="_blank">Same-origin targeted link</a></p>
<p><a id="same-origin-download-link" href="/fixtures/one.html" download="one.html">Same-origin download link</a></p>
Expand Down
4 changes: 2 additions & 2 deletions test/src/modules/navigation_tests.coffee
Expand Up @@ -39,8 +39,8 @@ navigationTest "following a same-origin data-turbolinks=true link inside a data-
assert.equal(navigation.action, "push")
done()

navigationTest "following a same-origin link with ID hash", (assert, session, done) ->
session.clickSelector "#same-origin-id-link", (navigation) ->
navigationTest "following a same-origin anchored link", (assert, session, done) ->
session.clickSelector "#same-origin-anchored-link", (navigation) ->
session.waitForEvent "turbolinks:load", ->
assert.equal(navigation.location.pathname, "/fixtures/one.html")
assert.equal(navigation.location.hash, "#element-id")
Expand Down

0 comments on commit 75257bb

Please sign in to comment.