blob: 9300eae3c6ccd7cc16c45ff893175b5bb1dfe059 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _ymiyse5IEeCU6db9MgIBkA,_IeEQkPSUEeCE1L2j6bYoFw
Element-Name: FilterSearchContextByTag
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _uNkP0PVlEeCsI4NSS6tu2Q
Q7-Runtime-Version: 1.5.0.201406131029
Save-Time: 6/13/14 7:10 PM
Tags: skipMacOS, SearchReplace, Context, Tags
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
--------------------------------------------------------------------------------
TEST STEPS
1. Enter "ag" in Filter Searh field;
2. Make sure that all contexts are displayed;
3. Type "tag1";
4. Make sure that context with tag1 tag is displayed only.
------=_.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 "Q7Project/DebugContext" | double-click -nowait
with [get-editor DebugContext | get-editbox -after [get-label "Tags:"]] {
set-text tag1
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "Q7Project/EclContext" | double-click -nowait
with [get-editor EclContext | get-editbox -after [get-label "Tags:"]] {
set-text tag2
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "Q7Project/GroupContext" | double-click -nowait
with [get-editor GroupContext | get-editbox -after [get-label "Tags:"]] {
set-text tag3
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "Q7Project/PreferenceContext" | double-click -nowait
with [get-editor PreferenceContext | get-editbox -after [get-label "Tags:"]] {
set-text tag4
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "Q7Project/WorkbenchContext" | double-click -nowait
with [get-editor WorkbenchContext | get-editbox -after [get-label "Tags:"]] {
set-text tag5
key-type "M1+s"
}
get-view "Test Explorer" | get-tree | select "Q7Project/WorkspaceContext" | double-click -nowait
with [get-editor WorkspaceContext | get-editbox -after [get-label "Tags:"]] {
set-text tag6
key-type "M1+s"
}
get-view "Test Explorer" | get-editbox | set-text tag
with [get-view "Test Explorer" | get-tree] {
get-property itemCount | equals 1 | verify-true
get-item Q7Project | get-property childCount | equals 6 | verify-true
get-item "Q7Project/DebugContext" | get-property caption | equals DebugContext | verify-true
get-item "Q7Project/EclContext" | get-property caption | equals EclContext | verify-true
get-item "Q7Project/GroupContext" | get-property caption | equals GroupContext | verify-true
get-item "Q7Project/PreferenceContext" | get-property caption | equals PreferenceContext | verify-true
get-item "Q7Project/WorkbenchContext" | get-property caption | equals WorkbenchContext | verify-true
get-item "Q7Project/WorkspaceContext" | get-property caption | equals WorkspaceContext | verify-true
}
get-view "Test Explorer" | get-editbox | set-text tag1
with [get-view "Test Explorer" | get-tree] {
get-item "Q7Project/DebugContext" | get-property caption | equals DebugContext | verify-true
get-item Q7Project | get-property childCount | equals 1 | verify-true
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--