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

Side by Side Diff: chrome_frame/test/data/context_menu.html

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>context menu</title>
4 <meta http-equiv="x-ua-compatible" content="chrome=1" />
5 <script type="text/javascript" src="chrome_frame_tester_helpers.js">
6 </script>
7 <script>
8 // Default text value used to test cut/copy/paste etc.
9 var INIT_VAL = "SomeInitializedTextValue";
10
11 // Verify the expected result based on action and post message to host.
12 function verifyTextFieldContents(event) {
13 var textField = document.getElementById("textField");
14 var selectedValue = textField.value.substring(textField.selectionStart,
15 textField.selectionEnd);
16
17 if (selectedValue == INIT_VAL) {
18 window.externalHost.postMessage("OK");
19 } else {
20 window.externalHost.postMessage("Fail");
21 }
22 }
23
24 // Do some initialization work like setting text field value,
25 // and selecting the value by default before the test starts.
26 function init() {
27 var action = getURLParameter("action");
28
29 document.getElementById("textField").value = INIT_VAL;
30 document.getElementById("textField").focus();
31 if (action != "selectall") {
32 document.getElementById("textField").select();
33 }
34
35 window.externalHost.onmessage = verifyTextFieldContents;
36 }
37 </script>
38 </head>
39
40 <body leftmargin="0" topmargin="0" onload="init()">
41 <input type="text" name="textField" id="textField" size="25" value=""></td>
42 </body>
43 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/chrome_frame_window_open_popup.html ('k') | chrome_frame/test/data/download_file.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698