mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
allow negative assertion in injection tests (#4107)
* tests(vue, svelte): strengthen tests * fix(html, vue, svelte): fix wrong test format * allow negative assertions in injection tests
This commit is contained in:
parent
0922634d37
commit
85d9534491
5 changed files with 84 additions and 135 deletions
|
|
@ -5,38 +5,20 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
<style>
|
||||
footer{
|
||||
/* ^ css
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
<style title="Test Style without type attribute">
|
||||
footer{
|
||||
/* ^ css
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
<style type="text/css" title="test style with defined type attribute">
|
||||
footer{
|
||||
/* ^ css
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
<style> footer{ } </style>
|
||||
<!-- ^ css -->
|
||||
<style title="Test Style without type attribute"> footer{ } </style>
|
||||
<!-- ^ css -->
|
||||
<style type="text/css" title="test style with defined type attribute"> footer{ } </style>
|
||||
<!-- ^ css -->
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const x = 1
|
||||
// ^ javascript
|
||||
</script>
|
||||
<script defer>
|
||||
const x = 1
|
||||
// ^ javascript
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
const x = 1
|
||||
// ^ javascript
|
||||
</script>
|
||||
<script> const x = 1 </script>
|
||||
<!-- ^ javascript -->
|
||||
<script defer> const x = 1 </script>
|
||||
<!-- ^ javascript -->
|
||||
<script type="text/javascript"> const x = 1 </script>
|
||||
<!-- ^ javascript -->
|
||||
<div style="height: 100%">
|
||||
<!-- ^ css -->
|
||||
Test div to test css injections for style attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue