Revised recent patch, cleaned up internal APIs.
[platform/core/uifw/at-spi2-atk.git] / test / stress-test.c
index fdc0f8e..864b210 100644 (file)
@@ -2,7 +2,8 @@
  * AT-SPI - Assistive Technology Service Provider Interface
  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
  *
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -73,7 +74,7 @@ main (int argc, char **argv)
 
        source = spi_accessible_new (atko);
        
-       e.type = "focus:";
+       e.type = "object:test";
        e.source = BONOBO_OBJREF (source);
        e.detail1 = 0;
        e.detail2 = 0;
@@ -81,7 +82,7 @@ main (int argc, char **argv)
        timer = g_timer_new ();
        g_timer_start (timer);
 
-       for (i = 0; i < 10000; ++i) {
+       for (i = 0; i < 500; ++i) {
                Accessibility_Accessible_ref (e.source, &ev);
                Accessibility_Registry_notifyEvent (registry, &e, &ev);
        }