os/boardsupport/haitest/bspsvs/suite/bsp/lcd/scripts/base-bsp-screen-driver-mode-automated.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
//! @file
sl@0
    17
//! @SYMTestSuiteName  BASE-BSP-SCREEN-DRIVER-MODE_AUTOMATED
sl@0
    18
//! @SYMScriptTestEnvironment This test script requires a base rom image
sl@0
    19
sl@0
    20
sl@0
    21
/////////////////////////////////////////////////////////////////////
sl@0
    22
// BASE-BSP-SCREEN-DRIVER-MODE_AUTOMATED.script
sl@0
    23
//
sl@0
    24
// Tests public LCD attributes through HAL class
sl@0
    25
// as a means of confidence that the HAI APIs work as expected.
sl@0
    26
//
sl@0
    27
// Tests are validated through HAL::Get value to check set values and some values are validated
sl@0
    28
// against Env (t_screen.ini) file
sl@0
    29
//
sl@0
    30
// The purpose is to provide a regression test suite for TDisplayHalFunction.
sl@0
    31
// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given.
sl@0
    32
// The tests are fully automated.
sl@0
    33
/////////////////////////////////////////////////////////////////////
sl@0
    34
sl@0
    35
LOAD_SUITE	T_Screen
sl@0
    36
sl@0
    37
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-AUTOMATED-0001
sl@0
    38
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-AUTOMATED-0001
sl@0
    39
//! @SYMAPI			Hal::Get(EDisplayMode)
sl@0
    40
//! @SYMAuthor			John Bower
sl@0
    41
//! @SYMCreationDate		16/06/2008
sl@0
    42
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
    43
//!				specified value in configuration file
sl@0
    44
//!				Uses API elements:
sl@0
    45
//!				HAL::Get, EDisplayMode
sl@0
    46
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
    47
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
    48
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
    49
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
    50
//!				2. Get the display Mode
sl@0
    51
//!				3. Get Screen horizontal dimension in pixels
sl@0
    52
//!				4. Get Screen vertical dimension in pixels
sl@0
    53
//!				5. Get Address of Display Memory
sl@0
    54
//!				6. Get Offset between lines
sl@0
    55
//!				7. Get Display offset to the first pixel
sl@0
    56
//!				8. Get Display Bits per pixel
sl@0
    57
//!				9. Get palettized flag
sl@0
    58
//!				10.Destroy the object
sl@0
    59
//! @SYMTestStatus		Implemented
sl@0
    60
//! @SYMTestPriority		high
sl@0
    61
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
    62
//! @SYMTestType		CIT
sl@0
    63
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
    64
		CREATE_OBJECT	LCD	lcd1
sl@0
    65
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayMode
sl@0
    66
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayXPixels
sl@0
    67
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayYPixels
sl@0
    68
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayMemoryAddress
sl@0
    69
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayOffsetBetweenLines
sl@0
    70
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayOffsetToFirstPixel
sl@0
    71
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayBitsPerPixel
sl@0
    72
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-Test-EDisplayIsPalettized
sl@0
    73
	END_TEST_BLOCK
sl@0
    74
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-AUTOMATED-0001
sl@0
    75
sl@0
    76
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_AUTOMATED-0001
sl@0
    77
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_AUTOMATED-0001
sl@0
    78
//! @SYMAPI			Hal::Get(EDisplayMode)
sl@0
    79
//! @SYMAuthor			John Bower
sl@0
    80
//! @SYMCreationDate		19/11/2007
sl@0
    81
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
    82
//!				specified value in configuration file
sl@0
    83
//!				Uses API elements:
sl@0
    84
//!				HAL::Get, EDisplayMode
sl@0
    85
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
    86
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
    87
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
    88
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
    89
//!				2. Get the display Mode
sl@0
    90
//!				3. Get Screen horizontal dimension in pixels
sl@0
    91
//!				4. Get Screen vertical dimension in pixels
sl@0
    92
//!				5. Get Address of Display Memory
sl@0
    93
//!				6. Get Offset between lines
sl@0
    94
//!				7. Get Display offset to the first pixel
sl@0
    95
//!				8. Get Display Bits per pixel
sl@0
    96
//!				9. Get palettized flag
sl@0
    97
//!				10.Destroy the object
sl@0
    98
//! @SYMTestStatus		Implemented
sl@0
    99
