From 85d953449125702c7c11f4a2242c328f7a65fd5b Mon Sep 17 00:00:00 2001 From: lucario387 Date: Sat, 7 Jan 2023 19:22:20 +0900 Subject: 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 --- .../injections/html/test-html-injections.html | 42 ++++------- .../svelte/test-svelte-injections.svelte | 35 +++------ tests/query/injections/vue/negative-assertions.vue | 4 ++ tests/query/injections/vue/test-vue-injections.vue | 84 ++++++---------------- 4 files changed, 48 insertions(+), 117 deletions(-) create mode 100644 tests/query/injections/vue/negative-assertions.vue (limited to 'tests/query/injections') 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 @@ - - - + + + + + + - - - + + + + + +
Test div to test css injections for style attributes diff --git a/tests/query/injections/svelte/test-svelte-injections.svelte b/tests/query/injections/svelte/test-svelte-injections.svelte index a821dd080..5a9a03300 100644 --- a/tests/query/injections/svelte/test-svelte-injections.svelte +++ b/tests/query/injections/svelte/test-svelte-injections.svelte @@ -1,29 +1,14 @@ - - + + + + + - - + + + + +

Test file

diff --git a/tests/query/injections/vue/negative-assertions.vue b/tests/query/injections/vue/negative-assertions.vue new file mode 100644 index 000000000..fdc871919 --- /dev/null +++ b/tests/query/injections/vue/negative-assertions.vue @@ -0,0 +1,4 @@ + + + + diff --git a/tests/query/injections/vue/test-vue-injections.vue b/tests/query/injections/vue/test-vue-injections.vue index c7442a027..4cb4ae215 100644 --- a/tests/query/injections/vue/test-vue-injections.vue +++ b/tests/query/injections/vue/test-vue-injections.vue @@ -1,68 +1,28 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2