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/selection/modify_move/move_backward_line_import_crash.html

Issue 2084913005: Revert of Make previousLinePosition() not to use dangling RootInlineBox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/selection/modify_move/move_backward_line_import_crash.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/modify_move/move_backward_line_import_crash.html b/third_party/WebKit/LayoutTests/editing/selection/modify_move/move_backward_line_import_crash.html
deleted file mode 100644
index b1ccd247a95bfb5afae6787ca38fb8f5bd3764bf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/modify_move/move_backward_line_import_crash.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!doctype html>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<div id="sample"></div>
-<div id="log"></div>
-<script>
-test(() => {
- var sample = document.getElementById('sample');
- sample.innerHTML = '<select><option>1</option></select><style>@import url(-)</style>';
- // Mark tree dirty
- document.body.appendChild(sample);
- // Force layout
- sample.offsetHeight;
-
- var importElement = document.createElement('link');
- importElement.setAttribute('rel', 'import');
- sample.appendChild(importElement);
-
- var selection = window.getSelection();
- selection.collapse(sample, 1);
- selection.modify('move', 'backward', 'line');
-
- assert_equals(selection.anchorNode, sample, 'anchorNode');
- assert_equals(selection.anchorOffset, 0, 'anchorOffset');
- assert_equals(selection.focusNode, sample, 'focusNode');
- assert_equals(selection.focusOffset, 0, 'focusOffset');
-}, 'move backward line should not crash with link/import');
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698