//! @SYMTestPriority		high
sl@0
   100
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   101
//! @SYMTestType		CIT
sl@0
   102
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   103
		CREATE_OBJECT	LCD	lcd1
sl@0
   104
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   105
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayXPixels
sl@0
   106
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayYPixels
sl@0
   107
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMemoryAddress
sl@0
   108
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayOffsetBetweenLines
sl@0
   109
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayOffsetToFirstPixel
sl@0
   110
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayBitsPerPixel
sl@0
   111
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayIsPalettized
sl@0
   112
	END_TEST_BLOCK
sl@0
   113
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_AUTOMATED-0001
sl@0
   114
sl@0
   115
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0_AUTOMATED-0001
sl@0
   116
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0_AUTOMATED-0001
sl@0
   117
//! @SYMAPI			Hal::Set(EDisplayMode)
sl@0
   118
//! @SYMAuthor			John Bower
sl@0
   119
//! @SYMCreationDate		19/11/2007
sl@0
   120
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   121
//!				specified value in configuration file and set display mode0
sl@0
   122
//!				HAL::Set, EDisplayMode
sl@0
   123
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   124
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   125
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   126
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   127
//!				2. Set the display Mode
sl@0
   128
//!				3. Get Screen horizontal dimension in pixels
sl@0
   129
//!				4. Get Screen vertical dimension in pixels
sl@0
   130
//!				5. Get Address of Display Memory
sl@0
   131
//!				6. Get Offset between lines
sl@0
   132
//!				7. Get Display offset to the first pixel
sl@0
   133
//!				8. Get Display Bits per pixel
sl@0
   134
//!				9. Get palettized flag
sl@0
   135
//!				10.Destroy the object
sl@0
   136
//! @SYMTestStatus		Implemented
sl@0
   137
//! @SYMTestPriority		high
sl@0
   138
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   139
//! @SYMTestType		CIT
sl@0
   140
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   141
		CREATE_OBJECT	LCD	lcd1
sl@0
   142
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayMode
sl@0
   143
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayXPixels
sl@0
   144
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayYPixels
sl@0
   145
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayMemoryAddress
sl@0
   146
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayOffsetBetweenLines
sl@0
   147
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayOffsetToFirstPixel
sl@0
   148
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayBitsPerPixel
sl@0
   149
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0-Test-EDisplayIsPalettized
sl@0
   150
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   151
	END_TEST_BLOCK
sl@0
   152
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE0_AUTOMATED-0001
sl@0
   153
sl@0
   154
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1_AUTOMATED-0001
sl@0
   155
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1_AUTOMATED-0001
sl@0
   156
//! @SYMAPI			Hal::Set(EDisplayMode)
sl@0
   157
//! @SYMAuthor			John Bower
sl@0
   158
//! @SYMCreationDate		19/11/2007
sl@0
   159
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   160
//!				specified value in configuration file and set display mode1
sl@0
   161
//!				HAL::Set, EDisplayMode
sl@0
   162
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   163
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   164
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   165
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   166
//!				2. Set the display Mode
sl@0
   167
//!				3. Get Screen horizontal dimension in pixels
sl@0
   168
//!				4. Get Screen vertical dimension in pixels
sl@0
   169
//!				5. Get Address of Display Memory
sl@0
   170
//!				6. Get Offset between lines
sl@0
   171
//!				7. Get Display offset to the first pixel
sl@0
   172
//!				8. Get Display Bits per pixel
sl@0
   173
//!				9. Get palettized flag
sl@0
   174
//!				10.Destroy the object
sl@0
   175
//! @SYMTestStatus		Implemented
sl@0
   176
//! @SYMTestPriority		high
sl@0
   177
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   178
//! @SYMTestType		CIT
sl@0
   179
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   180
		CREATE_OBJECT	LCD	lcd1
sl@0
   181
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayMode
sl@0
   182
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayXPixels
sl@0
   183
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayYPixels
sl@0
   184
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayMemoryAddress
sl@0
   185
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayOffsetBetweenLines
sl@0
   186
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayOffsetToFirstPixel
sl@0
   187
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayBitsPerPixel
sl@0
   188
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1-Test-EDisplayIsPalettized
sl@0
   189
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   190
	END_TEST_BLOCK
sl@0
   191
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE1_AUTOMATED-0001
sl@0
   192
