mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add more tests
This commit is contained in:
parent
08a74acb37
commit
a4b31f2cb0
24 changed files with 89 additions and 8 deletions
3
tests/sample_errors/class_dne.blp
Normal file
3
tests/sample_errors/class_dne.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template TestTemplate : Gtk.NotARealClass {}
|
1
tests/sample_errors/class_dne.err
Normal file
1
tests/sample_errors/class_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
3,25,17,Namespace Gtk does not contain a class called NotARealClass
|
5
tests/sample_errors/enum_member_dne.blp
Normal file
5
tests/sample_errors/enum_member_dne.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
orientation: diagonal;
|
||||
}
|
1
tests/sample_errors/enum_member_dne.err
Normal file
1
tests/sample_errors/enum_member_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,16,8,diagonal is not a member of Gtk.Orientation
|
5
tests/sample_errors/invalid_bool.blp
Normal file
5
tests/sample_errors/invalid_bool.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
visible: maybe;
|
||||
}
|
1
tests/sample_errors/invalid_bool.err
Normal file
1
tests/sample_errors/invalid_bool.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,12,5,Expected 'true' or 'false' for boolean value
|
3
tests/sample_errors/not_a_class.blp
Normal file
3
tests/sample_errors/not_a_class.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template TestTemplate : Gtk.Orientable {}
|
1
tests/sample_errors/not_a_class.err
Normal file
1
tests/sample_errors/not_a_class.err
Normal file
|
@ -0,0 +1 @@
|
|||
3,25,14,Gtk.Orientable is not a class
|
3
tests/sample_errors/ns_not_imported.blp
Normal file
3
tests/sample_errors/ns_not_imported.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template TestTemplate : Adw.ApplicationWindow {}
|
1
tests/sample_errors/ns_not_imported.err
Normal file
1
tests/sample_errors/ns_not_imported.err
Normal file
|
@ -0,0 +1 @@
|
|||
3,25,21,Namespace Adw was not imported
|
5
tests/sample_errors/property_dne.blp
Normal file
5
tests/sample_errors/property_dne.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
not-a-real-property: "Hello, world!";
|
||||
}
|
1
tests/sample_errors/property_dne.err
Normal file
1
tests/sample_errors/property_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,3,19,Class Gtk.Label does not contain a property called not-a-real-property
|
5
tests/sample_errors/signal_dne.blp
Normal file
5
tests/sample_errors/signal_dne.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Button {
|
||||
eaten-by-velociraptors => on_eaten_by_velociraptors();
|
||||
}
|
1
tests/sample_errors/signal_dne.err
Normal file
1
tests/sample_errors/signal_dne.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,3,22,Class Gtk.Button does not contain a signal called eaten-by-velociraptors
|
|
@ -1 +1 @@
|
|||
2,7,17,Namespace NotARealNamespace-2.0 could not be found
|
||||
2,7,21,Namespace NotARealNamespace-2.0 could not be found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue