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

Unified Diff: third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html

Issue 1451103005: Revert "Remove obsolete LTR scrollbar padding hack." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated expectations. Created 5 years, 1 month 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
Index: third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html
diff --git a/third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html b/third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html
index cd22d465a092327794ea55fc45190609e941abcf..21a5ce1661515cfcdeec6f58359c352bb97c9786 100644
--- a/third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html
+++ b/third_party/WebKit/LayoutTests/editing/input/editable-container-with-word-wrap-normal.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
<html>
<head>
<title> Testcase for bug https://bugs.webkit.org/show_bug.cgi?id=89649 </title>
@@ -16,7 +16,7 @@
<script>
function runTest() {
description('Testcase for bug <a href="http://www.webkit.org/b/89649">http://www.webkit.org/b/89649</a>. \
-The test case checks if caret is drawn properly (especially scrolls properly) inside a editable container having word-wrap:normal.');
+The test case checks if caret is drawn properly(especially scrolls properly) inside a editable container having word-wrap:normal.');
editableContainer = document.getElementById('test');
editableContainer.focus();
@@ -38,9 +38,9 @@ The test case checks if caret is drawn properly (especially scrolls properly) in
debug('<br>Final caret rect is calculated by following constraints');
debug('1) ScrollWidth = text content width + caret width');
- debug('2) Caret rect is always within container bounding box (thus subtracting the scroll left)');
- shouldBe("startCaretRect.left + editableContainer.scrollWidth - editableContainer.scrollLeft", "finalCaretRect.right");
-
+ debug('2) Caret rect is always within container bounding box (thus substracting the scroll left)');
+ shouldBe("startCaretRect.left + editableContainer.scrollWidth - editableContainer.scrollLeft - caretWidth", "finalCaretRect.right");
+
document.body.removeChild(editableContainer);
isSuccessfullyParsed();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698