blob: 1d77504e2384aafc4843bed5a49088c507af92cd [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ymiyse5IEeCU6db9MgIBkA,__2fEACC3EeGpvKMy1SUvBw
Element-Name: Coloring Comments in Script Viewer
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _Lpfx8CoiEeGt8qLIdTb92A
Runtime-Version: 1.5.2.qualifier
Save-Time: 8/19/14 5:16 PM
Tags: ECL_IDE_module, TestCase, skipExecution
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Copyright (c) 2009, 2014 Xored Software Inc and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Xored Software Inc - initial creation and/or initial documentation
--------------------------------------------------------------------------------
Pre-conditions:
Q7 Project with test case
Test Steps:
1. Open test-case
2. Enter "//" in the start of line
3. Make sure that color of text is changed
4. Enter "//" in the middle of line
5. Make sure that color of test in changed
6. Set comment on the several lines
7. Make sure that color of several lines is changed
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Test Explorer" | get-tree | select "MyProject/WorkspaceIsEmpty" | double-click
with [get-editor WorkspaceIsEmpty | get-section Script | get-text-viewer] {
set-caret-pos 1 37
type-text "//"
}
with [get-editor WorkspaceIsEmpty | get-section Script | get-editbox] {
get-property text
| equals "get-view \"Q7 Explorer\" | get-tree | //get-property itemCount | equals 0 | verify-true" | verify-true
get-property "styles.text" -index 4 | equals "get-tree" | verify-true
get-property "styles.fontStyle" -index 4 | equals bold | verify-true
get-property "styles.foregroundColor" -index 4 | equals "#7F0055" | verify-true
get-property "styles.text" -index 5 | equals " | " | verify-true
get-property "styles.fontStyle" -index 5 | equals normal | verify-true
get-property "styles.foregroundColor" -index 5 | equals "#000000" | verify-true
get-property "styles[6].text" | equals " " | verify-true
get-property "styles[6].foregroundColor" | equals "#000000" | verify-true
get-property "styles[6].underlineColor" | equals "#FF0080" | verify-true
get-property "styles[7].text" | equals "//get-property itemCount | equals 0 | verify-true" | verify-true
get-property "styles[7].foregroundColor" | equals "#3F7F5F" | verify-true
}
with [get-editor WorkspaceIsEmpty | get-section Script | get-text-viewer] {
set-caret-pos 1 75
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "MyProject/CreateQ7Project" | double-click
with [get-editor CreateQ7Project | get-section Script] {
with [get-canvas] {
mouse-press 24 53 button1
mouse-release 24 53 button1 524288
}
with [get-text-viewer] {
set-caret-pos 4 1
type-text "//"
key-type "M1+s"
}
}
with [get-editor CreateQ7Project | get-section Script | get-editbox] {
get-property "styles.text" -index 27 | equals " Project\n" | verify-true
get-property "styles.fontStyle" -index 27 | equals normal | verify-true
get-property "styles.foregroundColor" -index 27 | equals "#000000" | verify-true
get-property "styles.text" -index 28 | equals "// get-button Finish | click\n" | verify-true
get-property "styles.fontStyle" -index 28 | equals normal | verify-true
get-property "styles.foregroundColor" -index 28 | equals "#3F7F5F" | verify-true
get-property "styles.text" -index 29 | equals "}\n" | verify-true
get-property "styles.fontStyle" -index 29 | equals normal | verify-true
get-property "styles.foregroundColor" -index 29 | equals "#000000" | verify-true
}
get-view "Test Explorer" | get-tree | select "MyProject/P1 is left" | double-click
with [get-editor "P1 is left" | get-section Script | get-text-viewer] {
set-caret-pos 1 1
key-type Enter
key-type Up
type-text "/*"
set-caret-pos 5 2
key-type Enter
type-text "*/"
key-type "M1+s"
}
with [get-editor "P1 is left" | get-section Script | get-editbox] {
get-property text | equals "/*\n"
+ "with [get-view \"Q7 Explorer\" | get-tree] {\n"
+ " get-item \"P1\"\n"
+ " \n}\n"
+ "*/\n"
+ "get-view \"Q7 Explorer\" | get-tree | get-property itemCount | equals 1 | verify-true" | verify-true
get-property "styles.text" -index 0 | equals "/*\n"
+ "with [get-view \"Q7 Explorer\" | get-tree] {\n"
+ " get-item \"P1\"\n"
+ " \n}\n"
+ "*/\n" | verify-true
get-property "styles.fontStyle" -index 0 | equals normal | verify-true
get-property "styles.foregroundColor" -index 0 | equals "#3F7F5F" | verify-true
get-property "styles.text" -index 1 | equals "get-view" | verify-true
get-property "styles.fontStyle" -index 1 | equals bold | verify-true
get-property "styles.foregroundColor" -index 1 | equals "#7F0055" | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--