aboutsummaryrefslogtreecommitdiff
path: root/tests/test-list.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-02 20:40:40 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-02 20:40:40 +0100
commit8e2d33d3a5d17531a36e629bcf4c0bc36cbf1cfe (patch)
tree5def29ecbadc8873d62ebea6badc27c99b874bfe /tests/test-list.vala
downloadarctica-greeter-8e2d33d3a5d17531a36e629bcf4c0bc36cbf1cfe.tar.gz
arctica-greeter-8e2d33d3a5d17531a36e629bcf4c0bc36cbf1cfe.tar.bz2
arctica-greeter-8e2d33d3a5d17531a36e629bcf4c0bc36cbf1cfe.zip
Imported Upstream version 14.04.10
Diffstat (limited to 'tests/test-list.vala')
-rw-r--r--tests/test-list.vala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test-list.vala b/tests/test-list.vala
new file mode 100644
index 0000000..3fcd89e
--- /dev/null
+++ b/tests/test-list.vala
@@ -0,0 +1,19 @@
+
+public class TestList : UserList
+{
+ public TestList (Background bg, MenuBar mb)
+ {
+ Object (background: bg, menubar: mb);
+ }
+
+ public uint num_entries ()
+ {
+ return entries.length();
+ }
+
+ public bool is_scrolling ()
+ {
+ return mode == Mode.SCROLLING;
+ }
+
+} \ No newline at end of file