mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: Add GTK directive error tests
This commit is contained in:
parent
f197e68589
commit
4cf966eafa
7 changed files with 11 additions and 4 deletions
1
tests/sample_errors/gtk_3.blp
Normal file
1
tests/sample_errors/gtk_3.blp
Normal file
|
@ -0,0 +1 @@
|
|||
using Gtk 3.0;
|
1
tests/sample_errors/gtk_3.err
Normal file
1
tests/sample_errors/gtk_3.err
Normal file
|
@ -0,0 +1 @@
|
|||
1,11,3,Only GTK 4 is supported
|
1
tests/sample_errors/gtk_exact_version.blp
Normal file
1
tests/sample_errors/gtk_exact_version.blp
Normal file
|
@ -0,0 +1 @@
|
|||
using Gtk 4.6;
|
1
tests/sample_errors/gtk_exact_version.err
Normal file
1
tests/sample_errors/gtk_exact_version.err
Normal file
|
@ -0,0 +1 @@
|
|||
1,11,3,Only GTK 4 is supported
|
|
@ -178,6 +178,8 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample_error("duplicate_obj_id")
|
||||
self.assert_sample_error("enum_member_dne")
|
||||
self.assert_sample_error("filters_in_non_file_filter")
|
||||
self.assert_sample_error("gtk_3")
|
||||
self.assert_sample_error("gtk_exact_version")
|
||||
self.assert_sample_error("invalid_bool")
|
||||
self.assert_sample_error("layout_in_non_widget")
|
||||
self.assert_sample_error("ns_not_imported")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue