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

Unified Diff: dart/tests/try/firefox.applescript

Issue 535883002: Use JavaScript to detect if Selection.modify is available. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r39804 Created 6 years, 3 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
« no previous file with comments | « dart/site/try/src/settings.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/try/firefox.applescript
diff --git a/dart/tests/try/firefox.applescript b/dart/tests/try/firefox.applescript
index a7f674c4197b967c9d6e1d9c601ded98a2a3865f..d5a4c51018f6e98e32da8c3229946237b0726a5d 100644
--- a/dart/tests/try/firefox.applescript
+++ b/dart/tests/try/firefox.applescript
@@ -51,7 +51,76 @@ tell application "System Events"
-- Simulate Delete
key code 51
+ delay 0.1
+ keystroke "a" using command down
+ delay 0.2
+ keystroke "c" using command down
+
+ delay 0.2
+ set clipboardData to (the clipboard as text)
+
+ if ("main() {" is in (clipboardData as string)) then
+ error "main() { in clipboardData"
+ end if
+
+ if ("main() " is not in (clipboardData as string)) then
+ error "main() is not in clipboardData"
+ end if
+
+ keystroke "l" using command down
+ delay 0.2
+
+ keystroke "http://localhost:8080/"
+ -- Simulate Enter key.
+ key code 36
+
+ delay 5.0
+
+ keystroke "l" using command down
+ -- Simulate Tab key.
+ key code 48
+ key code 48
+ key code 48
+ key code 48
+
+ -- Simulate End key.
+ key code 119
+
+ -- Simulate Home key.
+ key code 115
+
+ -- Simulate Tab key.
+ key code 48
+
-- Simulate Cmd-Down.
- -- key code 125 using command down
+ key code 125 using command down
+
+ repeat 204 times
+ -- Simulate Delete
+ key code 51
+ end repeat
+
+ delay 5.0
+ repeat 64 times
+ -- Simulate Delete
+ key code 51
+ end repeat
+
+
+ delay 0.1
+ keystroke "a" using command down
+ delay 0.5
+ keystroke "c" using command down
+
+ delay 0.5
+ set clipboardData to (the clipboard as text)
+
+ if ("/" is not (clipboardData as string)) then
+ error "/ is not clipboardData"
+ end if
end tell
+
+tell application "Firefox" to quit
+
+display notification "Test passed" with title "Firefox test" sound name "Glass"
« no previous file with comments | « dart/site/try/src/settings.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698