Merge "Accessibility Manager public API UTC tests and coverage" into devel/master
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / utc-Dali-PushButton.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include <iostream>
19 #include <stdlib.h>
20
21 // Need to override adaptor classes for toolkit test harness, so include
22 // test harness headers before dali headers.
23 #include <dali-toolkit-test-suite-utils.h>
24
25 #include <dali.h>
26 #include <dali/integration-api/events/touch-event-integ.h>
27 #include <dali-toolkit/dali-toolkit.h>
28
29 using namespace Dali;
30 using namespace Toolkit;
31
32 void utc_dali_toolkit_pushbutton_startup(void)
33 {
34   test_return_value = TET_UNDEF;
35 }
36
37 void utc_dali_toolkit_pushbutton_cleanup(void)
38 {
39   test_return_value = TET_PASS;
40 }
41
42 namespace
43 {
44
45 static bool gPushButtonSelectedState = false;
46 bool PushButtonSelected( Button button )
47 {
48   gPushButtonSelectedState = button.IsSelected();
49   return true;
50 }
51
52 static bool gPushButtonPressed = false;
53
54 static bool PushButtonPressed( Button button )
55 {
56   gPushButtonPressed = true;
57   return true;
58 }
59
60 static bool gPushButtonReleased = false;
61
62 static bool PushButtonReleased( Button button )
63 {
64   gPushButtonReleased = true;
65   return true;
66 }
67
68 const Dali::TouchPoint pointDownInside( 0, TouchPoint::Down, 240, 400 );
69 const Dali::TouchPoint pointUpInside( 0, TouchPoint::Up, 240, 400 );
70 const Dali::TouchPoint pointLeave( 0, TouchPoint::Leave, 240, 400 );
71 const Dali::TouchPoint pointEnter( 0, TouchPoint::Motion, 240, 400 );
72 const Dali::TouchPoint pointMotionOut( 0, TouchPoint::Motion, 10, 10 );
73 const Dali::TouchPoint pointDownOutside( 0, TouchPoint::Down, 10, 10 );
74 const Dali::TouchPoint pointUpOutside( 0, TouchPoint::Up, 10, 10 );
75
76 Image CreateSolidColorImage( const Vector4& color, unsigned int width, unsigned int height )
77 {
78   BufferImage imageData = BufferImage::New( width, height, Pixel::RGBA8888 );
79
80   // Create the image
81   PixelBuffer* pixbuf = imageData.GetBuffer();
82   unsigned int size = width * height;
83
84   for( size_t i = 0; i < size; i++ )
85     {
86       pixbuf[i*4+0] = 0xFF * color.r;
87       pixbuf[i*4+1] = 0xFF * color.g;
88       pixbuf[i*4+2] = 0xFF * color.b;
89       pixbuf[i*4+3] = 0xFF * color.a;
90     }
91
92   imageData.Update();
93
94   return imageData;
95 }
96
97 } //namespace
98
99 int UtcDaliPushButtonConstructorP(void)
100 {
101   TestApplication application;
102
103   PushButton button;
104
105   DALI_TEST_CHECK( !button );
106   END_TEST;
107 }
108
109 int UtcDaliPushButtonCopyConstructorP(void)
110 {
111   TestApplication application;
112
113   // Initialize an object, ref count == 1
114   PushButton button = PushButton::New();
115
116   PushButton copy( button );
117   DALI_TEST_CHECK( copy );
118   END_TEST;
119 }
120
121 int UtcDaliPushButtonAssignmentOperatorP(void)
122 {
123   TestApplication application;
124
125   PushButton button = PushButton::New();
126
127   PushButton copy( button );
128   DALI_TEST_CHECK( copy );
129
130   DALI_TEST_CHECK( button == copy );
131   END_TEST;
132 }
133
134 int UtcDaliPushButtonNewP(void)
135 {
136   TestApplication application;
137
138   PushButton button = PushButton::New();
139
140   DALI_TEST_CHECK( button );
141   END_TEST;
142 }
143
144 int UtcDaliPushButtonDownCastP(void)
145 {
146   TestApplication application;
147
148   PushButton button = PushButton::New();
149
150   BaseHandle object(button);
151
152   PushButton button2 = PushButton::DownCast( object );
153   DALI_TEST_CHECK(button2);
154
155   PushButton button3 = DownCast< PushButton >(object);
156   DALI_TEST_CHECK(button3);
157   END_TEST;
158 }
159
160 int UtcDaliPushButtonDownCastN(void)
161 {
162   TestApplication application;
163
164   BaseHandle unInitializedObject;
165
166   PushButton button1 = PushButton::DownCast( unInitializedObject );
167   DALI_TEST_CHECK( !button1 );
168
169   PushButton button2 = DownCast< PushButton >( unInitializedObject );
170   DALI_TEST_CHECK( !button2 );
171   END_TEST;
172 }
173
174 int UtcDaliPushButtonSetButtonImage(void)
175 {
176   ToolkitTestApplication application;
177   tet_infoline(" UtcDaliPushButtonSetButtonImage");
178
179   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
180   ImageActor imageActor = CreateSolidColorActor( Color::RED );
181   imageActor.SetSize( 20, 20 );
182
183   PushButton pushButton = PushButton::New();
184   Stage::GetCurrent().Add( pushButton );
185
186   application.SendNotification();
187   application.Render();
188
189   pushButton.SetSize( Vector2( 20.0f, 20.0f ) );
190   pushButton.SetButtonImage( image );
191
192   DALI_TEST_CHECK( pushButton.GetButtonImage() );
193
194   application.SendNotification();
195   application.Render();
196
197   Vector3 size = pushButton.GetCurrentSize();
198
199   DALI_TEST_EQUALS( size.width, 20.f, TEST_LOCATION );
200   DALI_TEST_EQUALS( size.height, 20.f, TEST_LOCATION );
201
202   pushButton.SetButtonImage( imageActor );
203
204   DALI_TEST_CHECK( pushButton.GetButtonImage() );
205   END_TEST;
206 }
207
208 int UtcDaliPushButtonSetBackgroundImageP(void)
209 {
210   ToolkitTestApplication application;
211   tet_infoline(" UtcDaliPushButtonSetBackgroundImageP");
212
213   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
214   ImageActor imageActor = CreateSolidColorActor( Color::RED );
215   imageActor.SetSize( 20, 20 );
216
217   PushButton pushButton = PushButton::New();
218
219   pushButton.SetBackgroundImage( image );
220
221   DALI_TEST_CHECK( pushButton.GetBackgroundImage() );
222
223   pushButton.SetBackgroundImage( imageActor );
224
225   DALI_TEST_CHECK( pushButton.GetBackgroundImage() );
226
227   END_TEST;
228 }
229
230 int UtcDaliPushButtonSetSelectedImageP(void)
231 {
232   ToolkitTestApplication application;
233   tet_infoline(" UtcDaliPushButtonSetSelectedImageP");
234
235   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
236   ImageActor imageActor = CreateSolidColorActor( Color::RED );
237   imageActor.SetSize( 20, 20 );
238
239   PushButton pushButton = PushButton::New();
240
241   pushButton.SetSelectedImage( image );
242
243   DALI_TEST_CHECK( pushButton.GetSelectedImage() );
244
245   pushButton.SetSelectedImage( imageActor );
246
247   DALI_TEST_CHECK( pushButton.GetSelectedImage() );
248
249   END_TEST;
250 }
251
252 int UtcDaliPushButtonSetSelectedBackgroundImageP(void)
253 {
254   ToolkitTestApplication application;
255   tet_infoline(" UtcDaliPushButtonSetSelectedBackgroundImageP");
256
257   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
258   ImageActor imageActor = CreateSolidColorActor( Color::RED );
259   imageActor.SetSize( 20, 20 );
260
261   PushButton pushButton = PushButton::New();
262
263   pushButton.SetSelectedBackgroundImage( image );
264
265   DALI_TEST_CHECK( pushButton.GetSelectedBackgroundImage() );
266
267   pushButton.SetSelectedBackgroundImage( imageActor );
268
269   DALI_TEST_CHECK( pushButton.GetSelectedBackgroundImage() );
270
271   END_TEST;
272 }
273
274 int UtcDaliPushButtonSetDisabledBackgroundImageP(void)
275 {
276   ToolkitTestApplication application;
277   tet_infoline(" UtcDaliPushButtonSetDisabledBackgroundImageP");
278
279   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
280   ImageActor imageActor = CreateSolidColorActor( Color::RED );
281   imageActor.SetSize( 20, 20 );
282
283   PushButton pushButton = PushButton::New();
284
285   pushButton.SetDisabledBackgroundImage( image );
286
287   DALI_TEST_CHECK( pushButton.GetDisabledBackgroundImage() );
288
289   pushButton.SetDisabledBackgroundImage( imageActor );
290
291   DALI_TEST_CHECK( pushButton.GetDisabledBackgroundImage() );
292
293   END_TEST;
294 }
295
296 int UtcDaliPushButtonSetDisabledImageP(void)
297 {
298   ToolkitTestApplication application;
299   tet_infoline(" UtcDaliPushButtonSetDisabledImageP");
300
301   Image image = CreateSolidColorImage( Color::RED, 10, 10 );
302   ImageActor imageActor = CreateSolidColorActor( Color::RED );
303   imageActor.SetSize( 20, 20 );
304
305   PushButton pushButton = PushButton::New();
306
307   pushButton.SetDisabledImage( image );
308
309   DALI_TEST_CHECK( pushButton.GetDisabledImage() );
310
311   pushButton.SetDisabledImage( imageActor );
312
313   DALI_TEST_CHECK( pushButton.GetDisabledImage() );
314
315   END_TEST;
316 }
317
318 int UtcDaliPushButtonSetGetAutoRepeating(void)
319 {
320   ToolkitTestApplication application;
321   tet_infoline(" UtcDaliPushButtonSetGetAutoRepeating");
322
323   PushButton pushButton = PushButton::New();
324
325   pushButton.SetAutoRepeating( true );
326
327   DALI_TEST_CHECK( pushButton.IsAutoRepeating() );
328
329   pushButton.SetAutoRepeating( false );
330
331   DALI_TEST_CHECK( !pushButton.IsAutoRepeating() );
332
333   pushButton.SetAutoRepeating( true );
334
335   DALI_TEST_CHECK( pushButton.IsAutoRepeating() );
336   END_TEST;
337 }
338
339 int UtcDaliPushButtonSetGetTogglableButton(void)
340 {
341   ToolkitTestApplication application;
342   tet_infoline(" UtcDaliPushButtonSetGetTogglableButton");
343
344   PushButton pushButton = PushButton::New();
345
346   pushButton.SetTogglableButton( true );
347
348   DALI_TEST_CHECK( pushButton.IsTogglableButton() );
349
350   pushButton.SetTogglableButton( false );
351
352   DALI_TEST_CHECK( !pushButton.IsTogglableButton() );
353
354   pushButton.SetTogglableButton( true );
355
356   DALI_TEST_CHECK( pushButton.IsTogglableButton() );
357   END_TEST;
358 }
359
360 int UtcDaliPushButtonSetGetAutoRepeatingAndTogglableButton(void)
361 {
362   ToolkitTestApplication application;
363   tet_infoline(" UtcDaliPushButtonSetGetAutoRepeatingAndTogglableButton");
364
365   PushButton pushButton = PushButton::New();
366
367   pushButton.SetAutoRepeating( true );
368   pushButton.SetTogglableButton( true );
369
370   DALI_TEST_CHECK( pushButton.IsTogglableButton() );
371   DALI_TEST_CHECK( !pushButton.IsAutoRepeating() );
372
373   pushButton.SetTogglableButton( true );
374   pushButton.SetAutoRepeating( true );
375
376   DALI_TEST_CHECK( pushButton.IsAutoRepeating() );
377   DALI_TEST_CHECK( !pushButton.IsTogglableButton() );
378   END_TEST;
379 }
380
381 int UtcDaliPushButtonSetGetSelected01(void)
382 {
383   ToolkitTestApplication application;
384   tet_infoline(" UtcDaliPushButtonSetGetSelected01");
385
386   PushButton pushButton = PushButton::New();
387
388   pushButton.SetTogglableButton( true );
389   pushButton.StateChangedSignal().Connect( &PushButtonSelected );
390
391   gPushButtonSelectedState = false;
392   pushButton.SetSelected( true );
393
394   DALI_TEST_CHECK( pushButton.IsSelected() );
395   DALI_TEST_CHECK( gPushButtonSelectedState );
396
397   pushButton.SetSelected( false );
398
399   DALI_TEST_CHECK( !pushButton.IsSelected() );
400   DALI_TEST_CHECK( !gPushButtonSelectedState );
401
402   pushButton.SetSelected( true );
403
404   DALI_TEST_CHECK( pushButton.IsSelected() );
405   DALI_TEST_CHECK( gPushButtonSelectedState );
406   END_TEST;
407 }
408
409 int UtcDaliPushButtonSetGetSelected02(void)
410 {
411   ToolkitTestApplication application;
412   tet_infoline(" UtcDaliPushButtonSetGetSelected02");
413
414   PushButton pushButton = PushButton::New();
415
416   pushButton.SetTogglableButton( false );
417   pushButton.StateChangedSignal().Connect( &PushButtonSelected );
418
419   gPushButtonSelectedState = false;
420   pushButton.SetSelected( true );
421
422   DALI_TEST_CHECK( !pushButton.IsSelected() );
423   DALI_TEST_CHECK( !gPushButtonSelectedState );
424
425   pushButton.SetSelected( false );
426
427   DALI_TEST_CHECK( !pushButton.IsSelected() );
428   DALI_TEST_CHECK( !gPushButtonSelectedState );
429
430   pushButton.SetSelected( true );
431
432   DALI_TEST_CHECK( !pushButton.IsSelected() );
433   DALI_TEST_CHECK( !gPushButtonSelectedState );
434   END_TEST;
435 }
436
437 int UtcDaliPushButtonSetGetAutorepeatingDelayValues01(void)
438 {
439   ToolkitTestApplication application;
440   tet_infoline(" UtcDaliPushButtonSetGetAutorepeatingDelayValues01");
441
442   PushButton pushButton = PushButton::New();
443
444   pushButton.SetAutoRepeating( true );
445
446   pushButton.SetInitialAutoRepeatingDelay( 1.f );
447   DALI_TEST_EQUALS( pushButton.GetInitialAutoRepeatingDelay(), 1.f, TEST_LOCATION );
448
449   pushButton.SetNextAutoRepeatingDelay( 1.f );
450   DALI_TEST_EQUALS( pushButton.GetNextAutoRepeatingDelay(), 1.f, TEST_LOCATION );
451   END_TEST;
452 }
453
454 int UtcDaliPushButtonSetGetAutorepeatingDelayValues02(void)
455 {
456   ToolkitTestApplication application;
457   tet_infoline(" UtcDaliPushButtonSetGetAutorepeatingDelayValues02");
458
459   PushButton pushButton = PushButton::New();
460
461   bool assert1( false );
462   bool assert2( false );
463
464   pushButton.SetAutoRepeating( true );
465
466   try
467   {
468     pushButton.SetInitialAutoRepeatingDelay( -1.f );
469   }
470   catch( Dali::DaliException& e )
471   {
472     DALI_TEST_PRINT_ASSERT( e );
473     DALI_TEST_EQUALS(e.condition, "initialAutoRepeatingDelay > 0.f", TEST_LOCATION);
474     assert1 = true;
475   }
476
477   try
478   {
479     pushButton.SetNextAutoRepeatingDelay( -1.f );
480   }
481   catch( Dali::DaliException& e )
482   {
483     DALI_TEST_PRINT_ASSERT( e );
484     DALI_TEST_EQUALS(e.condition, "nextAutoRepeatingDelay > 0.f", TEST_LOCATION);
485     assert2 = true;
486   }
487
488   DALI_TEST_CHECK( assert1 && assert2 );
489   END_TEST;
490 }
491
492 int UtcDaliPushButtonSetLabelText(void)
493 {
494   ToolkitTestApplication application;
495   tet_infoline(" UtcDaliPushButtonSetLabelText");
496
497   const std::string STR( "Hola!" );
498
499   PushButton pushButton = PushButton::New();
500
501   application.SendNotification();
502   application.Render();
503
504   pushButton.SetLabel( STR );
505
506   TextLabel label = TextLabel::DownCast( pushButton.GetLabel() );
507   DALI_TEST_CHECK( STR == label.GetProperty<std::string>( TextLabel::Property::TEXT ) );
508
509   END_TEST;
510 }
511
512 int UtcDaliPushButtonPressed(void)
513 {
514   ToolkitTestApplication application;
515   tet_infoline(" UtcDaliPushButtonPressed");
516
517   PushButton pushButton = PushButton::New();
518   pushButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
519   pushButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
520   pushButton.SetPosition( 240, 400 );
521   pushButton.SetSize( 100, 100 );
522
523   Stage::GetCurrent().Add( pushButton );
524
525   application.SendNotification();
526   application.Render();
527
528   gPushButtonPressed = false;
529
530   // connect to its touch signal
531   pushButton.PressedSignal().Connect( &PushButtonPressed );
532
533   Dali::Integration::TouchEvent eventDown;
534   eventDown.AddPoint( pointDownInside );
535
536   // flush the queue and render once
537   application.SendNotification();
538   application.Render();
539   application.ProcessEvent( eventDown );
540
541   DALI_TEST_CHECK( gPushButtonPressed );
542   END_TEST;
543 }
544
545 int UtcDaliPushButtonReleased(void)
546 {
547   ToolkitTestApplication application;
548   tet_infoline(" UtcDaliPushButtonReleased");
549
550   PushButton pushButton = PushButton::New();
551   pushButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
552   pushButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
553   pushButton.SetPosition( 240, 400 );
554   pushButton.SetSize( 100, 100 );
555
556   Stage::GetCurrent().Add( pushButton );
557
558   application.SendNotification();
559   application.Render();
560
561   // connect to its touch signal
562   pushButton.ReleasedSignal().Connect( &PushButtonReleased );
563
564   Dali::Integration::TouchEvent event;
565
566   // Test1. Touch point down and up inside the button.
567
568   gPushButtonReleased = false;
569   event = Dali::Integration::TouchEvent();
570   event.AddPoint( pointDownInside );
571   application.ProcessEvent( event );
572
573   event = Dali::Integration::TouchEvent();
574   event.AddPoint( pointUpInside );
575   application.ProcessEvent( event );
576
577   DALI_TEST_CHECK( gPushButtonReleased );
578
579   // Test2. Touch point down and up outside the button.
580
581   gPushButtonReleased = false;
582   event = Dali::Integration::TouchEvent();
583   event.AddPoint( pointDownOutside );
584   application.ProcessEvent( event );
585
586   event = Dali::Integration::TouchEvent();
587   event.AddPoint( pointUpOutside );
588   application.ProcessEvent( event );
589
590   DALI_TEST_CHECK( !gPushButtonReleased );
591
592   // Test3. Touch point down inside and up outside the button.
593
594   gPushButtonReleased = false;
595   event = Dali::Integration::TouchEvent();
596   event.AddPoint( pointDownInside );
597   application.ProcessEvent( event );
598
599   event = Dali::Integration::TouchEvent();
600   event.AddPoint( pointLeave );
601   application.ProcessEvent( event );
602
603   event = Dali::Integration::TouchEvent();
604   event.AddPoint( pointUpOutside );
605   application.ProcessEvent( event );
606
607   DALI_TEST_CHECK( gPushButtonReleased );
608
609   // Test4. Touch point down outside and up inside the button.
610
611   gPushButtonReleased = false;
612   event = Dali::Integration::TouchEvent();
613   event.AddPoint( pointDownOutside );
614   application.ProcessEvent( event );
615
616   event = Dali::Integration::TouchEvent();
617   event.AddPoint( pointEnter );
618   application.ProcessEvent( event );
619
620   event = Dali::Integration::TouchEvent();
621   event.AddPoint( pointUpInside );
622   application.ProcessEvent( event );
623
624   DALI_TEST_CHECK( !gPushButtonReleased );
625   END_TEST;
626 }
627
628 int UtcDaliPushButtonSelected(void)
629 {
630   ToolkitTestApplication application;
631   tet_infoline(" UtcDaliPushButtonSelected");
632
633   PushButton pushButton = PushButton::New();
634   pushButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
635   pushButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
636   pushButton.SetPosition( 240, 400 );
637   pushButton.SetSize( 100, 100 );
638
639   Stage::GetCurrent().Add( pushButton );
640
641   application.SendNotification();
642   application.Render();
643
644   // connect to its touch signal
645   pushButton.StateChangedSignal().Connect( &PushButtonSelected );
646
647   Dali::Integration::TouchEvent event;
648
649   // Test1. No togglable button.
650
651   gPushButtonSelectedState = false;
652   event = Dali::Integration::TouchEvent();
653   event.AddPoint( pointDownInside );
654   application.ProcessEvent( event );
655
656   event = Dali::Integration::TouchEvent();
657   event.AddPoint( pointUpInside );
658   application.ProcessEvent( event );
659
660   DALI_TEST_CHECK( !gPushButtonSelectedState );
661
662   // Set togglable property.
663   pushButton.SetTogglableButton( true );
664
665   // Test2. Touch point down and up inside the button twice.
666   gPushButtonSelectedState = false;
667   event = Dali::Integration::TouchEvent();
668   event.AddPoint( pointDownInside );
669   application.ProcessEvent( event );
670
671   event = Dali::Integration::TouchEvent();
672   event.AddPoint( pointUpInside );
673   application.ProcessEvent( event );
674
675   DALI_TEST_CHECK( gPushButtonSelectedState );
676
677   event = Dali::Integration::TouchEvent();
678   event.AddPoint( pointDownInside );
679   application.ProcessEvent( event );
680
681   event = Dali::Integration::TouchEvent();
682   event.AddPoint( pointUpInside );
683   application.ProcessEvent( event );
684
685   DALI_TEST_CHECK( !gPushButtonSelectedState );
686
687   // Test3. Touch point down and up outside the button.
688
689   gPushButtonSelectedState = false;
690   event = Dali::Integration::TouchEvent();
691   event.AddPoint( pointDownOutside );
692   application.ProcessEvent( event );
693
694   event = Dali::Integration::TouchEvent();
695   event.AddPoint( pointUpOutside );
696   application.ProcessEvent( event );
697
698   DALI_TEST_CHECK( !gPushButtonSelectedState );
699
700   // Test4. Touch point down inside and up outside the button.
701
702   gPushButtonSelectedState = false;
703   event = Dali::Integration::TouchEvent();
704   event.AddPoint( pointDownInside );
705   application.ProcessEvent( event );
706
707   event = Dali::Integration::TouchEvent();
708   event.AddPoint( pointLeave );
709   application.ProcessEvent( event );
710
711   event = Dali::Integration::TouchEvent();
712   event.AddPoint( pointUpOutside );
713   application.ProcessEvent( event );
714
715   DALI_TEST_CHECK( !gPushButtonSelectedState );
716
717   // Test5. Touch point down outside and up inside the button.
718
719   gPushButtonSelectedState = false;
720   event = Dali::Integration::TouchEvent();
721   event.AddPoint( pointDownOutside );
722   application.ProcessEvent( event );
723
724   event = Dali::Integration::TouchEvent();
725   event.AddPoint( pointEnter );
726   application.ProcessEvent( event );
727
728   event = Dali::Integration::TouchEvent();
729   event.AddPoint( pointUpInside );
730   application.ProcessEvent( event );
731
732   DALI_TEST_CHECK( !gPushButtonSelectedState );
733   END_TEST;
734 }