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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/line-for-index-endless-loop.html

Issue 1548403002: Avoid endless loop when computing line boundaries in contentEditable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <style>
6 .hideAllContainers .container {
7 display: none;
8 }
9 </style>
10
11 <div class="container" id="contentEditable" contentEditable>
12 <span style="display: inline-block;">
13 <span style="position: absolute;">
14 <span>x</span>
15 </span>
16 <span>2</span>
17 <span style="display: inline-block;"></span>
18 </span>
19 <span>+</span>
20 </div>
21
22 <script>
23 test(function(t) {
24 var axContentEditable = accessibilityController.accessibleElementById("conte ntEditable");
25 assert_equals(axContentEditable.lineForIndex(0), 0);
26 }, "No endless loop when getting line for index in contentEditable");
27 </script>
28
29 <script>
30 if (window.testRunner)
31 document.body.className = "hideAllContainers";
32 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698