sl@0
   193
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2_AUTOMATED-0001
sl@0
   194
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2_AUTOMATED-0001
sl@0
   195
//! @SYMAPI			Hal::Set(EDisplayMode)
sl@0
   196
//! @SYMAuthor			John Bower
sl@0
   197
//! @SYMCreationDate		19/11/2007
sl@0
   198
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   199
//!				specified value in configuration file and set display mode2
sl@0
   200
//!				HAL::Set, EDisplayMode
sl@0
   201
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   202
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   203
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   204
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   205
//!				2. Set the display Mode
sl@0
   206
//!				3. Get Screen horizontal dimension in pixels
sl@0
   207
//!				4. Get Screen vertical dimension in pixels
sl@0
   208
//!				5. Get Address of Display Memory
sl@0
   209
//!				6. Get Offset between lines
sl@0
   210
//!				7. Get Display offset to the first pixel
sl@0
   211
//!				8. Get Display Bits per pixel
sl@0
   212
//!				9. Get palettized flag
sl@0
   213
//!				10.Destroy the object
sl@0
   214
//! @SYMTestStatus		Implemented
sl@0
   215
//! @SYMTestPriority		high
sl@0
   216
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   217
//! @SYMTestType		CIT
sl@0
   218
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   219
		CREATE_OBJECT	LCD	lcd1
sl@0
   220
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayMode
sl@0
   221
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayXPixels
sl@0
   222
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayYPixels
sl@0
   223
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayMemoryAddress
sl@0
   224
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayOffsetBetweenLines
sl@0
   225
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayOffsetToFirstPixel
sl@0
   226
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayBitsPerPixel
sl@0
   227
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2-Test-EDisplayIsPalettized
sl@0
   228
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   229
	END_TEST_BLOCK
sl@0
   230
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE2_AUTOMATED-0001
sl@0
   231
sl@0
   232
sl@0
   233
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3_AUTOMATED-0001
sl@0
   234
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3_AUTOMATED-0001
sl@0
   235
//! @SYMAPI			Hal::Set(EDisplayMode)
sl@0
   236
//! @SYMAuthor			John Bower
sl@0
   237
//! @SYMCreationDate		19/11/2007
sl@0
   238
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   239
//!				specified value in configuration file and set display mode3
sl@0
   240
//!				HAL::Set, EDisplayMode
sl@0
   241
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   242
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   243
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   244
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   245
//!				2. Set the display Mode
sl@0
   246
//!				3. Get Screen horizontal dimension in pixels
sl@0
   247
//!				4. Get Screen vertical dimension in pixels
sl@0
   248
//!				5. Get Address of Display Memory
sl@0
   249
//!				6. Get Offset between lines
sl@0
   250
//!				7. Get Display offset to the first pixel
sl@0
   251
//!				8. Get Display Bits per pixel
sl@0
   252
//!				9. Get palettized flag
sl@0
   253
//!				10.Destroy the object
sl@0
   254
//! @SYMTestStatus		Implemented
sl@0
   255
//! @SYMTestPriority		high
sl@0
   256
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   257
//! @SYMTestType		CIT
sl@0
   258
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   259
		CREATE_OBJECT	LCD	lcd1
sl@0
   260
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayMode
sl@0
   261
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayXPixels
sl@0
   262
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayYPixels
sl@0
   263
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayMemoryAddress
sl@0
   264
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayOffsetBetweenLines
sl@0
   265
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayOffsetToFirstPixel
sl@0
   266
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayBitsPerPixel
sl@0
   267
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3-Test-EDisplayIsPalettized
sl@0
   268
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   269
	END_TEST_BLOCK
sl@0
   270
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE3_AUTOMATED-0001
sl@0
   271
sl@0
   272
sl@0
   273
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4_AUTOMATED-0001
sl@0
   274
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4_AUTOMATED-0001
sl@0
   275
//! @SYMAPI			Hal::Set(EDisplayMode)
sl@0
   276
//! @SYMAuthor			John Bower
sl@0
   277
//! @SYMCreationDate		19/11/2007
sl@0
   278
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   279
//!				specified value in configuration file and set display mode4
sl@0
   280
//!				HAL::Set, EDisplayMode
sl@0
   281
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   282
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   283
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   284
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   285
//!				2. Set the display Mode
sl@0
   286
//!				3. Get Screen horizontal dimension in pixels
sl@0
   287
