forked from adobe/brackets
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some more unit tests + cleanup fixes
- Loading branch information
1 parent
26784f3
commit 36f2e54
Showing
2 changed files
with
76 additions
and
34 deletions.
There are no files selected for viewing
62 changes: 38 additions & 24 deletions
62
src/extensions/default/HtmlEntityCodeHints/unittest-files/default.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,44 @@ | ||
<p> | ||
<!-- Should show hints --> | ||
Test& | ||
</p> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<!-- Should show hints --> | ||
<p> | ||
Test& | ||
</p> | ||
|
||
<!-- Should show hints --> | ||
<p> | ||
Test! & | ||
</p> | ||
<!-- Should show hints --> | ||
<p> | ||
Test! & | ||
</p> | ||
|
||
<!-- Should show hints when cursor inside Entity --> | ||
<p> | ||
Test´ | ||
</p> | ||
<!-- Should show hints when cursor inside Entity --> | ||
<p> | ||
Test´ | ||
</p> | ||
|
||
<!-- Shouldn't show hints inside an opening tag--> | ||
<p&></p> | ||
<!-- Shouldn't show hints inside an opening tag--> | ||
<p&></p> | ||
|
||
<!-- Shouldn't show hints inside a closing tag--> | ||
<p></p&> | ||
<!-- Shouldn't show hints inside a closing tag--> | ||
<p></p&> | ||
|
||
<!-- Should show hints when semi-colon on the same line --> | ||
<p> | ||
Test ; & | ||
</p> | ||
<!-- Should show hints when semi-colon on the same line --> | ||
<p> | ||
Test ; & | ||
</p> | ||
|
||
<!-- Should not hint for & in attribute name --> | ||
<p & ></p> | ||
|
||
<!-- Should not hint for & in attribute value --> | ||
<p title="&"></p> | ||
|
||
<!-- Should show hints when cursor inside Entity --> | ||
<p> | ||
Test& | ||
</p> | ||
<!-- Should not hint for & in url --> | ||
<a href="https://github.com/adobe/brackets/issues?labels=low+priority&page=1&state=open">link</a> | ||
|
||
<!-- Should show multiple hints in same line --> | ||
<p>This & that & the other</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36f2e54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes so far look good. I thought of 2 more tests for issues found during feature development:
&#...
entities are sorted numerically (not alphabetically).