diff options
| author | lucario387 <hoangtun0810@gmail.com> | 2023-01-07 19:22:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 11:22:20 +0100 |
| commit | 85d953449125702c7c11f4a2242c328f7a65fd5b (patch) | |
| tree | 11c2d7a83fd9d267227690622e3eec6a1b01527a /tests/query/injections/html | |
| parent | fix(utils): swap_nodes calculates correct char_delta (#4110) (diff) | |
| download | nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar.gz nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar.bz2 nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar.lz nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar.xz nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.tar.zst nvim-treesitter-85d953449125702c7c11f4a2242c328f7a65fd5b.zip | |
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
Diffstat (limited to 'tests/query/injections/html')
| -rw-r--r-- | tests/query/injections/html/test-html-injections.html | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/tests/query/injections/html/test-html-injections.html b/tests/query/injections/html/test-html-injections.html index 536ec8734..4449923c6 100644 --- a/tests/query/injections/html/test-html-injections.html +++ b/tests/query/injections/html/test-html-injections.html @@ -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 |
