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

Side by Side Diff: Tools/TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html

Issue 13602008: Remove non-chromium code from TestWebKitAPI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 <!DOCTYPE html>
2 <script>
3 function textFieldContainsSpace()
4 {
5 return document.querySelector("input").value === " ";
6 }
7
8 function blurTextField()
9 {
10 document.querySelector("input").blur();
11 }
12
13 function isDocumentScrolled()
14 {
15 return scrollY !== 0;
16 }
17
18 function loaded()
19 {
20 document.querySelector("input").focus();
21 }
22
23 addEventListener("load", loaded);
24 </script>
25 <input>
26 <div style="height: 3000px;"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698