Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: editor/ft/Samples.suite/Scripts/util.script

Issue 121653003: Functional test: text search, edit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/ft/Samples.suite/Scripts/util.script
diff --git a/editor/ft/Samples.suite/Scripts/util.script b/editor/ft/Samples.suite/Scripts/util.script
index 33119dc027b96a66e51e0dcb837d8e4d99ebbce7..6d26073b9ef63a409572c3c7e5221938ad3801fe 100644
--- a/editor/ft/Samples.suite/Scripts/util.script
+++ b/editor/ft/Samples.suite/Scripts/util.script
@@ -1,6 +1,11 @@
universal platform
+universal initialized
to init
+ put (@universal initialized is "initialized") into wasInitialized
+ if wasInitialized then
+ return
+ end if
put the SearchRectangle into origRect
set the SearchRectangle to ((0,0),(100,100))
if ImageFound("linux menu icon") then
@@ -15,6 +20,7 @@ to init
throw "Screen size must be 1920x1200"
end if
Set the ImageDoctor to Auto
+ put "initialized" into universal initialized
end init
to isLinux
@@ -124,6 +130,23 @@ to selectMenuItem with menuName, menuItem
set the SearchRectangle to origRect
end selectMenuItem
+to selectContextMenuItem with contextLocator, menuItem
+ selectContextImageMenuItem (Text:contextLocator,CaseSensitive:"yes",ValidCharacters:"*",IgnoreSpaces:"yes",dpi:94), menuItem
+end selectContextMenuItem
+
+to selectContextImageMenuItem with contextLocator, menuItem
+ put the SearchRectangle into origRect
+ put ImageLocation(contextLocator) into imageLocation
+ Click imageLocation
+ RightClick imageLocation (*contextLocator*)
+ put mouselocation() - (15,0) into UL
+ put UL + (500,500) into BR
+ set the SearchRectangle to (UL,BR)
+ Wait 0.1
+ Click(Text:menuItem,CaseSensitive:"yes",ValidCharacters:"*",IgnoreSpaces:"yes",dpi:94)
+ set the SearchRectangle to origRect
+end selectContextImageMenuItem
+
to closeDebugger
put ImageFound("debugger tab") into bug
if bug
@@ -209,4 +232,5 @@ end saveFile
to expandTreeNode
TypeText enter
-end expandTreeNode
+ end expandTreeNode
+
« no previous file with comments | « editor/ft/Samples.suite/Scripts/todoPolymer.script ('k') | editor/util/testing/mac/CodeLab.suite/.timestamp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698