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

Unified Diff: chrome/test/data/chromedriver/multiline.html

Issue 872883002: [chromedriver] Generate as much filler text as needed for testMoveToElementAndClick (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multiline-mac
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/chromedriver/multiline.html
diff --git a/chrome/test/data/chromedriver/multiline.html b/chrome/test/data/chromedriver/multiline.html
index f85d3e86b543ed85e6595da83815ca5ff5b493be..13f05bcae31e1895a54dff45a5609b61b416e863 100644
--- a/chrome/test/data/chromedriver/multiline.html
+++ b/chrome/test/data/chromedriver/multiline.html
@@ -5,12 +5,20 @@
<title>A multi-line link</title>
</head>
<body>
- <p style="max-width: 15em">
- mmmmmmmmmmm <a href="#top">mmmmmm mmmmmm</a> mmmmmmmmmmm
- </p>
<p>
This test page contains a link that spans two lines.
The center of the bounding box of the link is not inside the link element.
</p>
+ <p style="max-width: 15em">
+ <span id="filler"></span>
+ <a href="#top">a link</a>
+ </p>
+ <script>
+ var filler = document.getElementById('filler');
+ var link = document.getElementsByTagName('a')[0];
+ do {
+ filler.innerHTML += 'x';
+ } while (link.getClientRects().length < 2);
+ </script>
</body>
</html>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698