comparison test/dw_anchors_test.cc @ 2016:8cf59505bd0a

tests cleanup
author corvid <corvid@lavabit.com>
date Sat, 14 May 2011 06:45:42 +0000
parents bfb8bc9ddf62
children 16e52ecf20a8
comparison
equal deleted inserted replaced
2015:025c664fa44f 2016:8cf59505bd0a
120 fontAttrs.name = "Bitstream Charter"; 120 fontAttrs.name = "Bitstream Charter";
121 fontAttrs.size = 14; 121 fontAttrs.size = 14;
122 fontAttrs.weight = 400; 122 fontAttrs.weight = 400;
123 fontAttrs.style = FONT_STYLE_NORMAL; 123 fontAttrs.style = FONT_STYLE_NORMAL;
124 fontAttrs.letterSpacing = 0; 124 fontAttrs.letterSpacing = 0;
125 fontAttrs.fontVariant = FONT_VARIANT_NORMAL;
125 126
126 StyleAttrs styleAttrs; 127 StyleAttrs styleAttrs;
127 styleAttrs.initValues (); 128 styleAttrs.initValues ();
128 styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); 129 styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs);
129 styleAttrs.margin.setVal (5); 130 styleAttrs.margin.setVal (5);
154 topWidgetStyle->unref (); 155 topWidgetStyle->unref ();
155 widgetStyle->unref (); 156 widgetStyle->unref ();
156 wordStyle->unref (); 157 wordStyle->unref ();
157 headingStyle->unref (); 158 headingStyle->unref ();
158 for (int i = 0; i < 10; i++) 159 for (int i = 0; i < 10; i++)
159 delete buttonLabel[i]; 160 free(buttonLabel[i]);
160 delete layout; 161 delete layout;
161 162
162 return errorCode; 163 return errorCode;
163 } 164 }