xref: /haiku/src/tests/kits/interface/balert/AlertTest.cpp (revision 77aa0e2a5ef8e6d00570dbeb7a12aeb23e9e5cf0)
1baccf4d7SMatthew Wilber // AlertTest.cpp
2baccf4d7SMatthew Wilber #include "AlertTest.h"
3baccf4d7SMatthew Wilber #include <cppunit/Test.h>
4baccf4d7SMatthew Wilber #include <cppunit/TestCaller.h>
5baccf4d7SMatthew Wilber #include <cppunit/TestSuite.h>
6baccf4d7SMatthew Wilber #include <stdio.h>
7baccf4d7SMatthew Wilber #include <string.h>
8baccf4d7SMatthew Wilber #include <Application.h>
9baccf4d7SMatthew Wilber #include <Alert.h>
10855c5b57SMatthew Wilber #include <Point.h>
11baccf4d7SMatthew Wilber #include <TextView.h>
12baccf4d7SMatthew Wilber #include <Button.h>
13baccf4d7SMatthew Wilber #include <Rect.h>
14baccf4d7SMatthew Wilber 
15*77aa0e2aSOliver Tappe #include <iostream>
16*77aa0e2aSOliver Tappe using std::ostream;
17*77aa0e2aSOliver Tappe 
18855c5b57SMatthew Wilber #define ASSERT_DEQUAL(x,y) CPPUNIT_ASSERT_DOUBLES_EQUAL((x),(y),0.01)
19855c5b57SMatthew Wilber 
20aa44f14bSMatthew Wilber const char *k20X = "XXXXXXXXXXXXXXXXXXXX";
21aa44f14bSMatthew Wilber const char *k40X = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
22aa44f14bSMatthew Wilber const char *k60X = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
23aa44f14bSMatthew Wilber 
24855c5b57SMatthew Wilber // Required by CPPUNIT_ASSERT_EQUAL(rgb_color, rgb_color)
25155b583aSIngo Weinhold #if TEST_R5
operator ==(const rgb_color & left,const rgb_color & right)26855c5b57SMatthew Wilber bool operator==(const rgb_color &left, const rgb_color &right)
27855c5b57SMatthew Wilber {
28855c5b57SMatthew Wilber 	if (left.red == right.red && left.green == right.green &&
29855c5b57SMatthew Wilber 	    left.blue == right.blue && left.alpha == right.alpha)
30855c5b57SMatthew Wilber 	    return true;
31855c5b57SMatthew Wilber 	else
32855c5b57SMatthew Wilber 		return false;
33855c5b57SMatthew Wilber }
34155b583aSIngo Weinhold #endif	// TEST_R5
35155b583aSIngo Weinhold 
36855c5b57SMatthew Wilber // Required by CPPUNIT_ASSERT_EQUAL(rgb_color, rgb_color)
operator <<(ostream & stream,const rgb_color & clr)37855c5b57SMatthew Wilber ostream &operator<<(ostream &stream, const rgb_color &clr)
38855c5b57SMatthew Wilber {
39855c5b57SMatthew Wilber 	return stream << "rgb_color(" << clr.red << ", " <<
40855c5b57SMatthew Wilber 		clr.green << ", " << clr.blue << ", " << clr.alpha << ")";
41855c5b57SMatthew Wilber }
42855c5b57SMatthew Wilber 
43855c5b57SMatthew Wilber // For storing expected state of windows or views.
44855c5b57SMatthew Wilber struct GuiInfo {
45855c5b57SMatthew Wilber 	const char*	label;
46855c5b57SMatthew Wilber 	float		width;
47855c5b57SMatthew Wilber 	float		height;
48855c5b57SMatthew Wilber 	BPoint		topleft;
49855c5b57SMatthew Wilber };
50855c5b57SMatthew Wilber 
51855c5b57SMatthew Wilber // For storing all the information required to create and
52855c5b57SMatthew Wilber // verify the state of a BAlert object.
53855c5b57SMatthew Wilber class AlertTestInfo {
54855c5b57SMatthew Wilber public:
55855c5b57SMatthew Wilber 	AlertTestInfo(AlertTest *pTest);
56855c5b57SMatthew Wilber 	~AlertTestInfo();
57855c5b57SMatthew Wilber 
58855c5b57SMatthew Wilber 	void SetWinInfo(const GuiInfo &winInfo);
59855c5b57SMatthew Wilber 	void SetTextViewInfo(const GuiInfo &textInfo);
60855c5b57SMatthew Wilber 	void SetButtonInfo(int32 btn, const GuiInfo &btnInfo);
61855c5b57SMatthew Wilber 
62855c5b57SMatthew Wilber 	void SetButtonWidthMode(button_width widthMode);
63855c5b57SMatthew Wilber 	void SetButtonSpacingMode(button_spacing spacingMode);
64855c5b57SMatthew Wilber 	void SetAlertType(alert_type alertType);
65855c5b57SMatthew Wilber 
66855c5b57SMatthew Wilber 	void GuiInfoTest();
67855c5b57SMatthew Wilber 
68855c5b57SMatthew Wilber private:
69855c5b57SMatthew Wilber 	AlertTest*		fTest;
70855c5b57SMatthew Wilber 	GuiInfo			fWinInfo;
71855c5b57SMatthew Wilber 	GuiInfo			fTextInfo;
72855c5b57SMatthew Wilber 	GuiInfo			fButtonInfo[3];
73855c5b57SMatthew Wilber 	int32 			fButtonCount;
74855c5b57SMatthew Wilber 	button_width	fWidthMode;
75855c5b57SMatthew Wilber 	button_spacing	fSpacingMode;
76855c5b57SMatthew Wilber 	alert_type		fAlertType;
77855c5b57SMatthew Wilber };
78855c5b57SMatthew Wilber 
AlertTestInfo(AlertTest * pTest)79855c5b57SMatthew Wilber AlertTestInfo::AlertTestInfo(AlertTest *pTest)
80855c5b57SMatthew Wilber {
81855c5b57SMatthew Wilber 	memset(this, 0, sizeof(AlertTestInfo));
82855c5b57SMatthew Wilber 
83855c5b57SMatthew Wilber 	fTest = pTest;
84855c5b57SMatthew Wilber 	fWidthMode = B_WIDTH_AS_USUAL;
85855c5b57SMatthew Wilber 	fSpacingMode = B_EVEN_SPACING;
86855c5b57SMatthew Wilber 	fAlertType = B_INFO_ALERT;
87855c5b57SMatthew Wilber }
88855c5b57SMatthew Wilber 
~AlertTestInfo()89855c5b57SMatthew Wilber AlertTestInfo::~AlertTestInfo()
90855c5b57SMatthew Wilber {
91855c5b57SMatthew Wilber 	fTest = NULL;
92855c5b57SMatthew Wilber 	fButtonCount = 0;
93855c5b57SMatthew Wilber }
94855c5b57SMatthew Wilber 
95855c5b57SMatthew Wilber void
SetWinInfo(const GuiInfo & winInfo)96855c5b57SMatthew Wilber AlertTestInfo::SetWinInfo(const GuiInfo &winInfo)
97855c5b57SMatthew Wilber {
98855c5b57SMatthew Wilber 	fWinInfo = winInfo;
99855c5b57SMatthew Wilber }
100855c5b57SMatthew Wilber 
101855c5b57SMatthew Wilber void
SetTextViewInfo(const GuiInfo & textInfo)102855c5b57SMatthew Wilber AlertTestInfo::SetTextViewInfo(const GuiInfo &textInfo)
103855c5b57SMatthew Wilber {
104855c5b57SMatthew Wilber 	fTextInfo = textInfo;
105855c5b57SMatthew Wilber }
106855c5b57SMatthew Wilber 
107855c5b57SMatthew Wilber void
SetButtonInfo(int32 btn,const GuiInfo & btnInfo)108855c5b57SMatthew Wilber AlertTestInfo::SetButtonInfo(int32 btn, const GuiInfo &btnInfo)
109855c5b57SMatthew Wilber {
110855c5b57SMatthew Wilber 	if (btn < 0 || btn > 2 || btn > fButtonCount) {
111855c5b57SMatthew Wilber 		CPPUNIT_ASSERT(false);
112855c5b57SMatthew Wilber 		return;
113855c5b57SMatthew Wilber 	}
114855c5b57SMatthew Wilber 	fButtonInfo[btn] = btnInfo;
115855c5b57SMatthew Wilber 	if (btn == fButtonCount && fButtonCount < 3)
116855c5b57SMatthew Wilber 		fButtonCount++;
117855c5b57SMatthew Wilber }
118855c5b57SMatthew Wilber 
119855c5b57SMatthew Wilber void
SetButtonWidthMode(button_width widthMode)120855c5b57SMatthew Wilber AlertTestInfo::SetButtonWidthMode(button_width widthMode)
121855c5b57SMatthew Wilber {
122855c5b57SMatthew Wilber 	fWidthMode = widthMode;
123855c5b57SMatthew Wilber }
124855c5b57SMatthew Wilber 
125855c5b57SMatthew Wilber void
SetButtonSpacingMode(button_spacing spacingMode)126855c5b57SMatthew Wilber AlertTestInfo::SetButtonSpacingMode(button_spacing spacingMode)
127855c5b57SMatthew Wilber {
128855c5b57SMatthew Wilber 	fSpacingMode = spacingMode;
129855c5b57SMatthew Wilber }
130855c5b57SMatthew Wilber 
131855c5b57SMatthew Wilber void
SetAlertType(alert_type alertType)132855c5b57SMatthew Wilber AlertTestInfo::SetAlertType(alert_type alertType)
133855c5b57SMatthew Wilber {
134855c5b57SMatthew Wilber 	fAlertType = alertType;
135855c5b57SMatthew Wilber }
136855c5b57SMatthew Wilber 
137855c5b57SMatthew Wilber void
GuiInfoTest()138855c5b57SMatthew Wilber AlertTestInfo::GuiInfoTest()
139855c5b57SMatthew Wilber {
140855c5b57SMatthew Wilber 	fTest->NextSubTest();
141855c5b57SMatthew Wilber 	// Dummy application object required to create Window objects.
142855c5b57SMatthew Wilber 	BApplication app("application/x-vnd.Haiku-interfacekit_alerttest");
143855c5b57SMatthew Wilber 	BAlert *pAlert = new BAlert(
144855c5b57SMatthew Wilber 		fWinInfo.label,
145855c5b57SMatthew Wilber 		fTextInfo.label,
146855c5b57SMatthew Wilber 		fButtonInfo[0].label,
147855c5b57SMatthew Wilber 		fButtonInfo[1].label,
148855c5b57SMatthew Wilber 		fButtonInfo[2].label,
149855c5b57SMatthew Wilber 		fWidthMode,
150855c5b57SMatthew Wilber 		fSpacingMode,
151855c5b57SMatthew Wilber 		fAlertType
152855c5b57SMatthew Wilber 	);
153855c5b57SMatthew Wilber 	CPPUNIT_ASSERT(pAlert);
154855c5b57SMatthew Wilber 
155855c5b57SMatthew Wilber 	// Alert Window Width/Height
156855c5b57SMatthew Wilber 	fTest->NextSubTest();
157855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fWinInfo.width, pAlert->Bounds().Width());
158855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fWinInfo.height, pAlert->Bounds().Height());
159855c5b57SMatthew Wilber 
160855c5b57SMatthew Wilber 	// [k] MasterView
161855c5b57SMatthew Wilber 	fTest->NextSubTest();
162855c5b57SMatthew Wilber 	BView *masterView = pAlert->ChildAt(0);
163855c5b57SMatthew Wilber 	CPPUNIT_ASSERT(masterView);
164855c5b57SMatthew Wilber 
165855c5b57SMatthew Wilber 	// [k] MasterView Color
166855c5b57SMatthew Wilber 	fTest->NextSubTest();
167855c5b57SMatthew Wilber 	CPPUNIT_ASSERT_EQUAL(ui_color(B_PANEL_BACKGROUND_COLOR),
168855c5b57SMatthew Wilber 		masterView->ViewColor());
169855c5b57SMatthew Wilber 
170855c5b57SMatthew Wilber 	// Test all the buttons
171855c5b57SMatthew Wilber 	BButton *btns[3] = { NULL };
172855c5b57SMatthew Wilber 	for (int32 i = 0; i < 3; i++) {
173855c5b57SMatthew Wilber 		fTest->NextSubTest();
174855c5b57SMatthew Wilber 		btns[i] = pAlert->ButtonAt(i);
175855c5b57SMatthew Wilber 
176855c5b57SMatthew Wilber 		if (i >= fButtonCount) {
177855c5b57SMatthew Wilber 			// If there is should be no button at this index
178855c5b57SMatthew Wilber 			CPPUNIT_ASSERT_EQUAL((BButton*)NULL, btns[i]);
179855c5b57SMatthew Wilber 		} else {
180855c5b57SMatthew Wilber 			// If there should be a button at this index
181855c5b57SMatthew Wilber 			CPPUNIT_ASSERT(btns[i]);
182855c5b57SMatthew Wilber 
183855c5b57SMatthew Wilber 			CPPUNIT_ASSERT(
184855c5b57SMatthew Wilber 				strcmp(fButtonInfo[i].label, btns[i]->Label()) == 0);
185855c5b57SMatthew Wilber 
186855c5b57SMatthew Wilber 			ASSERT_DEQUAL(fButtonInfo[i].width, btns[i]->Bounds().Width());
187855c5b57SMatthew Wilber 
188855c5b57SMatthew Wilber 			ASSERT_DEQUAL(fButtonInfo[i].height, btns[i]->Bounds().Height());
189855c5b57SMatthew Wilber 
190855c5b57SMatthew Wilber 			BPoint pt = btns[i]->ConvertToParent(BPoint(0, 0));
191855c5b57SMatthew Wilber 			ASSERT_DEQUAL(fButtonInfo[i].topleft.x, pt.x);
192855c5b57SMatthew Wilber 			ASSERT_DEQUAL(fButtonInfo[i].topleft.y, pt.y);
193855c5b57SMatthew Wilber 
194855c5b57SMatthew Wilber 			if (i == fButtonCount - 1) {
195855c5b57SMatthew Wilber 				// Default button
196855c5b57SMatthew Wilber 				CPPUNIT_ASSERT_EQUAL(true, btns[i]->IsDefault());
197855c5b57SMatthew Wilber 			}
198855c5b57SMatthew Wilber 		}
199855c5b57SMatthew Wilber 	}
200855c5b57SMatthew Wilber 
201855c5b57SMatthew Wilber 	// [k] TextView
202855c5b57SMatthew Wilber 	fTest->NextSubTest();
203855c5b57SMatthew Wilber 	BTextView *textView = pAlert->TextView();
204855c5b57SMatthew Wilber 	CPPUNIT_ASSERT(textView);
205855c5b57SMatthew Wilber 
206855c5b57SMatthew Wilber 	// [k] TextView ViewColor()
207855c5b57SMatthew Wilber 	fTest->NextSubTest();
208855c5b57SMatthew Wilber 	CPPUNIT_ASSERT_EQUAL(ui_color(B_PANEL_BACKGROUND_COLOR), textView->ViewColor());
209855c5b57SMatthew Wilber 
210855c5b57SMatthew Wilber 	// [k] TextView IsEditable()
211855c5b57SMatthew Wilber 	fTest->NextSubTest();
212855c5b57SMatthew Wilber 	CPPUNIT_ASSERT_EQUAL(false, textView->IsEditable());
213855c5b57SMatthew Wilber 
214855c5b57SMatthew Wilber 	// [k] TextView IsSelectable()
215855c5b57SMatthew Wilber 	fTest->NextSubTest();
216855c5b57SMatthew Wilber 	CPPUNIT_ASSERT_EQUAL(false, textView->IsSelectable());
217855c5b57SMatthew Wilber 
218855c5b57SMatthew Wilber 	// [k] TextView DoesWordWrap()
219855c5b57SMatthew Wilber 	fTest->NextSubTest();
220855c5b57SMatthew Wilber 	CPPUNIT_ASSERT_EQUAL(true, textView->DoesWordWrap());
221855c5b57SMatthew Wilber 
222855c5b57SMatthew Wilber 	// TextView Text
223855c5b57SMatthew Wilber 	fTest->NextSubTest();
224855c5b57SMatthew Wilber 	CPPUNIT_ASSERT(strcmp(fTextInfo.label, textView->Text()) == 0);
225855c5b57SMatthew Wilber 
226855c5b57SMatthew Wilber 	// TextView Width/Height
227855c5b57SMatthew Wilber 	fTest->NextSubTest();
228855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fTextInfo.width, textView->Bounds().Width());
229855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fTextInfo.height, textView->Bounds().Height());
230855c5b57SMatthew Wilber 
231855c5b57SMatthew Wilber 	// TextView Position
232855c5b57SMatthew Wilber 	fTest->NextSubTest();
233855c5b57SMatthew Wilber 	BPoint pt = textView->ConvertToParent(BPoint(0, 0));
234855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fTextInfo.topleft.x, pt.x);
235855c5b57SMatthew Wilber 	ASSERT_DEQUAL(fTextInfo.topleft.y, pt.y);
236855c5b57SMatthew Wilber 
237855c5b57SMatthew Wilber 	delete pAlert;
238855c5b57SMatthew Wilber 	pAlert = NULL;
239855c5b57SMatthew Wilber }
240855c5b57SMatthew Wilber 
241baccf4d7SMatthew Wilber // Suite
242baccf4d7SMatthew Wilber CppUnit::Test *
Suite()243baccf4d7SMatthew Wilber AlertTest::Suite()
244baccf4d7SMatthew Wilber {
245baccf4d7SMatthew Wilber 	CppUnit::TestSuite *suite = new CppUnit::TestSuite();
246baccf4d7SMatthew Wilber 	typedef CppUnit::TestCaller<AlertTest> TC;
247baccf4d7SMatthew Wilber 
2488ebac7a6SMatthew Wilber #define AT_ADDTEST(fn) (suite->addTest(new TC("Alert " #fn, &AlertTest::fn)))
249aa44f14bSMatthew Wilber 
2508ebac7a6SMatthew Wilber 	////// UW_ES_IA - One Button //////
2518ebac7a6SMatthew Wilber 	AT_ADDTEST(empty_empty_UW_ES_IA);
2528ebac7a6SMatthew Wilber 	AT_ADDTEST(OK_X_UW_ES_IA);
2538ebac7a6SMatthew Wilber 	AT_ADDTEST(OK_60X_UW_ES_IA);
2548ebac7a6SMatthew Wilber 	AT_ADDTEST(twentyX_60X_UW_ES_IA);
2558ebac7a6SMatthew Wilber 	AT_ADDTEST(fortyX_60X_UW_ES_IA);
256aa44f14bSMatthew Wilber 
257db441663SMatthew Wilber 	////// LW_ES_IA - One Button //////
258db441663SMatthew Wilber 	AT_ADDTEST(empty_empty_LW_ES_IA);
259db441663SMatthew Wilber 	AT_ADDTEST(OK_X_LW_ES_IA);
260db441663SMatthew Wilber 	AT_ADDTEST(twentyX_60X_LW_ES_IA);
261db441663SMatthew Wilber 	AT_ADDTEST(fortyX_60X_LW_ES_IA);
2628ebac7a6SMatthew Wilber 
263b8544371SMatthew Wilber 	////// WW_ES_IA - One Button //////
264b8544371SMatthew Wilber 	AT_ADDTEST(empty_empty_WW_ES_IA);
265b8544371SMatthew Wilber 	AT_ADDTEST(OK_X_WW_ES_IA);
266b8544371SMatthew Wilber 	AT_ADDTEST(twentyX_60X_WW_ES_IA);
267b8544371SMatthew Wilber 
2688ebac7a6SMatthew Wilber 	////// UW_ES_EA - One Button //////
2698ebac7a6SMatthew Wilber 	AT_ADDTEST(OK_X_UW_ES_EA);
2708ebac7a6SMatthew Wilber 	AT_ADDTEST(fortyX_60X_UW_ES_EA);
2718ebac7a6SMatthew Wilber 
27282cbd5d8SMatthew Wilber 	////// UW_OS_IA - One Button //////
27382cbd5d8SMatthew Wilber 	AT_ADDTEST(OK_X_UW_OS_IA);
27482cbd5d8SMatthew Wilber 	AT_ADDTEST(fortyX_60X_UW_OS_IA);
27582cbd5d8SMatthew Wilber 
27682cbd5d8SMatthew Wilber 	////// LW_OS_IA - One Button //////
27782cbd5d8SMatthew Wilber 	AT_ADDTEST(OK_X_LW_OS_IA);
27882cbd5d8SMatthew Wilber 
27982cbd5d8SMatthew Wilber 	////// UW_OS_EA - One Button //////
28082cbd5d8SMatthew Wilber 	AT_ADDTEST(OK_X_UW_OS_EA);
28182cbd5d8SMatthew Wilber 
282db441663SMatthew Wilber 	////// UW_ES_IA - Two Button //////
283db441663SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_UW_ES_IA);
284db441663SMatthew Wilber 	AT_ADDTEST(twentyX_Cancel_60X_UW_ES_IA);
285db441663SMatthew Wilber 	AT_ADDTEST(twentyX_20X_60X_UW_ES_IA);
286db441663SMatthew Wilber 
287db441663SMatthew Wilber 	////// LW_ES_IA - Two Button //////
288db441663SMatthew Wilber 	AT_ADDTEST(empty_empty_X_LW_ES_IA);
289db441663SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_LW_ES_IA);
290db441663SMatthew Wilber 
291b8544371SMatthew Wilber 	////// WW_ES_IA - Two Button //////
292b8544371SMatthew Wilber 	AT_ADDTEST(empty_empty_X_WW_ES_IA);
293b8544371SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_WW_ES_IA);
294b8544371SMatthew Wilber 	AT_ADDTEST(twentyX_Cancel_60X_WW_ES_IA);
295b8544371SMatthew Wilber 	AT_ADDTEST(twentyX_20X_WW_ES_IA);
296b8544371SMatthew Wilber 
2978ebac7a6SMatthew Wilber 	////// UW_ES_EA - Two Button //////
2988ebac7a6SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_UW_ES_EA);
2998ebac7a6SMatthew Wilber 	AT_ADDTEST(twentyX_20X_60X_UW_ES_EA);
3008ebac7a6SMatthew Wilber 
30182cbd5d8SMatthew Wilber 	////// UW_OS_IA - Two Button //////
30282cbd5d8SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_UW_OS_IA);
30382cbd5d8SMatthew Wilber 
30482cbd5d8SMatthew Wilber 	////// LW_OS_IA - Two Button //////
30582cbd5d8SMatthew Wilber 	AT_ADDTEST(OK_Cancel_60X_LW_OS_IA);
30682cbd5d8SMatthew Wilber 
30782cbd5d8SMatthew Wilber 	////// LW_OS_EA - Two Button //////
30882cbd5d8SMatthew Wilber 	AT_ADDTEST(twentyX_OK_60X_LW_OS_EA);
30982cbd5d8SMatthew Wilber 
310db441663SMatthew Wilber 	////// UW_ES_IA - Three Button //////
311db441663SMatthew Wilber 	AT_ADDTEST(twentyX_20X_20X_60X_UW_ES_IA);
312db441663SMatthew Wilber 
313db441663SMatthew Wilber 	////// LW_ES_IA - Three Button //////
314db441663SMatthew Wilber 	AT_ADDTEST(empty_empty_empty_X_LW_ES_IA);
315db441663SMatthew Wilber 	AT_ADDTEST(Yes_No_Cancel_X_LW_ES_IA);
316db441663SMatthew Wilber 	AT_ADDTEST(twentyX_20X_20X_60X_LW_ES_IA);
317db441663SMatthew Wilber 
318b8544371SMatthew Wilber 	////// WW_ES_IA - Three Button //////
319b8544371SMatthew Wilber 	AT_ADDTEST(empty_empty_empty_X_WW_ES_IA);
320b8544371SMatthew Wilber 	AT_ADDTEST(Monkey_Dog_Cat_X_WW_ES_IA);
321b8544371SMatthew Wilber 	AT_ADDTEST(X_20X_X_WW_ES_IA);
322b8544371SMatthew Wilber 	AT_ADDTEST(Yes_No_Cancel_X_WW_ES_IA);
323b8544371SMatthew Wilber 	AT_ADDTEST(twentyX_20X_20X_60X_WW_ES_IA);
324b8544371SMatthew Wilber 
3258ebac7a6SMatthew Wilber 	////// UW_ES_EA - Three Button //////
3268ebac7a6SMatthew Wilber 	AT_ADDTEST(twentyX_20X_20X_60X_UW_ES_EA);
327baccf4d7SMatthew Wilber 
32882cbd5d8SMatthew Wilber 	////// UW_OS_IA - Three Button //////
32982cbd5d8SMatthew Wilber 	AT_ADDTEST(Yes_No_Cancel_60X_UW_OS_IA);
33082cbd5d8SMatthew Wilber 
33182cbd5d8SMatthew Wilber 	////// LW_OS_IA - Three Button //////
33282cbd5d8SMatthew Wilber 	AT_ADDTEST(Yes_No_Cancel_60X_LW_OS_IA);
33382cbd5d8SMatthew Wilber 
33482cbd5d8SMatthew Wilber 	////// WW_OS_IA - Three Button //////
33582cbd5d8SMatthew Wilber 	AT_ADDTEST(Monkey_Dog_Cat_60X_WW_OS_IA);
33682cbd5d8SMatthew Wilber 
33782cbd5d8SMatthew Wilber 	////// UW_OS_EA - Three Button //////
33882cbd5d8SMatthew Wilber 	AT_ADDTEST(twentyX_OK_Cancel_60X_UW_OS_EA);
33982cbd5d8SMatthew Wilber 
340baccf4d7SMatthew Wilber 	return suite;
341baccf4d7SMatthew Wilber }
342baccf4d7SMatthew Wilber 
343baccf4d7SMatthew Wilber // setUp
344baccf4d7SMatthew Wilber void
setUp()345baccf4d7SMatthew Wilber AlertTest::setUp()
346baccf4d7SMatthew Wilber {
347baccf4d7SMatthew Wilber 	BTestCase::setUp();
348baccf4d7SMatthew Wilber }
349baccf4d7SMatthew Wilber 
350baccf4d7SMatthew Wilber // tearDown
351baccf4d7SMatthew Wilber void
tearDown()352baccf4d7SMatthew Wilber AlertTest::tearDown()
353baccf4d7SMatthew Wilber {
354baccf4d7SMatthew Wilber 	BTestCase::tearDown();
355baccf4d7SMatthew Wilber }
356baccf4d7SMatthew Wilber 
357aa44f14bSMatthew Wilber ////// UW_ES_IA - One Button //////
358aa44f14bSMatthew Wilber 
359baccf4d7SMatthew Wilber void
empty_empty_UW_ES_IA()360855c5b57SMatthew Wilber AlertTest::empty_empty_UW_ES_IA()
361baccf4d7SMatthew Wilber {
362855c5b57SMatthew Wilber 	AlertTestInfo ati(this);
363855c5b57SMatthew Wilber 	GuiInfo wi, ti, bi;
364855c5b57SMatthew Wilber 	wi.label = "alert1";
365855c5b57SMatthew Wilber 	wi.width = 310.0f;
366855c5b57SMatthew Wilber 	wi.height = 64.0f;
367855c5b57SMatthew Wilber 	ati.SetWinInfo(wi);
368baccf4d7SMatthew Wilber 
369855c5b57SMatthew Wilber 	ti.label = "";
370855c5b57SMatthew Wilber 	ti.width = 245.0f;
371855c5b57SMatthew Wilber 	ti.height = 13.0f;
372855c5b57SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
373855c5b57SMatthew Wilber 	ati.SetTextViewInfo(ti);
374baccf4d7SMatthew Wilber 
375855c5b57SMatthew Wilber 	bi.label = "";
376855c5b57SMatthew Wilber 	bi.width = 75.0f;
377855c5b57SMatthew Wilber 	bi.height = 30.0f;
378855c5b57SMatthew Wilber 	bi.topleft.Set(229.0f, 28.0f);
379855c5b57SMatthew Wilber 	ati.SetButtonInfo(0, bi);
380baccf4d7SMatthew Wilber 
381855c5b57SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
382855c5b57SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
383855c5b57SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
384baccf4d7SMatthew Wilber 
385855c5b57SMatthew Wilber 	ati.GuiInfoTest();
386855c5b57SMatthew Wilber }
387baccf4d7SMatthew Wilber 
388855c5b57SMatthew Wilber void
OK_X_UW_ES_IA()389855c5b57SMatthew Wilber AlertTest::OK_X_UW_ES_IA()
390855c5b57SMatthew Wilber {
391855c5b57SMatthew Wilber 	AlertTestInfo ati(this);
392855c5b57SMatthew Wilber 	GuiInfo wi, ti, bi;
393855c5b57SMatthew Wilber 	wi.label = "alert1";
394855c5b57SMatthew Wilber 	wi.width = 310.0f;
395855c5b57SMatthew Wilber 	wi.height = 64.0f;
396855c5b57SMatthew Wilber 	ati.SetWinInfo(wi);
397baccf4d7SMatthew Wilber 
398855c5b57SMatthew Wilber 	ti.label = "X";
399855c5b57SMatthew Wilber 	ti.width = 245.0f;
400855c5b57SMatthew Wilber 	ti.height = 13.0f;
401855c5b57SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
402855c5b57SMatthew Wilber 	ati.SetTextViewInfo(ti);
403baccf4d7SMatthew Wilber 
404855c5b57SMatthew Wilber 	bi.label = "OK";
405855c5b57SMatthew Wilber 	bi.width = 75.0f;
406855c5b57SMatthew Wilber 	bi.height = 30.0f;
407855c5b57SMatthew Wilber 	bi.topleft.Set(229.0f, 28.0f);
408855c5b57SMatthew Wilber 	ati.SetButtonInfo(0, bi);
409855c5b57SMatthew Wilber 
410855c5b57SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
411855c5b57SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
412855c5b57SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
413855c5b57SMatthew Wilber 
414855c5b57SMatthew Wilber 	ati.GuiInfoTest();
415855c5b57SMatthew Wilber }
416855c5b57SMatthew Wilber 
417855c5b57SMatthew Wilber void
OK_60X_UW_ES_IA()418855c5b57SMatthew Wilber AlertTest::OK_60X_UW_ES_IA()
419855c5b57SMatthew Wilber {
420855c5b57SMatthew Wilber 	AlertTestInfo ati(this);
421855c5b57SMatthew Wilber 	GuiInfo wi, ti, bi;
422855c5b57SMatthew Wilber 	wi.label = "alert1";
423855c5b57SMatthew Wilber 	wi.width = 310.0f;
424855c5b57SMatthew Wilber 	wi.height = 77.0f;
425855c5b57SMatthew Wilber 	ati.SetWinInfo(wi);
426855c5b57SMatthew Wilber 
427aa44f14bSMatthew Wilber 	ti.label = k60X;
428855c5b57SMatthew Wilber 	ti.width = 245.0f;
429855c5b57SMatthew Wilber 	ti.height = 26.0f;
430855c5b57SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
431855c5b57SMatthew Wilber 	ati.SetTextViewInfo(ti);
432855c5b57SMatthew Wilber 
433855c5b57SMatthew Wilber 	bi.label = "OK";
434855c5b57SMatthew Wilber 	bi.width = 75.0f;
435855c5b57SMatthew Wilber 	bi.height = 30.0f;
436855c5b57SMatthew Wilber 	bi.topleft.Set(229.0f, 41.0f);
437855c5b57SMatthew Wilber 	ati.SetButtonInfo(0, bi);
438855c5b57SMatthew Wilber 
439855c5b57SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
440855c5b57SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
441855c5b57SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
442855c5b57SMatthew Wilber 
443855c5b57SMatthew Wilber 	ati.GuiInfoTest();
444baccf4d7SMatthew Wilber }
445baccf4d7SMatthew Wilber 
446aa44f14bSMatthew Wilber void
twentyX_60X_UW_ES_IA()447aa44f14bSMatthew Wilber AlertTest::twentyX_60X_UW_ES_IA()
448aa44f14bSMatthew Wilber {
449aa44f14bSMatthew Wilber 	AlertTestInfo ati(this);
450aa44f14bSMatthew Wilber 	GuiInfo wi, ti, bi;
451aa44f14bSMatthew Wilber 	wi.label = "alert1";
452aa44f14bSMatthew Wilber 	wi.width = 310.0f;
453aa44f14bSMatthew Wilber 	wi.height = 77.0f;
454aa44f14bSMatthew Wilber 	ati.SetWinInfo(wi);
455aa44f14bSMatthew Wilber 
456aa44f14bSMatthew Wilber 	ti.label = k60X;
457aa44f14bSMatthew Wilber 	ti.width = 245.0f;
458aa44f14bSMatthew Wilber 	ti.height = 26.0f;
459aa44f14bSMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
460aa44f14bSMatthew Wilber 	ati.SetTextViewInfo(ti);
461aa44f14bSMatthew Wilber 
462aa44f14bSMatthew Wilber 	bi.label = k20X;
463aa44f14bSMatthew Wilber 	bi.width = 160.0f;
464aa44f14bSMatthew Wilber 	bi.height = 30.0f;
465aa44f14bSMatthew Wilber 	bi.topleft.Set(144.0f, 41.0f);
466aa44f14bSMatthew Wilber 	ati.SetButtonInfo(0, bi);
467aa44f14bSMatthew Wilber 
468aa44f14bSMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
469aa44f14bSMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
470aa44f14bSMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
471aa44f14bSMatthew Wilber 
472aa44f14bSMatthew Wilber 	ati.GuiInfoTest();
473aa44f14bSMatthew Wilber }
474aa44f14bSMatthew Wilber 
475aa44f14bSMatthew Wilber void
fortyX_60X_UW_ES_IA()476aa44f14bSMatthew Wilber AlertTest::fortyX_60X_UW_ES_IA()
477aa44f14bSMatthew Wilber {
478aa44f14bSMatthew Wilber 	AlertTestInfo ati(this);
479aa44f14bSMatthew Wilber 	GuiInfo wi, ti, bi;
480aa44f14bSMatthew Wilber 	wi.label = "alert1";
481aa44f14bSMatthew Wilber 	wi.width = 365.0f;
482aa44f14bSMatthew Wilber 	wi.height = 77.0f;
483aa44f14bSMatthew Wilber 	ati.SetWinInfo(wi);
484aa44f14bSMatthew Wilber 
485aa44f14bSMatthew Wilber 	ti.label = k60X;
486aa44f14bSMatthew Wilber 	ti.width = 300.0f;
487aa44f14bSMatthew Wilber 	ti.height = 26.0f;
488aa44f14bSMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
489aa44f14bSMatthew Wilber 	ati.SetTextViewInfo(ti);
490aa44f14bSMatthew Wilber 
491aa44f14bSMatthew Wilber 	bi.label = k40X;
492aa44f14bSMatthew Wilber 	bi.width = 300.0f;
493aa44f14bSMatthew Wilber 	bi.height = 30.0f;
494aa44f14bSMatthew Wilber 	bi.topleft.Set(59.0f, 41.0f);
495aa44f14bSMatthew Wilber 	ati.SetButtonInfo(0, bi);
496aa44f14bSMatthew Wilber 
497aa44f14bSMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
498aa44f14bSMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
499aa44f14bSMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
500aa44f14bSMatthew Wilber 
501aa44f14bSMatthew Wilber 	ati.GuiInfoTest();
502aa44f14bSMatthew Wilber }
503aa44f14bSMatthew Wilber 
504db441663SMatthew Wilber ////// LW_ES_IA - One Button //////
505db441663SMatthew Wilber 
506db441663SMatthew Wilber void
empty_empty_LW_ES_IA()507db441663SMatthew Wilber AlertTest::empty_empty_LW_ES_IA()
508db441663SMatthew Wilber {
509db441663SMatthew Wilber 	AlertTestInfo ati(this);
510db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
511db441663SMatthew Wilber 	wi.label = "alert1";
512db441663SMatthew Wilber 	wi.width = 310.0f;
513db441663SMatthew Wilber 	wi.height = 64.0f;
514db441663SMatthew Wilber 	ati.SetWinInfo(wi);
515db441663SMatthew Wilber 
516db441663SMatthew Wilber 	ti.label = "";
517db441663SMatthew Wilber 	ti.width = 245.0f;
518db441663SMatthew Wilber 	ti.height = 13.0f;
519db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
520db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
521db441663SMatthew Wilber 
522db441663SMatthew Wilber 	bi.label = "";
523db441663SMatthew Wilber 	bi.width = 20.0f;
524db441663SMatthew Wilber 	bi.height = 30.0f;
525db441663SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
526db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
527db441663SMatthew Wilber 
528db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
529db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
530db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
531db441663SMatthew Wilber 
532db441663SMatthew Wilber 	ati.GuiInfoTest();
533db441663SMatthew Wilber }
534db441663SMatthew Wilber 
535db441663SMatthew Wilber void
OK_X_LW_ES_IA()536db441663SMatthew Wilber AlertTest::OK_X_LW_ES_IA()
537db441663SMatthew Wilber {
538db441663SMatthew Wilber 	AlertTestInfo ati(this);
539db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
540db441663SMatthew Wilber 	wi.label = "alert1";
541db441663SMatthew Wilber 	wi.width = 310.0f;
542db441663SMatthew Wilber 	wi.height = 64.0f;
543db441663SMatthew Wilber 	ati.SetWinInfo(wi);
544db441663SMatthew Wilber 
545db441663SMatthew Wilber 	ti.label = "X";
546db441663SMatthew Wilber 	ti.width = 245.0f;
547db441663SMatthew Wilber 	ti.height = 13.0f;
548db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
549db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
550db441663SMatthew Wilber 
551db441663SMatthew Wilber 	bi.label = "OK";
552db441663SMatthew Wilber 	bi.width = 35.0f;
553db441663SMatthew Wilber 	bi.height = 30.0f;
554db441663SMatthew Wilber 	bi.topleft.Set(269.0f, 28.0f);
555db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
556db441663SMatthew Wilber 
557db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
558db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
559db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
560db441663SMatthew Wilber 
561db441663SMatthew Wilber 	ati.GuiInfoTest();
562db441663SMatthew Wilber }
563db441663SMatthew Wilber 
564db441663SMatthew Wilber void
twentyX_60X_LW_ES_IA()565db441663SMatthew Wilber AlertTest::twentyX_60X_LW_ES_IA()
566db441663SMatthew Wilber {
567db441663SMatthew Wilber 	AlertTestInfo ati(this);
568db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
569db441663SMatthew Wilber 	wi.label = "alert1";
570db441663SMatthew Wilber 	wi.width = 310.0f;
571db441663SMatthew Wilber 	wi.height = 77.0f;
572db441663SMatthew Wilber 	ati.SetWinInfo(wi);
573db441663SMatthew Wilber 
574db441663SMatthew Wilber 	ti.label = k60X;
575db441663SMatthew Wilber 	ti.width = 245.0f;
576db441663SMatthew Wilber 	ti.height = 26.0f;
577db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
578db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
579db441663SMatthew Wilber 
580db441663SMatthew Wilber 	bi.label = k20X;
581db441663SMatthew Wilber 	bi.width = 160.0f;
582db441663SMatthew Wilber 	bi.height = 30.0f;
583db441663SMatthew Wilber 	bi.topleft.Set(144.0f, 41.0f);
584db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
585db441663SMatthew Wilber 
586db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
587db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
588db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
589db441663SMatthew Wilber 
590db441663SMatthew Wilber 	ati.GuiInfoTest();
591db441663SMatthew Wilber }
592db441663SMatthew Wilber 
593db441663SMatthew Wilber void
fortyX_60X_LW_ES_IA()594db441663SMatthew Wilber AlertTest::fortyX_60X_LW_ES_IA()
595db441663SMatthew Wilber {
596db441663SMatthew Wilber 	AlertTestInfo ati(this);
597db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
598db441663SMatthew Wilber 	wi.label = "alert1";
599db441663SMatthew Wilber 	wi.width = 365.0f;
600db441663SMatthew Wilber 	wi.height = 77.0f;
601db441663SMatthew Wilber 	ati.SetWinInfo(wi);
602db441663SMatthew Wilber 
603db441663SMatthew Wilber 	ti.label = k60X;
604db441663SMatthew Wilber 	ti.width = 300.0f;
605db441663SMatthew Wilber 	ti.height = 26.0f;
606db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
607db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
608db441663SMatthew Wilber 
609db441663SMatthew Wilber 	bi.label = k40X;
610db441663SMatthew Wilber 	bi.width = 300.0f;
611db441663SMatthew Wilber 	bi.height = 30.0f;
612db441663SMatthew Wilber 	bi.topleft.Set(59.0f, 41.0f);
613db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
614db441663SMatthew Wilber 
615db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
616db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
617db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
618db441663SMatthew Wilber 
619db441663SMatthew Wilber 	ati.GuiInfoTest();
620db441663SMatthew Wilber }
621db441663SMatthew Wilber 
622b8544371SMatthew Wilber ////// WW_ES_IA - One Button //////
623b8544371SMatthew Wilber 
624b8544371SMatthew Wilber void
empty_empty_WW_ES_IA()625b8544371SMatthew Wilber AlertTest::empty_empty_WW_ES_IA()
626b8544371SMatthew Wilber {
627b8544371SMatthew Wilber 	AlertTestInfo ati(this);
628b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
629b8544371SMatthew Wilber 	wi.width = 310.0f;
630b8544371SMatthew Wilber 	wi.height = 64.0f;
631b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
632b8544371SMatthew Wilber 
633b8544371SMatthew Wilber 	ti.label = "";
634b8544371SMatthew Wilber 	ti.width = 245.0f;
635b8544371SMatthew Wilber 	ti.height = 13.0f;
636b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
637b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
638b8544371SMatthew Wilber 
639b8544371SMatthew Wilber 	bi.label = "";
640b8544371SMatthew Wilber 	bi.width = 20.0f;
641b8544371SMatthew Wilber 	bi.height = 30.0f;
642b8544371SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
643b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
644b8544371SMatthew Wilber 
645b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
646b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
647b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
648b8544371SMatthew Wilber 
649b8544371SMatthew Wilber 	ati.GuiInfoTest();
650b8544371SMatthew Wilber }
651b8544371SMatthew Wilber 
652b8544371SMatthew Wilber void
OK_X_WW_ES_IA()653b8544371SMatthew Wilber AlertTest::OK_X_WW_ES_IA()
654b8544371SMatthew Wilber {
655b8544371SMatthew Wilber 	AlertTestInfo ati(this);
656b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
657b8544371SMatthew Wilber 	wi.width = 310.0f;
658b8544371SMatthew Wilber 	wi.height = 64.0f;
659b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
660b8544371SMatthew Wilber 
661b8544371SMatthew Wilber 	ti.label = "X";
662b8544371SMatthew Wilber 	ti.width = 245.0f;
663b8544371SMatthew Wilber 	ti.height = 13.0f;
664b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
665b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
666b8544371SMatthew Wilber 
667b8544371SMatthew Wilber 	bi.label = "OK";
668b8544371SMatthew Wilber 	bi.width = 35.0f;
669b8544371SMatthew Wilber 	bi.height = 30.0f;
670b8544371SMatthew Wilber 	bi.topleft.Set(269.0f, 28.0f);
671b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
672b8544371SMatthew Wilber 
673b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
674b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
675b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
676b8544371SMatthew Wilber 
677b8544371SMatthew Wilber 	ati.GuiInfoTest();
678b8544371SMatthew Wilber }
679b8544371SMatthew Wilber 
680b8544371SMatthew Wilber void
twentyX_60X_WW_ES_IA()681b8544371SMatthew Wilber AlertTest::twentyX_60X_WW_ES_IA()
682b8544371SMatthew Wilber {
683b8544371SMatthew Wilber 	AlertTestInfo ati(this);
684b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
685b8544371SMatthew Wilber 	wi.width = 310.0f;
686b8544371SMatthew Wilber 	wi.height = 77.0f;
687b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
688b8544371SMatthew Wilber 
689b8544371SMatthew Wilber 	ti.label = k60X;
690b8544371SMatthew Wilber 	ti.width = 245.0f;
691b8544371SMatthew Wilber 	ti.height = 26.0f;
692b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
693b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
694b8544371SMatthew Wilber 
695b8544371SMatthew Wilber 	bi.label = k20X;
696b8544371SMatthew Wilber 	bi.width = 160.0f;
697b8544371SMatthew Wilber 	bi.height = 30.0f;
698b8544371SMatthew Wilber 	bi.topleft.Set(144.0f, 41.0f);
699b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
700b8544371SMatthew Wilber 
701b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
702b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
703b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
704b8544371SMatthew Wilber 
705b8544371SMatthew Wilber 	ati.GuiInfoTest();
706b8544371SMatthew Wilber }
707b8544371SMatthew Wilber 
708db441663SMatthew Wilber ////// UW_ES_EA - One Button //////
709db441663SMatthew Wilber 
710db441663SMatthew Wilber void
OK_X_UW_ES_EA()711db441663SMatthew Wilber AlertTest::OK_X_UW_ES_EA()
712db441663SMatthew Wilber {
713db441663SMatthew Wilber 	AlertTestInfo ati(this);
714db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
715db441663SMatthew Wilber 	wi.label = "alert1";
716db441663SMatthew Wilber 	wi.width = 310.0f;
717db441663SMatthew Wilber 	wi.height = 64.0f;
718db441663SMatthew Wilber 	ati.SetWinInfo(wi);
719db441663SMatthew Wilber 
720db441663SMatthew Wilber 	ti.label = "X";
721db441663SMatthew Wilber 	ti.width = 290.0f;
722db441663SMatthew Wilber 	ti.height = 13.0f;
723db441663SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
724db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
725db441663SMatthew Wilber 
726db441663SMatthew Wilber 	bi.label = "OK";
727db441663SMatthew Wilber 	bi.width = 75.0f;
728db441663SMatthew Wilber 	bi.height = 30.0f;
729db441663SMatthew Wilber 	bi.topleft.Set(229.0f, 28.0f);
730db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
731db441663SMatthew Wilber 
732db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
733db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
734db441663SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
735db441663SMatthew Wilber 
736db441663SMatthew Wilber 	ati.GuiInfoTest();
737db441663SMatthew Wilber }
738db441663SMatthew Wilber 
739db441663SMatthew Wilber void
fortyX_60X_UW_ES_EA()740db441663SMatthew Wilber AlertTest::fortyX_60X_UW_ES_EA()
741db441663SMatthew Wilber {
742db441663SMatthew Wilber 	AlertTestInfo ati(this);
743db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
744db441663SMatthew Wilber 	wi.label = "alert1";
745db441663SMatthew Wilber 	wi.width = 320.0f;
746db441663SMatthew Wilber 	wi.height = 77.0f;
747db441663SMatthew Wilber 	ati.SetWinInfo(wi);
748db441663SMatthew Wilber 
749db441663SMatthew Wilber 	ti.label = k60X;
750db441663SMatthew Wilber 	ti.width = 300.0f;
751db441663SMatthew Wilber 	ti.height = 26.0f;
752db441663SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
753db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
754db441663SMatthew Wilber 
755db441663SMatthew Wilber 	bi.label = k40X;
756db441663SMatthew Wilber 	bi.width = 300.0f;
757db441663SMatthew Wilber 	bi.height = 30.0f;
758db441663SMatthew Wilber 	bi.topleft.Set(14.0f, 41.0f);
759db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
760db441663SMatthew Wilber 
761db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
762db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
763db441663SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
764db441663SMatthew Wilber 
765db441663SMatthew Wilber 	ati.GuiInfoTest();
766db441663SMatthew Wilber }
767db441663SMatthew Wilber 
76882cbd5d8SMatthew Wilber ////// UW_OS_IA - One Button //////
76982cbd5d8SMatthew Wilber 
77082cbd5d8SMatthew Wilber void
OK_X_UW_OS_IA()77182cbd5d8SMatthew Wilber AlertTest::OK_X_UW_OS_IA()
77282cbd5d8SMatthew Wilber {
77382cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
77482cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
77582cbd5d8SMatthew Wilber 	wi.label = "alert1";
77682cbd5d8SMatthew Wilber 	wi.width = 310.0f;
77782cbd5d8SMatthew Wilber 	wi.height = 64.0f;
77882cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
77982cbd5d8SMatthew Wilber 
78082cbd5d8SMatthew Wilber 	ti.label = "X";
78182cbd5d8SMatthew Wilber 	ti.width = 245.0f;
78282cbd5d8SMatthew Wilber 	ti.height = 13.0f;
78382cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
78482cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
78582cbd5d8SMatthew Wilber 
78682cbd5d8SMatthew Wilber 	bi.label = "OK";
78782cbd5d8SMatthew Wilber 	bi.width = 75.0f;
78882cbd5d8SMatthew Wilber 	bi.height = 30.0f;
78982cbd5d8SMatthew Wilber 	bi.topleft.Set(229.0f, 28.0f);
79082cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
79182cbd5d8SMatthew Wilber 
79282cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
79382cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
79482cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
79582cbd5d8SMatthew Wilber 
79682cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
79782cbd5d8SMatthew Wilber }
79882cbd5d8SMatthew Wilber 
79982cbd5d8SMatthew Wilber void
fortyX_60X_UW_OS_IA()80082cbd5d8SMatthew Wilber AlertTest::fortyX_60X_UW_OS_IA()
80182cbd5d8SMatthew Wilber {
80282cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
80382cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
80482cbd5d8SMatthew Wilber 	wi.width = 365.0f;
80582cbd5d8SMatthew Wilber 	wi.height = 77.0f;
80682cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
80782cbd5d8SMatthew Wilber 
80882cbd5d8SMatthew Wilber 	ti.label = k60X;
80982cbd5d8SMatthew Wilber 	ti.width = 300.0f;
81082cbd5d8SMatthew Wilber 	ti.height = 26.0f;
81182cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
81282cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
81382cbd5d8SMatthew Wilber 
81482cbd5d8SMatthew Wilber 	bi.label = k40X;
81582cbd5d8SMatthew Wilber 	bi.width = 300.0f;
81682cbd5d8SMatthew Wilber 	bi.height = 30.0f;
81782cbd5d8SMatthew Wilber 	bi.topleft.Set(59.0f, 41.0f);
81882cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
81982cbd5d8SMatthew Wilber 
82082cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
82182cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
82282cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
82382cbd5d8SMatthew Wilber 
82482cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
82582cbd5d8SMatthew Wilber }
82682cbd5d8SMatthew Wilber 
82782cbd5d8SMatthew Wilber ////// LW_OS_IA - One Button //////
82882cbd5d8SMatthew Wilber 
82982cbd5d8SMatthew Wilber void
OK_X_LW_OS_IA()83082cbd5d8SMatthew Wilber AlertTest::OK_X_LW_OS_IA()
83182cbd5d8SMatthew Wilber {
83282cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
83382cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
83482cbd5d8SMatthew Wilber 	wi.label = "alert1";
83582cbd5d8SMatthew Wilber 	wi.width = 310.0f;
83682cbd5d8SMatthew Wilber 	wi.height = 64.0f;
83782cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
83882cbd5d8SMatthew Wilber 
83982cbd5d8SMatthew Wilber 	ti.label = "X";
84082cbd5d8SMatthew Wilber 	ti.width = 245.0f;
84182cbd5d8SMatthew Wilber 	ti.height = 13.0f;
84282cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
84382cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
84482cbd5d8SMatthew Wilber 
84582cbd5d8SMatthew Wilber 	bi.label = "OK";
84682cbd5d8SMatthew Wilber 	bi.width = 35.0f;
84782cbd5d8SMatthew Wilber 	bi.height = 30.0f;
84882cbd5d8SMatthew Wilber 	bi.topleft.Set(269.0f, 28.0f);
84982cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
85082cbd5d8SMatthew Wilber 
85182cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
85282cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
85382cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
85482cbd5d8SMatthew Wilber 
85582cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
85682cbd5d8SMatthew Wilber }
85782cbd5d8SMatthew Wilber 
85882cbd5d8SMatthew Wilber ////// UW_OS_EA - One Button //////
85982cbd5d8SMatthew Wilber 
86082cbd5d8SMatthew Wilber void
OK_X_UW_OS_EA()86182cbd5d8SMatthew Wilber AlertTest::OK_X_UW_OS_EA()
86282cbd5d8SMatthew Wilber {
86382cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
86482cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
86582cbd5d8SMatthew Wilber 	wi.label = "alert1";
86682cbd5d8SMatthew Wilber 	wi.width = 310.0f;
86782cbd5d8SMatthew Wilber 	wi.height = 64.0f;
86882cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
86982cbd5d8SMatthew Wilber 
87082cbd5d8SMatthew Wilber 	ti.label = "X";
87182cbd5d8SMatthew Wilber 	ti.width = 290.0f;
87282cbd5d8SMatthew Wilber 	ti.height = 13.0f;
87382cbd5d8SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
87482cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
87582cbd5d8SMatthew Wilber 
87682cbd5d8SMatthew Wilber 	bi.label = "OK";
87782cbd5d8SMatthew Wilber 	bi.width = 75.0f;
87882cbd5d8SMatthew Wilber 	bi.height = 30.0f;
87982cbd5d8SMatthew Wilber 	bi.topleft.Set(229.0f, 28.0f);
88082cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
88182cbd5d8SMatthew Wilber 
88282cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
88382cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
88482cbd5d8SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
88582cbd5d8SMatthew Wilber 
88682cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
88782cbd5d8SMatthew Wilber }
88882cbd5d8SMatthew Wilber 
889aa44f14bSMatthew Wilber ////// UW_ES_IA - Two Button //////
890aa44f14bSMatthew Wilber 
891aa44f14bSMatthew Wilber void
OK_Cancel_60X_UW_ES_IA()892aa44f14bSMatthew Wilber AlertTest::OK_Cancel_60X_UW_ES_IA()
893aa44f14bSMatthew Wilber {
894aa44f14bSMatthew Wilber 	AlertTestInfo ati(this);
895aa44f14bSMatthew Wilber 	GuiInfo wi, ti, bi;
896aa44f14bSMatthew Wilber 	wi.label = "alert1";
897aa44f14bSMatthew Wilber 	wi.width = 310.0f;
898aa44f14bSMatthew Wilber 	wi.height = 77.0f;
899aa44f14bSMatthew Wilber 	ati.SetWinInfo(wi);
900aa44f14bSMatthew Wilber 
901aa44f14bSMatthew Wilber 	ti.label = k60X;
902aa44f14bSMatthew Wilber 	ti.width = 245.0f;
903aa44f14bSMatthew Wilber 	ti.height = 26.0f;
904aa44f14bSMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
905aa44f14bSMatthew Wilber 	ati.SetTextViewInfo(ti);
906aa44f14bSMatthew Wilber 
907aa44f14bSMatthew Wilber 	bi.label = "OK";
908aa44f14bSMatthew Wilber 	bi.width = 75.0f;
909aa44f14bSMatthew Wilber 	bi.height = 24.0f;
910aa44f14bSMatthew Wilber 	bi.topleft.Set(148.0f, 44.0f);
911aa44f14bSMatthew Wilber 	ati.SetButtonInfo(0, bi);
912aa44f14bSMatthew Wilber 	bi.label = "Cancel";
913aa44f14bSMatthew Wilber 	bi.width = 75.0f;
914aa44f14bSMatthew Wilber 	bi.height = 30.0f;
915aa44f14bSMatthew Wilber 	bi.topleft.Set(229.0f, 41.0f);
916aa44f14bSMatthew Wilber 	ati.SetButtonInfo(1, bi);
917aa44f14bSMatthew Wilber 
918aa44f14bSMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
919aa44f14bSMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
920aa44f14bSMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
921aa44f14bSMatthew Wilber 
922aa44f14bSMatthew Wilber 	ati.GuiInfoTest();
923aa44f14bSMatthew Wilber }
924aa44f14bSMatthew Wilber 
925aa44f14bSMatthew Wilber void
twentyX_Cancel_60X_UW_ES_IA()926aa44f14bSMatthew Wilber AlertTest::twentyX_Cancel_60X_UW_ES_IA()
927aa44f14bSMatthew Wilber {
928aa44f14bSMatthew Wilber 	AlertTestInfo ati(this);
929aa44f14bSMatthew Wilber 	GuiInfo wi, ti, bi;
930aa44f14bSMatthew Wilber 	wi.label = "alert1";
931aa44f14bSMatthew Wilber 	wi.width = 310.0f;
932aa44f14bSMatthew Wilber 	wi.height = 77.0f;
933aa44f14bSMatthew Wilber 	ati.SetWinInfo(wi);
934aa44f14bSMatthew Wilber 
935aa44f14bSMatthew Wilber 	ti.label = k60X;
936aa44f14bSMatthew Wilber 	ti.width = 245.0f;
937aa44f14bSMatthew Wilber 	ti.height = 26.0f;
938aa44f14bSMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
939aa44f14bSMatthew Wilber 	ati.SetTextViewInfo(ti);
940aa44f14bSMatthew Wilber 
941aa44f14bSMatthew Wilber 	bi.label = k20X;
942aa44f14bSMatthew Wilber 	bi.width = 160.0f;
943aa44f14bSMatthew Wilber 	bi.height = 24.0f;
944aa44f14bSMatthew Wilber 	bi.topleft.Set(63.0f, 44.0f);
945aa44f14bSMatthew Wilber 	ati.SetButtonInfo(0, bi);
946aa44f14bSMatthew Wilber 	bi.label = "Cancel";
947aa44f14bSMatthew Wilber 	bi.width = 75.0f;
948aa44f14bSMatthew Wilber 	bi.height = 30.0f;
949aa44f14bSMatthew Wilber 	bi.topleft.Set(229.0f, 41.0f);
950aa44f14bSMatthew Wilber 	ati.SetButtonInfo(1, bi);
951aa44f14bSMatthew Wilber 
952aa44f14bSMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
953aa44f14bSMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
954aa44f14bSMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
955aa44f14bSMatthew Wilber 
956aa44f14bSMatthew Wilber 	ati.GuiInfoTest();
957aa44f14bSMatthew Wilber }
958aa44f14bSMatthew Wilber 
959aa44f14bSMatthew Wilber void
twentyX_20X_60X_UW_ES_IA()960aa44f14bSMatthew Wilber AlertTest::twentyX_20X_60X_UW_ES_IA()
961aa44f14bSMatthew Wilber {
962aa44f14bSMatthew Wilber 	AlertTestInfo ati(this);
963aa44f14bSMatthew Wilber 	GuiInfo wi, ti, bi;
964aa44f14bSMatthew Wilber 	wi.label = "alert1";
965aa44f14bSMatthew Wilber 	wi.width = 394.0f;
966aa44f14bSMatthew Wilber 	wi.height = 77.0f;
967aa44f14bSMatthew Wilber 	ati.SetWinInfo(wi);
968aa44f14bSMatthew Wilber 
969aa44f14bSMatthew Wilber 	ti.label = k60X;
970aa44f14bSMatthew Wilber 	ti.width = 329.0f;
971aa44f14bSMatthew Wilber 	ti.height = 26.0f;
972aa44f14bSMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
973aa44f14bSMatthew Wilber 	ati.SetTextViewInfo(ti);
974aa44f14bSMatthew Wilber 
975aa44f14bSMatthew Wilber 	bi.label = k20X;
976aa44f14bSMatthew Wilber 	bi.width = 160.0f;
977aa44f14bSMatthew Wilber 	bi.height = 24.0f;
978aa44f14bSMatthew Wilber 	bi.topleft.Set(62.0f, 44.0f);
979aa44f14bSMatthew Wilber 	ati.SetButtonInfo(0, bi);
980aa44f14bSMatthew Wilber 	bi.label = k20X;
981aa44f14bSMatthew Wilber 	bi.width = 160.0f;
982aa44f14bSMatthew Wilber 	bi.height = 30.0f;
983aa44f14bSMatthew Wilber 	bi.topleft.Set(228.0f, 41.0f);
984aa44f14bSMatthew Wilber 	ati.SetButtonInfo(1, bi);
985aa44f14bSMatthew Wilber 
986aa44f14bSMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
987aa44f14bSMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
988aa44f14bSMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
989aa44f14bSMatthew Wilber 
990aa44f14bSMatthew Wilber 	ati.GuiInfoTest();
991aa44f14bSMatthew Wilber }
992aa44f14bSMatthew Wilber 
993db441663SMatthew Wilber ////// LW_ES_IA - Two Button //////
994aa44f14bSMatthew Wilber 
995aa44f14bSMatthew Wilber void
empty_empty_X_LW_ES_IA()996db441663SMatthew Wilber AlertTest::empty_empty_X_LW_ES_IA()
9978ebac7a6SMatthew Wilber {
9988ebac7a6SMatthew Wilber 	AlertTestInfo ati(this);
9998ebac7a6SMatthew Wilber 	GuiInfo wi, ti, bi;
10008ebac7a6SMatthew Wilber 	wi.label = "alert1";
10018ebac7a6SMatthew Wilber 	wi.width = 310.0f;
10028ebac7a6SMatthew Wilber 	wi.height = 64.0f;
10038ebac7a6SMatthew Wilber 	ati.SetWinInfo(wi);
10048ebac7a6SMatthew Wilber 
10058ebac7a6SMatthew Wilber 	ti.label = "X";
1006db441663SMatthew Wilber 	ti.width = 245.0f;
10078ebac7a6SMatthew Wilber 	ti.height = 13.0f;
1008db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
10098ebac7a6SMatthew Wilber 	ati.SetTextViewInfo(ti);
10108ebac7a6SMatthew Wilber 
1011db441663SMatthew Wilber 	bi.label = "";
1012db441663SMatthew Wilber 	bi.width = 20.0f;
1013db441663SMatthew Wilber 	bi.height = 24.0f;
1014db441663SMatthew Wilber 	bi.topleft.Set(258.0f, 31.0f);
10158ebac7a6SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1016db441663SMatthew Wilber 	bi.label = "";
1017db441663SMatthew Wilber 	bi.width = 20.0f;
1018db441663SMatthew Wilber 	bi.height = 30.0f;
1019db441663SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
1020db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
10218ebac7a6SMatthew Wilber 
1022db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
10238ebac7a6SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1024db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
10258ebac7a6SMatthew Wilber 
10268ebac7a6SMatthew Wilber 	ati.GuiInfoTest();
10278ebac7a6SMatthew Wilber }
10288ebac7a6SMatthew Wilber 
10298ebac7a6SMatthew Wilber void
OK_Cancel_60X_LW_ES_IA()1030db441663SMatthew Wilber AlertTest::OK_Cancel_60X_LW_ES_IA()
10318ebac7a6SMatthew Wilber {
10328ebac7a6SMatthew Wilber 	AlertTestInfo ati(this);
10338ebac7a6SMatthew Wilber 	GuiInfo wi, ti, bi;
10348ebac7a6SMatthew Wilber 	wi.label = "alert1";
1035db441663SMatthew Wilber 	wi.width = 310.0f;
10368ebac7a6SMatthew Wilber 	wi.height = 77.0f;
10378ebac7a6SMatthew Wilber 	ati.SetWinInfo(wi);
10388ebac7a6SMatthew Wilber 
10398ebac7a6SMatthew Wilber 	ti.label = k60X;
1040db441663SMatthew Wilber 	ti.width = 245.0f;
10418ebac7a6SMatthew Wilber 	ti.height = 26.0f;
1042db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
10438ebac7a6SMatthew Wilber 	ati.SetTextViewInfo(ti);
10448ebac7a6SMatthew Wilber 
1045db441663SMatthew Wilber 	bi.label = "OK";
1046db441663SMatthew Wilber 	bi.width = 35.0f;
1047db441663SMatthew Wilber 	bi.height = 24.0f;
1048db441663SMatthew Wilber 	bi.topleft.Set(211.0f, 44.0f);
10498ebac7a6SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1050db441663SMatthew Wilber 	bi.label = "Cancel";
1051db441663SMatthew Wilber 	bi.width = 52.0f;
1052db441663SMatthew Wilber 	bi.height = 30.0f;
1053db441663SMatthew Wilber 	bi.topleft.Set(252.0f, 41.0f);
1054db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
10558ebac7a6SMatthew Wilber 
1056db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
10578ebac7a6SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1058db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
10598ebac7a6SMatthew Wilber 
10608ebac7a6SMatthew Wilber 	ati.GuiInfoTest();
10618ebac7a6SMatthew Wilber }
10628ebac7a6SMatthew Wilber 
1063b8544371SMatthew Wilber ////// WW_ES_IA - Two Button //////
1064b8544371SMatthew Wilber 
1065b8544371SMatthew Wilber void
empty_empty_X_WW_ES_IA()1066b8544371SMatthew Wilber AlertTest::empty_empty_X_WW_ES_IA()
1067b8544371SMatthew Wilber {
1068b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1069b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1070b8544371SMatthew Wilber 	wi.width = 310.0f;
1071b8544371SMatthew Wilber 	wi.height = 64.0f;
1072b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1073b8544371SMatthew Wilber 
1074b8544371SMatthew Wilber 	ti.label = "X";
1075b8544371SMatthew Wilber 	ti.width = 245.0f;
1076b8544371SMatthew Wilber 	ti.height = 13.0f;
1077b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1078b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1079b8544371SMatthew Wilber 
1080b8544371SMatthew Wilber 	bi.label = "";
1081b8544371SMatthew Wilber 	bi.width = 20.0f;
1082b8544371SMatthew Wilber 	bi.height = 24.0f;
1083b8544371SMatthew Wilber 	bi.topleft.Set(258.0f, 31.0f);
1084b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1085b8544371SMatthew Wilber 	bi.label = "";
1086b8544371SMatthew Wilber 	bi.width = 20.0f;
1087b8544371SMatthew Wilber 	bi.height = 30.0f;
1088b8544371SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
1089b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1090b8544371SMatthew Wilber 
1091b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1092b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1093b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1094b8544371SMatthew Wilber 
1095b8544371SMatthew Wilber 	ati.GuiInfoTest();
1096b8544371SMatthew Wilber }
1097b8544371SMatthew Wilber 
1098b8544371SMatthew Wilber void
OK_Cancel_60X_WW_ES_IA()1099b8544371SMatthew Wilber AlertTest::OK_Cancel_60X_WW_ES_IA()
1100b8544371SMatthew Wilber {
1101b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1102b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1103b8544371SMatthew Wilber 	wi.width = 310.0f;
1104b8544371SMatthew Wilber 	wi.height = 77.0f;
1105b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1106b8544371SMatthew Wilber 
1107b8544371SMatthew Wilber 	ti.label = k60X;
1108b8544371SMatthew Wilber 	ti.width = 245.0f;
1109b8544371SMatthew Wilber 	ti.height = 26.0f;
1110b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1111b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1112b8544371SMatthew Wilber 
1113b8544371SMatthew Wilber 	bi.label = "OK";
1114b8544371SMatthew Wilber 	bi.width = 52.0f;
1115b8544371SMatthew Wilber 	bi.height = 24.0f;
1116b8544371SMatthew Wilber 	bi.topleft.Set(194.0f, 44.0f);
1117b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1118b8544371SMatthew Wilber 	bi.label = "Cancel";
1119b8544371SMatthew Wilber 	bi.width = 52.0f;
1120b8544371SMatthew Wilber 	bi.height = 30.0f;
1121b8544371SMatthew Wilber 	bi.topleft.Set(252.0f, 41.0f);
1122b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1123b8544371SMatthew Wilber 
1124b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1125b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1126b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1127b8544371SMatthew Wilber 
1128b8544371SMatthew Wilber 	ati.GuiInfoTest();
1129b8544371SMatthew Wilber }
1130b8544371SMatthew Wilber 
1131b8544371SMatthew Wilber void
twentyX_Cancel_60X_WW_ES_IA()1132b8544371SMatthew Wilber AlertTest::twentyX_Cancel_60X_WW_ES_IA()
1133b8544371SMatthew Wilber {
1134b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1135b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1136b8544371SMatthew Wilber 	wi.width = 394.0f;
1137b8544371SMatthew Wilber 	wi.height = 77.0f;
1138b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1139b8544371SMatthew Wilber 
1140b8544371SMatthew Wilber 	ti.label = k60X;
1141b8544371SMatthew Wilber 	ti.width = 329.0f;
1142b8544371SMatthew Wilber 	ti.height = 26.0f;
1143b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1144b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1145b8544371SMatthew Wilber 
1146b8544371SMatthew Wilber 	bi.label = k20X;
1147b8544371SMatthew Wilber 	bi.width = 160.0f;
1148b8544371SMatthew Wilber 	bi.height = 24.0f;
1149b8544371SMatthew Wilber 	bi.topleft.Set(62.0f, 44.0f);
1150b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1151b8544371SMatthew Wilber 	bi.label = "Cancel";
1152b8544371SMatthew Wilber 	bi.width = 160.0f;
1153b8544371SMatthew Wilber 	bi.height = 30.0f;
1154b8544371SMatthew Wilber 	bi.topleft.Set(228.0f, 41.0f);
1155b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1156b8544371SMatthew Wilber 
1157b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1158b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1159b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1160b8544371SMatthew Wilber 
1161b8544371SMatthew Wilber 	ati.GuiInfoTest();
1162b8544371SMatthew Wilber }
1163b8544371SMatthew Wilber 
1164b8544371SMatthew Wilber void
twentyX_20X_WW_ES_IA()1165b8544371SMatthew Wilber AlertTest::twentyX_20X_WW_ES_IA()
1166b8544371SMatthew Wilber {
1167b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1168b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1169b8544371SMatthew Wilber 	wi.width = 394.0f;
1170b8544371SMatthew Wilber 	wi.height = 77.0f;
1171b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1172b8544371SMatthew Wilber 
1173b8544371SMatthew Wilber 	ti.label = k60X;
1174b8544371SMatthew Wilber 	ti.width = 329.0f;
1175b8544371SMatthew Wilber 	ti.height = 26.0f;
1176b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1177b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1178b8544371SMatthew Wilber 
1179b8544371SMatthew Wilber 	bi.label = k20X;
1180b8544371SMatthew Wilber 	bi.width = 160.0f;
1181b8544371SMatthew Wilber 	bi.height = 24.0f;
1182b8544371SMatthew Wilber 	bi.topleft.Set(62.0f, 44.0f);
1183b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1184b8544371SMatthew Wilber 	bi.label = k20X;
1185b8544371SMatthew Wilber 	bi.width = 160.0f;
1186b8544371SMatthew Wilber 	bi.height = 30.0f;
1187b8544371SMatthew Wilber 	bi.topleft.Set(228.0f, 41.0f);
1188b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1189b8544371SMatthew Wilber 
1190b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1191b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1192b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1193b8544371SMatthew Wilber 
1194b8544371SMatthew Wilber 	ati.GuiInfoTest();
1195b8544371SMatthew Wilber }
1196db441663SMatthew Wilber 
11978ebac7a6SMatthew Wilber ////// UW_ES_EA - Two Button //////
11988ebac7a6SMatthew Wilber 
11998ebac7a6SMatthew Wilber void
OK_Cancel_60X_UW_ES_EA()12008ebac7a6SMatthew Wilber AlertTest::OK_Cancel_60X_UW_ES_EA()
12018ebac7a6SMatthew Wilber {
12028ebac7a6SMatthew Wilber 	AlertTestInfo ati(this);
12038ebac7a6SMatthew Wilber 	GuiInfo wi, ti, bi;
12048ebac7a6SMatthew Wilber 	wi.label = "alert1";
12058ebac7a6SMatthew Wilber 	wi.width = 310.0f;
12068ebac7a6SMatthew Wilber 	wi.height = 77.0f;
12078ebac7a6SMatthew Wilber 	ati.SetWinInfo(wi);
12088ebac7a6SMatthew Wilber 
12098ebac7a6SMatthew Wilber 	ti.label = k60X;
12108ebac7a6SMatthew Wilber 	ti.width = 290.0f;
12118ebac7a6SMatthew Wilber 	ti.height = 26.0f;
12128ebac7a6SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
12138ebac7a6SMatthew Wilber 	ati.SetTextViewInfo(ti);
12148ebac7a6SMatthew Wilber 
12158ebac7a6SMatthew Wilber 	bi.label = "OK";
12168ebac7a6SMatthew Wilber 	bi.width = 75.0f;
12178ebac7a6SMatthew Wilber 	bi.height = 24.0f;
12188ebac7a6SMatthew Wilber 	bi.topleft.Set(148.0f, 44.0f);
12198ebac7a6SMatthew Wilber 	ati.SetButtonInfo(0, bi);
12208ebac7a6SMatthew Wilber 	bi.label = "Cancel";
12218ebac7a6SMatthew Wilber 	bi.width = 75.0f;
12228ebac7a6SMatthew Wilber 	bi.height = 30.0f;
12238ebac7a6SMatthew Wilber 	bi.topleft.Set(229.0f, 41.0f);
12248ebac7a6SMatthew Wilber 	ati.SetButtonInfo(1, bi);
12258ebac7a6SMatthew Wilber 
12268ebac7a6SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
12278ebac7a6SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
12288ebac7a6SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
12298ebac7a6SMatthew Wilber 
12308ebac7a6SMatthew Wilber 	ati.GuiInfoTest();
12318ebac7a6SMatthew Wilber }
12328ebac7a6SMatthew Wilber 
12338ebac7a6SMatthew Wilber void
twentyX_20X_60X_UW_ES_EA()12348ebac7a6SMatthew Wilber AlertTest::twentyX_20X_60X_UW_ES_EA()
12358ebac7a6SMatthew Wilber {
12368ebac7a6SMatthew Wilber 	AlertTestInfo ati(this);
12378ebac7a6SMatthew Wilber 	GuiInfo wi, ti, bi;
12388ebac7a6SMatthew Wilber 	wi.label = "alert1";
12398ebac7a6SMatthew Wilber 	wi.width = 349.0f;
12408ebac7a6SMatthew Wilber 	wi.height = 77.0f;
12418ebac7a6SMatthew Wilber 	ati.SetWinInfo(wi);
12428ebac7a6SMatthew Wilber 
12438ebac7a6SMatthew Wilber 	ti.label = k60X;
12448ebac7a6SMatthew Wilber 	ti.width = 329.0f;
12458ebac7a6SMatthew Wilber 	ti.height = 26.0f;
12468ebac7a6SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
12478ebac7a6SMatthew Wilber 	ati.SetTextViewInfo(ti);
12488ebac7a6SMatthew Wilber 
12498ebac7a6SMatthew Wilber 	bi.label = k20X;
12508ebac7a6SMatthew Wilber 	bi.width = 160.0f;
12518ebac7a6SMatthew Wilber 	bi.height = 24.0f;
12528ebac7a6SMatthew Wilber 	bi.topleft.Set(17.0f, 44.0f);
12538ebac7a6SMatthew Wilber 	ati.SetButtonInfo(0, bi);
12548ebac7a6SMatthew Wilber 	bi.label = k20X;
12558ebac7a6SMatthew Wilber 	bi.width = 160.0f;
12568ebac7a6SMatthew Wilber 	bi.height = 30.0f;
12578ebac7a6SMatthew Wilber 	bi.topleft.Set(183.0f, 41.0f);
12588ebac7a6SMatthew Wilber 	ati.SetButtonInfo(1, bi);
12598ebac7a6SMatthew Wilber 
12608ebac7a6SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
12618ebac7a6SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
12628ebac7a6SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
12638ebac7a6SMatthew Wilber 
12648ebac7a6SMatthew Wilber 	ati.GuiInfoTest();
12658ebac7a6SMatthew Wilber }
12668ebac7a6SMatthew Wilber 
126782cbd5d8SMatthew Wilber ////// UW_OS_IA - Two Button //////
126882cbd5d8SMatthew Wilber 
126982cbd5d8SMatthew Wilber void
OK_Cancel_60X_UW_OS_IA()127082cbd5d8SMatthew Wilber AlertTest::OK_Cancel_60X_UW_OS_IA()
127182cbd5d8SMatthew Wilber {
127282cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
127382cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
127482cbd5d8SMatthew Wilber 	wi.label = "alert";
127582cbd5d8SMatthew Wilber 	wi.width = 310.0f;
127682cbd5d8SMatthew Wilber 	wi.height = 77.0f;
127782cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
127882cbd5d8SMatthew Wilber 
127982cbd5d8SMatthew Wilber 	ti.label = k60X;
128082cbd5d8SMatthew Wilber 	ti.width = 245.0f;
128182cbd5d8SMatthew Wilber 	ti.height = 26.0f;
128282cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
128382cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
128482cbd5d8SMatthew Wilber 
128582cbd5d8SMatthew Wilber 	bi.label = "OK";
128682cbd5d8SMatthew Wilber 	bi.width = 75.0f;
128782cbd5d8SMatthew Wilber 	bi.height = 24.0f;
128882cbd5d8SMatthew Wilber 	bi.topleft.Set(55.0f, 44.0f);
128982cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
129082cbd5d8SMatthew Wilber 	bi.label = "Cancel";
129182cbd5d8SMatthew Wilber 	bi.width = 75.0f;
129282cbd5d8SMatthew Wilber 	bi.height = 30.0f;
129382cbd5d8SMatthew Wilber 	bi.topleft.Set(229.0f, 41.0f);
129482cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
129582cbd5d8SMatthew Wilber 
129682cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
129782cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
129882cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
129982cbd5d8SMatthew Wilber 
130082cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
130182cbd5d8SMatthew Wilber }
130282cbd5d8SMatthew Wilber 
130382cbd5d8SMatthew Wilber ////// LW_OS_IA - Two Button //////
130482cbd5d8SMatthew Wilber 
130582cbd5d8SMatthew Wilber void
OK_Cancel_60X_LW_OS_IA()130682cbd5d8SMatthew Wilber AlertTest::OK_Cancel_60X_LW_OS_IA()
130782cbd5d8SMatthew Wilber {
130882cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
130982cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
131082cbd5d8SMatthew Wilber 	wi.label = "alert";
131182cbd5d8SMatthew Wilber 	wi.width = 310.0f;
131282cbd5d8SMatthew Wilber 	wi.height = 77.0f;
131382cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
131482cbd5d8SMatthew Wilber 
131582cbd5d8SMatthew Wilber 	ti.label = k60X;
131682cbd5d8SMatthew Wilber 	ti.width = 245.0f;
131782cbd5d8SMatthew Wilber 	ti.height = 26.0f;
131882cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
131982cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
132082cbd5d8SMatthew Wilber 
132182cbd5d8SMatthew Wilber 	bi.label = "OK";
132282cbd5d8SMatthew Wilber 	bi.width = 35.0f;
132382cbd5d8SMatthew Wilber 	bi.height = 24.0f;
132482cbd5d8SMatthew Wilber 	bi.topleft.Set(55.0f, 44.0f);
132582cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
132682cbd5d8SMatthew Wilber 	bi.label = "Cancel";
132782cbd5d8SMatthew Wilber 	bi.width = 52.0f;
132882cbd5d8SMatthew Wilber 	bi.height = 30.0f;
132982cbd5d8SMatthew Wilber 	bi.topleft.Set(252.0f, 41.0f);
133082cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
133182cbd5d8SMatthew Wilber 
133282cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
133382cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
133482cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
133582cbd5d8SMatthew Wilber 
133682cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
133782cbd5d8SMatthew Wilber }
133882cbd5d8SMatthew Wilber 
133982cbd5d8SMatthew Wilber ////// LW_OS_EA - Two Button //////
134082cbd5d8SMatthew Wilber 
134182cbd5d8SMatthew Wilber void
twentyX_OK_60X_LW_OS_EA()134282cbd5d8SMatthew Wilber AlertTest::twentyX_OK_60X_LW_OS_EA()
134382cbd5d8SMatthew Wilber {
134482cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
134582cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
134682cbd5d8SMatthew Wilber 	wi.label = "alert";
134782cbd5d8SMatthew Wilber 	wi.width = 310.0f;
134882cbd5d8SMatthew Wilber 	wi.height = 77.0f;
134982cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
135082cbd5d8SMatthew Wilber 
135182cbd5d8SMatthew Wilber 	ti.label = k60X;
135282cbd5d8SMatthew Wilber 	ti.width = 290.0f;
135382cbd5d8SMatthew Wilber 	ti.height = 26.0f;
135482cbd5d8SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
135582cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
135682cbd5d8SMatthew Wilber 
135782cbd5d8SMatthew Wilber 	bi.label = k20X;
135882cbd5d8SMatthew Wilber 	bi.width = 160.0f;
135982cbd5d8SMatthew Wilber 	bi.height = 24.0f;
136082cbd5d8SMatthew Wilber 	bi.topleft.Set(10.0f, 44.0f);
136182cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
136282cbd5d8SMatthew Wilber 	bi.label = "OK";
136382cbd5d8SMatthew Wilber 	bi.width = 35.0f;
136482cbd5d8SMatthew Wilber 	bi.height = 30.0f;
136582cbd5d8SMatthew Wilber 	bi.topleft.Set(269.0f, 41.0f);
136682cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
136782cbd5d8SMatthew Wilber 
136882cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
136982cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
137082cbd5d8SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
137182cbd5d8SMatthew Wilber 
137282cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
137382cbd5d8SMatthew Wilber }
1374db441663SMatthew Wilber 
1375db441663SMatthew Wilber ////// UW_ES_IA - Three Button //////
1376db441663SMatthew Wilber 
1377db441663SMatthew Wilber void
twentyX_20X_20X_60X_UW_ES_IA()1378db441663SMatthew Wilber AlertTest::twentyX_20X_20X_60X_UW_ES_IA()
1379db441663SMatthew Wilber {
1380db441663SMatthew Wilber 	AlertTestInfo ati(this);
1381db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
1382db441663SMatthew Wilber 	wi.label = "alert1";
1383db441663SMatthew Wilber 	wi.width = 563.0f;
1384db441663SMatthew Wilber 	wi.height = 64.0f;
1385db441663SMatthew Wilber 	ati.SetWinInfo(wi);
1386db441663SMatthew Wilber 
1387db441663SMatthew Wilber 	ti.label = k60X;
1388db441663SMatthew Wilber 	ti.width = 498.0f;
1389db441663SMatthew Wilber 	ti.height = 13.0f;
1390db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1391db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
1392db441663SMatthew Wilber 
1393db441663SMatthew Wilber 	bi.label = k20X;
1394db441663SMatthew Wilber 	bi.width = 160.0f;
1395db441663SMatthew Wilber 	bi.height = 24.0f;
1396db441663SMatthew Wilber 	bi.topleft.Set(62.0f, 31.0f);
1397db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1398db441663SMatthew Wilber 	bi.label = k20X;
1399db441663SMatthew Wilber 	bi.width = 160.0f;
1400db441663SMatthew Wilber 	bi.height = 24.0f;
1401db441663SMatthew Wilber 	bi.topleft.Set(231.0f, 31.0f);
1402db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1403db441663SMatthew Wilber 	bi.label = k20X;
1404db441663SMatthew Wilber 	bi.width = 160.0f;
1405db441663SMatthew Wilber 	bi.height = 30.0f;
1406db441663SMatthew Wilber 	bi.topleft.Set(397.0f, 28.0f);
1407db441663SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1408db441663SMatthew Wilber 
1409db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
1410db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1411db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1412db441663SMatthew Wilber 
1413db441663SMatthew Wilber 	ati.GuiInfoTest();
1414db441663SMatthew Wilber }
1415db441663SMatthew Wilber 
1416db441663SMatthew Wilber ////// LW_ES_IA - Three Button //////
1417db441663SMatthew Wilber 
1418db441663SMatthew Wilber void
empty_empty_empty_X_LW_ES_IA()1419db441663SMatthew Wilber AlertTest::empty_empty_empty_X_LW_ES_IA()
1420db441663SMatthew Wilber {
1421db441663SMatthew Wilber 	AlertTestInfo ati(this);
1422db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
1423db441663SMatthew Wilber 	wi.label = "alert1";
1424db441663SMatthew Wilber 	wi.width = 310.0f;
1425db441663SMatthew Wilber 	wi.height = 64.0f;
1426db441663SMatthew Wilber 	ati.SetWinInfo(wi);
1427db441663SMatthew Wilber 
1428db441663SMatthew Wilber 	ti.label = "X";
1429db441663SMatthew Wilber 	ti.width = 245.0f;
1430db441663SMatthew Wilber 	ti.height = 13.0f;
1431db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1432db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
1433db441663SMatthew Wilber 
1434db441663SMatthew Wilber 	bi.label = "";
1435db441663SMatthew Wilber 	bi.width = 20.0f;
1436db441663SMatthew Wilber 	bi.height = 24.0f;
1437db441663SMatthew Wilber 	bi.topleft.Set(229.0f, 31.0f);
1438db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1439db441663SMatthew Wilber 	bi.label = "";
1440db441663SMatthew Wilber 	bi.width = 20.0f;
1441db441663SMatthew Wilber 	bi.height = 24.0f;
1442db441663SMatthew Wilber 	bi.topleft.Set(258.0f, 31.0f);
1443db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1444db441663SMatthew Wilber 	bi.label = "";
1445db441663SMatthew Wilber 	bi.width = 20.0f;
1446db441663SMatthew Wilber 	bi.height = 30.0f;
1447db441663SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
1448db441663SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1449db441663SMatthew Wilber 
1450db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
1451db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1452db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1453db441663SMatthew Wilber 
1454db441663SMatthew Wilber 	ati.GuiInfoTest();
1455db441663SMatthew Wilber }
1456db441663SMatthew Wilber 
1457db441663SMatthew Wilber void
Yes_No_Cancel_X_LW_ES_IA()1458db441663SMatthew Wilber AlertTest::Yes_No_Cancel_X_LW_ES_IA()
1459db441663SMatthew Wilber {
1460db441663SMatthew Wilber 	AlertTestInfo ati(this);
1461db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
1462db441663SMatthew Wilber 	wi.label = "alert1";
1463db441663SMatthew Wilber 	wi.width = 310.0f;
1464db441663SMatthew Wilber 	wi.height = 64.0f;
1465db441663SMatthew Wilber 	ati.SetWinInfo(wi);
1466db441663SMatthew Wilber 
1467db441663SMatthew Wilber 	ti.label = "X";
1468db441663SMatthew Wilber 	ti.width = 245.0f;
1469db441663SMatthew Wilber 	ti.height = 13.0f;
1470db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1471db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
1472db441663SMatthew Wilber 
1473db441663SMatthew Wilber 	bi.label = "Yes";
1474db441663SMatthew Wilber 	bi.width = 37.0f;
1475db441663SMatthew Wilber 	bi.height = 24.0f;
1476db441663SMatthew Wilber 	bi.topleft.Set(167.0f, 31.0f);
1477db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1478db441663SMatthew Wilber 	bi.label = "No";
1479db441663SMatthew Wilber 	bi.width = 33.0f;
1480db441663SMatthew Wilber 	bi.height = 24.0f;
1481db441663SMatthew Wilber 	bi.topleft.Set(213.0f, 31.0f);
1482db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1483db441663SMatthew Wilber 	bi.label = "Cancel";
1484db441663SMatthew Wilber 	bi.width = 52.0f;
1485db441663SMatthew Wilber 	bi.height = 30.0f;
1486db441663SMatthew Wilber 	bi.topleft.Set(252.0f, 28.0f);
1487db441663SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1488db441663SMatthew Wilber 
1489db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
1490db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1491db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1492db441663SMatthew Wilber 
1493db441663SMatthew Wilber 	ati.GuiInfoTest();
1494db441663SMatthew Wilber }
1495db441663SMatthew Wilber 
1496db441663SMatthew Wilber void
twentyX_20X_20X_60X_LW_ES_IA()1497db441663SMatthew Wilber AlertTest::twentyX_20X_20X_60X_LW_ES_IA()
1498db441663SMatthew Wilber {
1499db441663SMatthew Wilber 	AlertTestInfo ati(this);
1500db441663SMatthew Wilber 	GuiInfo wi, ti, bi;
1501db441663SMatthew Wilber 	wi.label = "alert1";
1502db441663SMatthew Wilber 	wi.width = 563.0f;
1503db441663SMatthew Wilber 	wi.height = 64.0f;
1504db441663SMatthew Wilber 	ati.SetWinInfo(wi);
1505db441663SMatthew Wilber 
1506db441663SMatthew Wilber 	ti.label = k60X;
1507db441663SMatthew Wilber 	ti.width = 498.0f;
1508db441663SMatthew Wilber 	ti.height = 13.0f;
1509db441663SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1510db441663SMatthew Wilber 	ati.SetTextViewInfo(ti);
1511db441663SMatthew Wilber 
1512db441663SMatthew Wilber 	bi.label = k20X;
1513db441663SMatthew Wilber 	bi.width = 160.0f;
1514db441663SMatthew Wilber 	bi.height = 24.0f;
1515db441663SMatthew Wilber 	bi.topleft.Set(62.0f, 31.0f);
1516db441663SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1517db441663SMatthew Wilber 	bi.label = k20X;
1518db441663SMatthew Wilber 	bi.width = 160.0f;
1519db441663SMatthew Wilber 	bi.height = 24.0f;
1520db441663SMatthew Wilber 	bi.topleft.Set(231.0f, 31.0f);
1521db441663SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1522db441663SMatthew Wilber 	bi.label = k20X;
1523db441663SMatthew Wilber 	bi.width = 160.0f;
1524db441663SMatthew Wilber 	bi.height = 30.0f;
1525db441663SMatthew Wilber 	bi.topleft.Set(397.0f, 28.0f);
1526db441663SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1527db441663SMatthew Wilber 
1528db441663SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
1529db441663SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1530db441663SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1531db441663SMatthew Wilber 
1532db441663SMatthew Wilber 	ati.GuiInfoTest();
1533db441663SMatthew Wilber }
1534db441663SMatthew Wilber 
1535b8544371SMatthew Wilber ////// WW_ES_IA - Three Button //////
1536b8544371SMatthew Wilber 
1537b8544371SMatthew Wilber void
empty_empty_empty_X_WW_ES_IA()1538b8544371SMatthew Wilber AlertTest::empty_empty_empty_X_WW_ES_IA()
1539b8544371SMatthew Wilber {
1540b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1541b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1542b8544371SMatthew Wilber 	wi.width = 310.0f;
1543b8544371SMatthew Wilber 	wi.height = 64.0f;
1544b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1545b8544371SMatthew Wilber 
1546b8544371SMatthew Wilber 	ti.label = "X";
1547b8544371SMatthew Wilber 	ti.width = 245.0f;
1548b8544371SMatthew Wilber 	ti.height = 13.0f;
1549b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1550b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1551b8544371SMatthew Wilber 
1552b8544371SMatthew Wilber 	bi.label = "";
1553b8544371SMatthew Wilber 	bi.width = 20.0f;
1554b8544371SMatthew Wilber 	bi.height = 24.0f;
1555b8544371SMatthew Wilber 	bi.topleft.Set(229.0f, 31.0f);
1556b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1557b8544371SMatthew Wilber 	bi.label = "";
1558b8544371SMatthew Wilber 	bi.width = 20.0f;
1559b8544371SMatthew Wilber 	bi.height = 24.0f;
1560b8544371SMatthew Wilber 	bi.topleft.Set(258.0f, 31.0f);
1561b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1562b8544371SMatthew Wilber 	bi.label = "";
1563b8544371SMatthew Wilber 	bi.width = 20.0f;
1564b8544371SMatthew Wilber 	bi.height = 30.0f;
1565b8544371SMatthew Wilber 	bi.topleft.Set(284.0f, 28.0f);
1566b8544371SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1567b8544371SMatthew Wilber 
1568b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1569b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1570b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1571b8544371SMatthew Wilber 
1572b8544371SMatthew Wilber 	ati.GuiInfoTest();
1573b8544371SMatthew Wilber }
1574b8544371SMatthew Wilber 
1575b8544371SMatthew Wilber void
Monkey_Dog_Cat_X_WW_ES_IA()1576b8544371SMatthew Wilber AlertTest::Monkey_Dog_Cat_X_WW_ES_IA()
1577b8544371SMatthew Wilber {
1578b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1579b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1580b8544371SMatthew Wilber 	wi.width = 310.0f;
1581b8544371SMatthew Wilber 	wi.height = 64.0f;
1582b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1583b8544371SMatthew Wilber 
1584b8544371SMatthew Wilber 	ti.label = "X";
1585b8544371SMatthew Wilber 	ti.width = 245.0f;
1586b8544371SMatthew Wilber 	ti.height = 13.0f;
1587b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1588b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1589b8544371SMatthew Wilber 
1590b8544371SMatthew Wilber 	bi.label = "Monkey";
1591b8544371SMatthew Wilber 	bi.width = 56.0f;
1592b8544371SMatthew Wilber 	bi.height = 24.0f;
1593b8544371SMatthew Wilber 	bi.topleft.Set(121.0f, 31.0f);
1594b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1595b8544371SMatthew Wilber 	bi.label = "Dog";
1596b8544371SMatthew Wilber 	bi.width = 56.0f;
1597b8544371SMatthew Wilber 	bi.height = 24.0f;
1598b8544371SMatthew Wilber 	bi.topleft.Set(186.0f, 31.0f);
1599b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1600b8544371SMatthew Wilber 	bi.label = "Cat";
1601b8544371SMatthew Wilber 	bi.width = 56.0f;
1602b8544371SMatthew Wilber 	bi.height = 30.0f;
1603b8544371SMatthew Wilber 	bi.topleft.Set(248.0f, 28.0f);
1604b8544371SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1605b8544371SMatthew Wilber 
1606b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1607b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1608b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1609b8544371SMatthew Wilber 
1610b8544371SMatthew Wilber 	ati.GuiInfoTest();
1611b8544371SMatthew Wilber }
1612b8544371SMatthew Wilber 
1613b8544371SMatthew Wilber void
X_20X_X_WW_ES_IA()1614b8544371SMatthew Wilber AlertTest::X_20X_X_WW_ES_IA()
1615b8544371SMatthew Wilber {
1616b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1617b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1618b8544371SMatthew Wilber 	wi.width = 563.0f;
1619b8544371SMatthew Wilber 	wi.height = 64.0f;
1620b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1621b8544371SMatthew Wilber 
1622b8544371SMatthew Wilber 	ti.label = "X";
1623b8544371SMatthew Wilber 	ti.width = 498.0f;
1624b8544371SMatthew Wilber 	ti.height = 13.0f;
1625b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1626b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1627b8544371SMatthew Wilber 
1628b8544371SMatthew Wilber 	bi.label = "X";
1629b8544371SMatthew Wilber 	bi.width = 160.0f;
1630b8544371SMatthew Wilber 	bi.height = 24.0f;
1631b8544371SMatthew Wilber 	bi.topleft.Set(62.0f, 31.0f);
1632b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1633b8544371SMatthew Wilber 	bi.label = k20X;
1634b8544371SMatthew Wilber 	bi.width = 160.0f;
1635b8544371SMatthew Wilber 	bi.height = 24.0f;
1636b8544371SMatthew Wilber 	bi.topleft.Set(231.0f, 31.0f);
1637b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1638b8544371SMatthew Wilber 	bi.label = "X";
1639b8544371SMatthew Wilber 	bi.width = 160.0f;
1640b8544371SMatthew Wilber 	bi.height = 30.0f;
1641b8544371SMatthew Wilber 	bi.topleft.Set(397.0f, 28.0f);
1642b8544371SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1643b8544371SMatthew Wilber 
1644b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1645b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1646b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1647b8544371SMatthew Wilber 
1648b8544371SMatthew Wilber 	ati.GuiInfoTest();
1649b8544371SMatthew Wilber }
1650b8544371SMatthew Wilber 
1651b8544371SMatthew Wilber void
Yes_No_Cancel_X_WW_ES_IA()1652b8544371SMatthew Wilber AlertTest::Yes_No_Cancel_X_WW_ES_IA()
1653b8544371SMatthew Wilber {
1654b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1655b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1656b8544371SMatthew Wilber 	wi.width = 310.0f;
1657b8544371SMatthew Wilber 	wi.height = 64.0f;
1658b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1659b8544371SMatthew Wilber 
1660b8544371SMatthew Wilber 	ti.label = "X";
1661b8544371SMatthew Wilber 	ti.width = 245.0f;
1662b8544371SMatthew Wilber 	ti.height = 13.0f;
1663b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1664b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1665b8544371SMatthew Wilber 
1666b8544371SMatthew Wilber 	bi.label = "Yes";
1667b8544371SMatthew Wilber 	bi.width = 52.0f;
1668b8544371SMatthew Wilber 	bi.height = 24.0f;
1669b8544371SMatthew Wilber 	bi.topleft.Set(133.0f, 31.0f);
1670b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1671b8544371SMatthew Wilber 	bi.label = "No";
1672b8544371SMatthew Wilber 	bi.width = 52.0f;
1673b8544371SMatthew Wilber 	bi.height = 24.0f;
1674b8544371SMatthew Wilber 	bi.topleft.Set(194.0f, 31.0f);
1675b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1676b8544371SMatthew Wilber 	bi.label = "Cancel";
1677b8544371SMatthew Wilber 	bi.width = 52.0f;
1678b8544371SMatthew Wilber 	bi.height = 30.0f;
1679b8544371SMatthew Wilber 	bi.topleft.Set(252.0f, 28.0f);
1680b8544371SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1681b8544371SMatthew Wilber 
1682b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1683b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1684b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1685b8544371SMatthew Wilber 
1686b8544371SMatthew Wilber 	ati.GuiInfoTest();
1687b8544371SMatthew Wilber }
1688b8544371SMatthew Wilber 
1689b8544371SMatthew Wilber void
twentyX_20X_20X_60X_WW_ES_IA()1690b8544371SMatthew Wilber AlertTest::twentyX_20X_20X_60X_WW_ES_IA()
1691b8544371SMatthew Wilber {
1692b8544371SMatthew Wilber 	AlertTestInfo ati(this);
1693b8544371SMatthew Wilber 	GuiInfo wi, ti, bi;
1694b8544371SMatthew Wilber 	wi.width = 563.0f;
1695b8544371SMatthew Wilber 	wi.height = 64.0f;
1696b8544371SMatthew Wilber 	ati.SetWinInfo(wi);
1697b8544371SMatthew Wilber 
1698b8544371SMatthew Wilber 	ti.label = k60X;
1699b8544371SMatthew Wilber 	ti.width = 498.0f;
1700b8544371SMatthew Wilber 	ti.height = 13.0f;
1701b8544371SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
1702b8544371SMatthew Wilber 	ati.SetTextViewInfo(ti);
1703b8544371SMatthew Wilber 
1704b8544371SMatthew Wilber 	bi.label = k20X;
1705b8544371SMatthew Wilber 	bi.width = 160.0f;
1706b8544371SMatthew Wilber 	bi.height = 24.0f;
1707b8544371SMatthew Wilber 	bi.topleft.Set(62.0f, 31.0f);
1708b8544371SMatthew Wilber 	ati.SetButtonInfo(0, bi);
1709b8544371SMatthew Wilber 	bi.label = k20X;
1710b8544371SMatthew Wilber 	bi.width = 160.0f;
1711b8544371SMatthew Wilber 	bi.height = 24.0f;
1712b8544371SMatthew Wilber 	bi.topleft.Set(231.0f, 31.0f);
1713b8544371SMatthew Wilber 	ati.SetButtonInfo(1, bi);
1714b8544371SMatthew Wilber 	bi.label = k20X;
1715b8544371SMatthew Wilber 	bi.width = 160.0f;
1716b8544371SMatthew Wilber 	bi.height = 30.0f;
1717b8544371SMatthew Wilber 	bi.topleft.Set(397.0f, 28.0f);
1718b8544371SMatthew Wilber 	ati.SetButtonInfo(2, bi);
1719b8544371SMatthew Wilber 
1720b8544371SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
1721b8544371SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
1722b8544371SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
1723b8544371SMatthew Wilber 
1724b8544371SMatthew Wilber 	ati.GuiInfoTest();
1725b8544371SMatthew Wilber }
1726b8544371SMatthew Wilber 
1727b8544371SMatthew Wilber 
1728db441663SMatthew Wilber ////// UW_ES_EA - Three Button //////
1729db441663SMatthew Wilber 
17308ebac7a6SMatthew Wilber void
twentyX_20X_20X_60X_UW_ES_EA()17318ebac7a6SMatthew Wilber AlertTest::twentyX_20X_20X_60X_UW_ES_EA()
17328ebac7a6SMatthew Wilber {
17338ebac7a6SMatthew Wilber 	AlertTestInfo ati(this);
17348ebac7a6SMatthew Wilber 	GuiInfo wi, ti, bi;
17358ebac7a6SMatthew Wilber 	wi.label = "alert1";
17368ebac7a6SMatthew Wilber 	wi.width = 518.0f;
17378ebac7a6SMatthew Wilber 	wi.height = 64.0f;
17388ebac7a6SMatthew Wilber 	ati.SetWinInfo(wi);
17398ebac7a6SMatthew Wilber 
17408ebac7a6SMatthew Wilber 	ti.label = k60X;
17418ebac7a6SMatthew Wilber 	ti.width = 498.0f;
17428ebac7a6SMatthew Wilber 	ti.height = 13.0f;
17438ebac7a6SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
17448ebac7a6SMatthew Wilber 	ati.SetTextViewInfo(ti);
17458ebac7a6SMatthew Wilber 
17468ebac7a6SMatthew Wilber 	bi.label = k20X;
17478ebac7a6SMatthew Wilber 	bi.width = 160.0f;
17488ebac7a6SMatthew Wilber 	bi.height = 24.0f;
17498ebac7a6SMatthew Wilber 	bi.topleft.Set(17.0f, 31.0f);
17508ebac7a6SMatthew Wilber 	ati.SetButtonInfo(0, bi);
17518ebac7a6SMatthew Wilber 	bi.label = k20X;
17528ebac7a6SMatthew Wilber 	bi.width = 160.0f;
17538ebac7a6SMatthew Wilber 	bi.height = 24.0f;
17548ebac7a6SMatthew Wilber 	bi.topleft.Set(186.0f, 31.0f);
17558ebac7a6SMatthew Wilber 	ati.SetButtonInfo(1, bi);
17568ebac7a6SMatthew Wilber 	bi.label = k20X;
17578ebac7a6SMatthew Wilber 	bi.width = 160.0f;
17588ebac7a6SMatthew Wilber 	bi.height = 30.0f;
17598ebac7a6SMatthew Wilber 	bi.topleft.Set(352.0f, 28.0f);
17608ebac7a6SMatthew Wilber 	ati.SetButtonInfo(2, bi);
17618ebac7a6SMatthew Wilber 
17628ebac7a6SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
17638ebac7a6SMatthew Wilber 	ati.SetButtonSpacingMode(B_EVEN_SPACING);
17648ebac7a6SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
17658ebac7a6SMatthew Wilber 
17668ebac7a6SMatthew Wilber 	ati.GuiInfoTest();
17678ebac7a6SMatthew Wilber }
1768baccf4d7SMatthew Wilber 
176982cbd5d8SMatthew Wilber ////// UW_OS_IA - Three Button //////
177082cbd5d8SMatthew Wilber 
177182cbd5d8SMatthew Wilber void
Yes_No_Cancel_60X_UW_OS_IA()177282cbd5d8SMatthew Wilber AlertTest::Yes_No_Cancel_60X_UW_OS_IA()
177382cbd5d8SMatthew Wilber {
177482cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
177582cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
177682cbd5d8SMatthew Wilber 	wi.label = "alert1";
177782cbd5d8SMatthew Wilber 	wi.width = 335.0f;
177882cbd5d8SMatthew Wilber 	wi.height = 77.0f;
177982cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
178082cbd5d8SMatthew Wilber 
178182cbd5d8SMatthew Wilber 	ti.label = k60X;
178282cbd5d8SMatthew Wilber 	ti.width = 270.0f;
178382cbd5d8SMatthew Wilber 	ti.height = 26.0f;
178482cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
178582cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
178682cbd5d8SMatthew Wilber 
178782cbd5d8SMatthew Wilber 	bi.label = "Yes";
178882cbd5d8SMatthew Wilber 	bi.width = 75.0f;
178982cbd5d8SMatthew Wilber 	bi.height = 24.0f;
179082cbd5d8SMatthew Wilber 	bi.topleft.Set(66.0f, 44.0f);
179182cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
179282cbd5d8SMatthew Wilber 	bi.label = "No";
179382cbd5d8SMatthew Wilber 	bi.width = 75.0f;
179482cbd5d8SMatthew Wilber 	bi.height = 24.0f;
179582cbd5d8SMatthew Wilber 	bi.topleft.Set(173.0f, 44.0f);
179682cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
179782cbd5d8SMatthew Wilber 	bi.label = "Cancel";
179882cbd5d8SMatthew Wilber 	bi.width = 75.0f;
179982cbd5d8SMatthew Wilber 	bi.height = 30.0f;
180082cbd5d8SMatthew Wilber 	bi.topleft.Set(254.0f, 41.0f);
180182cbd5d8SMatthew Wilber 	ati.SetButtonInfo(2, bi);
180282cbd5d8SMatthew Wilber 
180382cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
180482cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
180582cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
180682cbd5d8SMatthew Wilber 
180782cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
180882cbd5d8SMatthew Wilber }
180982cbd5d8SMatthew Wilber 
181082cbd5d8SMatthew Wilber ////// LW_OS_IA - Three Button //////
181182cbd5d8SMatthew Wilber 
181282cbd5d8SMatthew Wilber void
Yes_No_Cancel_60X_LW_OS_IA()181382cbd5d8SMatthew Wilber AlertTest::Yes_No_Cancel_60X_LW_OS_IA()
181482cbd5d8SMatthew Wilber {
181582cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
181682cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
181782cbd5d8SMatthew Wilber 	wi.label = "alert1";
181882cbd5d8SMatthew Wilber 	wi.width = 335.0f;
181982cbd5d8SMatthew Wilber 	wi.height = 77.0f;
182082cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
182182cbd5d8SMatthew Wilber 
182282cbd5d8SMatthew Wilber 	ti.label = k60X;
182382cbd5d8SMatthew Wilber 	ti.width = 270.0f;
182482cbd5d8SMatthew Wilber 	ti.height = 26.0f;
182582cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
182682cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
182782cbd5d8SMatthew Wilber 
182882cbd5d8SMatthew Wilber 	bi.label = "Yes";
182982cbd5d8SMatthew Wilber 	bi.width = 37.0f;
183082cbd5d8SMatthew Wilber 	bi.height = 24.0f;
183182cbd5d8SMatthew Wilber 	bi.topleft.Set(169.0f, 44.0f);
183282cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
183382cbd5d8SMatthew Wilber 	bi.label = "No";
183482cbd5d8SMatthew Wilber 	bi.width = 33.0f;
183582cbd5d8SMatthew Wilber 	bi.height = 24.0f;
183682cbd5d8SMatthew Wilber 	bi.topleft.Set(238.0f, 44.0f);
183782cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
183882cbd5d8SMatthew Wilber 	bi.label = "Cancel";
183982cbd5d8SMatthew Wilber 	bi.width = 52.0f;
184082cbd5d8SMatthew Wilber 	bi.height = 30.0f;
184182cbd5d8SMatthew Wilber 	bi.topleft.Set(277.0f, 41.0f);
184282cbd5d8SMatthew Wilber 	ati.SetButtonInfo(2, bi);
184382cbd5d8SMatthew Wilber 
184482cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL);
184582cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
184682cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
184782cbd5d8SMatthew Wilber 
184882cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
184982cbd5d8SMatthew Wilber }
185082cbd5d8SMatthew Wilber 
185182cbd5d8SMatthew Wilber ////// WW_OS_IA - Three Button //////
185282cbd5d8SMatthew Wilber 
185382cbd5d8SMatthew Wilber void
Monkey_Dog_Cat_60X_WW_OS_IA()185482cbd5d8SMatthew Wilber AlertTest::Monkey_Dog_Cat_60X_WW_OS_IA()
185582cbd5d8SMatthew Wilber {
185682cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
185782cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
185882cbd5d8SMatthew Wilber 	wi.label = "alert1";
185982cbd5d8SMatthew Wilber 	wi.width = 335.0f;
186082cbd5d8SMatthew Wilber 	wi.height = 77.0f;
186182cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
186282cbd5d8SMatthew Wilber 
186382cbd5d8SMatthew Wilber 	ti.label = k60X;
186482cbd5d8SMatthew Wilber 	ti.width = 270.0f;
186582cbd5d8SMatthew Wilber 	ti.height = 26.0f;
186682cbd5d8SMatthew Wilber 	ti.topleft.Set(55.0f, 6.0f);
186782cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
186882cbd5d8SMatthew Wilber 
186982cbd5d8SMatthew Wilber 	bi.label = "Monkey";
187082cbd5d8SMatthew Wilber 	bi.width = 56.0f;
187182cbd5d8SMatthew Wilber 	bi.height = 24.0f;
187282cbd5d8SMatthew Wilber 	bi.topleft.Set(123.0f, 44.0f);
187382cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
187482cbd5d8SMatthew Wilber 	bi.label = "Dog";
187582cbd5d8SMatthew Wilber 	bi.width = 56.0f;
187682cbd5d8SMatthew Wilber 	bi.height = 24.0f;
187782cbd5d8SMatthew Wilber 	bi.topleft.Set(211.0f, 44.0f);
187882cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
187982cbd5d8SMatthew Wilber 	bi.label = "Cat";
188082cbd5d8SMatthew Wilber 	bi.width = 56.0f;
188182cbd5d8SMatthew Wilber 	bi.height = 30.0f;
188282cbd5d8SMatthew Wilber 	bi.topleft.Set(273.0f, 41.0f);
188382cbd5d8SMatthew Wilber 	ati.SetButtonInfo(2, bi);
188482cbd5d8SMatthew Wilber 
188582cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST);
188682cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
188782cbd5d8SMatthew Wilber 	ati.SetAlertType(B_INFO_ALERT);
188882cbd5d8SMatthew Wilber 
188982cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
189082cbd5d8SMatthew Wilber }
189182cbd5d8SMatthew Wilber 
189282cbd5d8SMatthew Wilber ////// UW_OS_EA - Three Button //////
189382cbd5d8SMatthew Wilber 
189482cbd5d8SMatthew Wilber void
twentyX_OK_Cancel_60X_UW_OS_EA()189582cbd5d8SMatthew Wilber AlertTest::twentyX_OK_Cancel_60X_UW_OS_EA()
189682cbd5d8SMatthew Wilber {
189782cbd5d8SMatthew Wilber 	AlertTestInfo ati(this);
189882cbd5d8SMatthew Wilber 	GuiInfo wi, ti, bi;
189982cbd5d8SMatthew Wilber 	wi.label = "alert1";
190082cbd5d8SMatthew Wilber 	wi.width = 366.0f;
190182cbd5d8SMatthew Wilber 	wi.height = 77.0f;
190282cbd5d8SMatthew Wilber 	ati.SetWinInfo(wi);
190382cbd5d8SMatthew Wilber 
190482cbd5d8SMatthew Wilber 	ti.label = k60X;
190582cbd5d8SMatthew Wilber 	ti.width = 346.0f;
190682cbd5d8SMatthew Wilber 	ti.height = 26.0f;
190782cbd5d8SMatthew Wilber 	ti.topleft.Set(10.0f, 6.0f);
190882cbd5d8SMatthew Wilber 	ati.SetTextViewInfo(ti);
190982cbd5d8SMatthew Wilber 
191082cbd5d8SMatthew Wilber 	bi.label = k20X;
191182cbd5d8SMatthew Wilber 	bi.width = 160.0f;
191282cbd5d8SMatthew Wilber 	bi.height = 24.0f;
191382cbd5d8SMatthew Wilber 	bi.topleft.Set(12.0f, 44.0f);
191482cbd5d8SMatthew Wilber 	ati.SetButtonInfo(0, bi);
191582cbd5d8SMatthew Wilber 	bi.label = "OK";
191682cbd5d8SMatthew Wilber 	bi.width = 75.0f;
191782cbd5d8SMatthew Wilber 	bi.height = 24.0f;
191882cbd5d8SMatthew Wilber 	bi.topleft.Set(204.0f, 44.0f);
191982cbd5d8SMatthew Wilber 	ati.SetButtonInfo(1, bi);
192082cbd5d8SMatthew Wilber 	bi.label = "Cancel";
192182cbd5d8SMatthew Wilber 	bi.width = 75.0f;
192282cbd5d8SMatthew Wilber 	bi.height = 30.0f;
192382cbd5d8SMatthew Wilber 	bi.topleft.Set(285.0f, 41.0f);
192482cbd5d8SMatthew Wilber 	ati.SetButtonInfo(2, bi);
192582cbd5d8SMatthew Wilber 
192682cbd5d8SMatthew Wilber 	ati.SetButtonWidthMode(B_WIDTH_AS_USUAL);
192782cbd5d8SMatthew Wilber 	ati.SetButtonSpacingMode(B_OFFSET_SPACING);
192882cbd5d8SMatthew Wilber 	ati.SetAlertType(B_EMPTY_ALERT);
192982cbd5d8SMatthew Wilber 
193082cbd5d8SMatthew Wilber 	ati.GuiInfoTest();
193182cbd5d8SMatthew Wilber }
193282cbd5d8SMatthew Wilber 
1933