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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs

Issue 1949373003: Change Range.getBoundingClientRect() when the first rect is empty (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test as per eae review Created 4 years, 7 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 | third_party/WebKit/LayoutTests/fast/dom/Range/get-bounding-client-rect-empty-and-non-empty.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs
diff --git a/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs b/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs
index bd66571f8a658a696f660d0d63f5894287b0e4a5..c5f0fa3ba5757b3a5c53b6e5c95a33f0c6829434 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs
+++ b/chrome/browser/resources/chromeos/chromevox/common/content_editable_extractor_test.unitjs
@@ -197,12 +197,12 @@ TEST_F('CvoxContentEditableExtractorUnitTest', 'WordWrap', function() {
var extractor = new cvox.ContentEditableExtractor();
extractor.update(textbox);
- assertEquals('One two three', extractor.getText());
+ assertEquals('One\ntwo\nthree', extractor.getText());
assertEquals(0, extractor.getLineStart(0));
- assertEquals(3, extractor.getLineEnd(0));
- assertEquals(3, extractor.getLineStart(1));
- assertEquals(7, extractor.getLineEnd(1));
- assertEquals(7, extractor.getLineStart(2));
+ assertEquals(4, extractor.getLineEnd(0));
+ assertEquals(4, extractor.getLineStart(1));
+ assertEquals(8, extractor.getLineEnd(1));
+ assertEquals(8, extractor.getLineStart(2));
assertEquals(13, extractor.getLineEnd(2));
// Test all possible cursor positions.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Range/get-bounding-client-rect-empty-and-non-empty.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698