[monet/style-stylable] [tests] add a test for MnStylable



commit 38e48fd385c4d44f3fae80ae14d1768ac5c000b6
Author: Thomas Wood <thomas wood intel com>
Date:   Fri Sep 18 15:28:32 2009 +0100

    [tests] add a test for MnStylable
    
    Use the MnItem's simple implementation of MnStylable to test MnStylable
    and MnStyle.

 tests/test-stylable.c   |    2 +-
 tests/test-stylable.css |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-stylable.c b/tests/test-stylable.c
index dbcfde6..d28d963 100644
--- a/tests/test-stylable.c
+++ b/tests/test-stylable.c
@@ -13,7 +13,7 @@ main (int argc, char **argv)
   monet_init (&argc, &argv);
 
   style = mn_style_new ();
-  mn_style_load_from_file (style, "test-item.css", &err);
+  mn_style_load_from_file (style, "test-stylable.css", &err);
 
   if (err)
     {
diff --git a/tests/test-stylable.css b/tests/test-stylable.css
new file mode 100644
index 0000000..51d71b8
--- /dev/null
+++ b/tests/test-stylable.css
@@ -0,0 +1,7 @@
+TestItem#item-one {
+  background-color: #f00;
+}
+
+TestItem#item-two {
+  background-color: #00f;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]