Blob Blame History Raw
# $XConsortium: PNotebook1.scr /main/4 1995/07/17 20:05:07 drk $
# Motif
#
# Copyright (c) 1987-2012, The Open Group. All rights reserved.
#
# These libraries and programs are free software; you can
# redistribute them and/or modify them under the terms of the GNU
# Lesser General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# These libraries and programs are distributed in the hope that
# they will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with these librararies and programs; if not, write
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301 USA
# 
# 
# HISTORY


# This test demonstrates performance problems encountered with Notebook.

CompareVisual Shell1
Continue


#  A Notebook widget will appear on your screen. It will have 500 page
#  children of the type specified on the command line.

# !) /* test resize */
#  Resize the window containing the Notebook.

AutoPerformMonitor On
WindowResize Shell1 SouthEast 500 500
AutoPerformMonitor Off

# !) /* test scrolling tab */
#  Click once on the downward-pointing major tab scroller.

LocatePointer MajorTabScrollerPrevious
AutoPerformMonitor On
ClickMB Btn1
AutoPerformMonitor Off


# !) /* test flipping through pages */
#  Scroll forwards through all the pages of the Notebook using the page 
#  scroller.
#  Scroll backwards through all the pages of the Notebook using the page 
#  scroller.

LocatePointer PageScroller RIncrementBtn
AutoPerformMonitor On
ClickMB Btn1 499
AutoPerformMonitor Off



LocatePointer PageScroller RDecrementBtn
AutoPerformMonitor On
ClickMB Btn1 499
AutoPerformMonitor Off

# !) /* test clicking on major tab to go to page 100 */
#  Click on MajorTab10 to go to page 100.

LocatePointer MajorTab10
AutoPerformMonitor On
ClickMB Btn1
AutoPerformMonitor Off

# !) /* test traversing from on tab group to the next
#  Click KTab. This will move focus to MinorTab20.

AutoPerformMonitor On
ClickKey KTab
AutoPerformMonitor Off

AutoPerformMonitor On
Continue

#  The page numbers of the major tabs have been changed.

AutoPerformMonitor Off

AutoPerformMonitor On
Continue
AutoPerformMonitor Off

#  The shadow thickness of all the major tabs has been updated to 3.

Continue

Exit