//!				4. Get Screen vertical dimension in pixels
sl@0
   288
//!				5. Get Address of Display Memory
sl@0
   289
//!				6. Get Offset between lines
sl@0
   290
//!				7. Get Display offset to the first pixel
sl@0
   291
//!				8. Get Display Bits per pixel
sl@0
   292
//!				9. Get palettized flag
sl@0
   293
//!				10.Destroy the object
sl@0
   294
//! @SYMTestStatus		Implemented
sl@0
   295
//! @SYMTestPriority		high
sl@0
   296
//! @SYMTestExpectedResults  	Red colour on the screen.
sl@0
   297
//! @SYMTestType		CIT
sl@0
   298
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   299
		CREATE_OBJECT	LCD	lcd1
sl@0
   300
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayMode
sl@0
   301
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayXPixels
sl@0
   302
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayYPixels
sl@0
   303
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayMemoryAddress
sl@0
   304
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayOffsetBetweenLines
sl@0
   305
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayOffsetToFirstPixel
sl@0
   306
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayBitsPerPixel
sl@0
   307
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4-Test-EDisplayIsPalettized
sl@0
   308
		COMMAND		lcd1	Set			BASE-BSP-SCREEN-DRIVER-SCREEN0-Test-EDisplayMode
sl@0
   309
	END_TEST_BLOCK
sl@0
   310
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN0_MODE4_AUTOMATED-0001
sl@0
   311
sl@0
   312
sl@0
   313
START_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN1_AUTOMATED-0001
sl@0
   314
//! @SYMTestCaseID		BASE-BSP-SCREEN-DRIVER-SCREEN1_AUTOMATED-0001
sl@0
   315
//! @SYMAPI			Hal::Get(EDisplayMode)
sl@0
   316
//! @SYMAuthor			John Bower			
sl@0
   317
//! @SYMCreationDate		16/06/2008
sl@0
   318
//! @SYMTestCaseDesc		Verify Memory Address - Attain memory address of video and verify it is the same as 
sl@0
   319
//!				specified value in configuration file
sl@0
   320
//!				Uses API elements:
sl@0
   321
//!				HAL::Get, EDisplayMode
sl@0
   322
//!				HAL::Get, EDisplayHalSetMode, EDisplayXPixels, EDisplayYPixels
sl@0
   323
//!					EDisplayMemoryAddress, EDisplayOffsetBetweenLines, EDisplayOffsetToFirstPixel
sl@0
   324
//!					EDisplayBitsPerPixel, EDisplayIsPalettized
sl@0
   325
//! @SYMTestActions    		1. Create Hal Handle object.
sl@0
   326
//!				2. Get the display Mode
sl@0
   327
//!				3. Get Screen horizontal dimension in pixels
sl@0
   328
//!				4. Get Screen vertical dimension in pixels
sl@0
   329
//!				5. Get Address of Display Memory
sl@0
   330
//!				6. Get Offset between lines
sl@0
   331
//!				7. Get Display offset to the first pixel
sl@0
   332
//!				8. Get Display Bits per pixel
sl@0
   333
//!				9. Get palettized flag
sl@0
   334
//!				10.Destroy the object
sl@0
   335
//! @SYMTestStatus		Implemented
sl@0
   336
//! @SYMTestPriority		high
sl@0
   337
//! @SYMTestExpectedResults  	Memory address from configuration file matches the one attained through HAL::GET
sl@0
   338
//! @SYMTestType		CIT
sl@0
   339
	START_TEST_BLOCK	100	T_Screen		\base\screen\BASE-BSP-SCREEN-DRIVER-MODE.ini
sl@0
   340
		CREATE_OBJECT	LCD	lcd1
sl@0
   341
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayMode
sl@0
   342
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayXPixels
sl@0
   343
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayYPixels
sl@0
   344
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayMemoryAddress
sl@0
   345
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayOffsetBetweenLines
sl@0
   346
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayOffsetToFirstPixel
sl@0
   347
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayBitsPerPixel
sl@0
   348
		COMMAND		lcd1	Get			BASE-BSP-SCREEN-DRIVER-SCREEN1-Test-EDisplayIsPalettized
sl@0
   349
	END_TEST_BLOCK
sl@0
   350
END_TESTCASE 			BASE-BSP-SCREEN-DRIVER-SCREEN1_AUTOMATED-0001
sl@0
   351
sl@0
   352