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

Side by Side Diff: chrome/test/data/android/contextualsearch/tap_test.html

Issue 1354763003: [Contextual Search] Trigger the translation one-box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment about test infrastructure needing to be updated when shifting to new API. Created 5 years, 1 month 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/android/java/src/org/chromium/ui/UiUtils.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, user-scalable=no"> 5 <meta name="viewport" content="width=device-width, user-scalable=no">
6 <title>Tap Handled Test</title> 6 <title>Tap Handled Test</title>
7 <style> 7 <style>
8 #static, 8 #static,
9 #editable, 9 #editable,
10 #consumes, 10 #consumes,
11 #ignores { 11 #ignores {
12 border: 1px solid black; 12 border: 1px solid black;
13 height: 30px; 13 height: 30px;
14 } 14 }
15 </style> 15 </style>
16 </head> 16 </head>
17 <body> 17 <body>
18 <span id="static">Static text</span><br> 18 <span id="static">Static text</span><br>
19 <input id="editable" type="text" value="Editable Text"> 19 <input id="editable" type="text" value="Editable Text">
20 <div id="consumes">Consumes clicks</div> 20 <div id="consumes">Consumes clicks</div>
21 <div id="ignores">Ignores clicks</div> 21 <div id="ignores">Ignores clicks</div>
22 <div>United States <span id="intelligence">Intelligence</span></div> 22 <div>United States <span id="intelligence">Intelligence</span></div>
23 <div>United <span id="states">States</span> Intelligence</div> 23 <div>United <span id="states">States</span> Intelligence</div>
24 <div>United <span id="states-near">StatesNear</span> Intelligence</div> 24 <div>United <span id="states-near">StatesNear</span> Intelligence</div>
25 <!-- These three spans should be close to each other so that taps from one to 25 <!-- These three spans should be close to each other so that taps from one to
26 to the next are within our "near" threshold. --> 26 to the next are within our "near" threshold. -->
27 <div><span id="search">Search</span> <span id="term">Term</span> <span id="res olution">Resolution</span></div> 27 <div><span id="search">Search</span> <span id="term">Term</span> <span id="res olution">Resolution</span></div>
28 <!-- This element is used to trigger language translation. -->
29 <div><span id="german">Deutsche</span></div>
28 <form action="demo_form.asp"> 30 <form action="demo_form.asp">
29 <label for="male">Male</label> 31 <label for="male">Male</label>
30 <input type="radio" name="sex" id="male" value="male"><br> 32 <input type="radio" name="sex" id="male" value="male"><br>
31 <label for="female">Female</label> 33 <label for="female">Female</label>
32 <input type="radio" name="sex" id="female" value="female"><br> 34 <input type="radio" name="sex" id="female" value="female"><br>
33 <input type="checkbox" name="checkbox" id="checkbox_id" value="value"> 35 <input type="checkbox" name="checkbox" id="checkbox_id" value="value">
34 <label for="checkbox_id">Checkbox</label> 36 <label for="checkbox_id">Checkbox</label>
35 <br> 37 <br>
36 <input id="button" type="button" value="Button"><br> 38 <input id="button" type="button" value="Button"><br>
37 </form> 39 </form>
(...skipping 12 matching lines...) Expand all
50 <div>United States Intelligence</div> 52 <div>United States Intelligence</div>
51 <script> 53 <script>
52 function consume(e) { 54 function consume(e) {
53 console.log('consuming event ' + e.type); 55 console.log('consuming event ' + e.type);
54 e.preventDefault(); 56 e.preventDefault();
55 } 57 }
56 document.getElementById('consumes').addEventListener('mousedown', consume); 58 document.getElementById('consumes').addEventListener('mousedown', consume);
57 </script> 59 </script>
58 </body> 60 </body>
59 </html> 61 </html>
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/android/java/src/org/chromium/ui/UiUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698