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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/mouse-click-plugin-clears-selection.html

Issue 1480303002: Implement a basic PPAPI plugin for Blink layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android after https://codereview.chromium.org/1478633002 Created 5 years 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../resources/plugin.js"></script> 3 <script src="../resources/plugin.js"></script>
4 <script> 4 <script>
5 startAfterLoadAndFinish(function() { 5 startAfterLoadAndFinish(function() {
6 inputElement = document.getElementById('frame'); 6 inputElement = document.getElementById('frame');
7 inputElement.focus(); 7 inputElement.focus();
8 inputElement.select(); 8 inputElement.select();
9 9
10 if (!window.testRunner) { 10 if (!window.testRunner) {
11 output.textContent = "Test that clicking on a plugin clears the selectio n on the currently focused element. Click on the plugin; the text in the input c ontrol should no longer be highlighted. The rendertree for this test should not contain any selection information. See https://bugs.webkit.org/show_bug.cgi?id=3 0355"; 11 output.textContent = "Test that clicking on a plugin clears the selectio n on the currently focused element. Click on the plugin; the text in the input c ontrol should no longer be highlighted. The rendertree for this test should not contain any selection information. See https://bugs.webkit.org/show_bug.cgi?id=3 0355";
12 } else { 12 } else {
13 eventSender.mouseMoveTo(60, 60); 13 eventSender.mouseMoveTo(60, 60);
14 eventSender.mouseDown(); 14 eventSender.mouseDown();
15 eventSender.mouseUp(); 15 eventSender.mouseUp();
16 } 16 }
17 }); 17 });
18 </script> 18 </script>
19 </head> 19 </head>
20 <body> 20 <body>
21 <embed id="plg" type="application/x-webkit-test-netscape" width="100" height="10 0" windowedplugin="false"></embed><br> 21 <embed type="application/x-blink-test-plugin" width="100" height="100"></embed>< br>
22 <input id="frame" value="hello"/> 22 <input id="frame" value="hello"/>
23 <div id="output"></div> 23 <div id="output"></div>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698