Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

test(attrs): remove invalid test from e2e suite #9214

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Sep 22, 2014

This test is incorrectly acting as documentation that the anchor tag directive
will preventDefault on clicks on elements with a name. This has not been the
case ever since f3de5b6

Closes #6554

This test is incorrectly acting as documentation that the anchor tag directive will preventDefault on
clicks on elements with a name. This has not been the case ever since f3de5b6

Closes angular#6554
@caitp
Copy link
Contributor Author

caitp commented Sep 22, 2014

@petebacondarwin could you review?

The test actually passes, I believe because $location is not injected anywhere. However, people are looking at this test and making assumptions about the behaviour of the library

@petebacondarwin
Copy link
Member

I tried injecting $location and the test still passes... I don't know why the page is not reloading. I wonder if it is browser dependent? I have only tests on Chrome and Firefox. Perhaps IE has other ideas?

Also, I think that the issue in #6554 is incorrectly referencing the link-4 test when their example actually matches the link-5 set up (i.e. no href attribute).

@btford btford modified the milestones: Backlog, 1.3.0 Sep 30, 2014
@petebacondarwin
Copy link
Member

Related to #6273

petebacondarwin referenced this pull request Oct 1, 2014
Change the a directive to link and hookup a click event only when
there is no href or name in the template element.
In a large Google app, this results in about 800 fewer registrations,
saving a small but measurable amount of time and memory.

Closes #5362
@petebacondarwin
Copy link
Member

Closing as a dupe of #6273 as I think we should fix this behaviour rather than removing the test.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[htmlAnchorDirective] name on achor tag reloads the UI
4 participants