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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002.html

Issue 2535173009: Convert editing/selection/extend-by-word-002.html with assert_selection (Closed)
Patch Set: Add platform-dependent test results Created 4 years 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/editing/selection/extend-by-word-002-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002.html b/third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002.html
deleted file mode 100644
index 8dae6a97d82a9c5ba66b31e3163690835e8584d0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<html>
-<head>
-
-<style>
-.editing {
- border: 2px solid red;
- padding: 12px;
- font-size: 24px;
-}
-.cell {
- padding: 12px;
- font-size: 24px;
- height: 48px;
-}
-
-li {
- font-size: 12px;
- font-family: Verdana, Arial, sans-serif;
-}
-
-div.nav {
- width:120px;
- }
-
-ul.menu, ul.menu li {
- margin: 0;padding:0;
- font-size:10px
- }
-ul.menu li { padding: 3px; padding-left: 1.6em; padding-right:5px; text-indent: -1.1em !important; text-indent: -.5em; }
-ul.menu li:first-letter { font-size:20px;line-height:10px; }
-
-</style>
-<title>Editing Test</title>
-</head>
-<body>
-<div id="container">
-<div contenteditable id="root" class="editing" style="width:120px;">
-<ul class="menu" id="test">
-<li>&middot; <a href="detail.asp?cat=7">Appetizers</a></li>
-<li>&middot; <a href="detail.asp?cat=13">Soups & Salads</a></li>
-<li>&middot; <a href="detail.asp?cat=5">Sandwiches & Burgers</a></li>
-<li>&middot; <a href="detail.asp?cat=14">Steak & Ribs</a></li>
-<li>&middot; <a href="detail.asp?cat=11">Seafood</a></li>
-<li>&middot; <a href="detail.asp?cat=17">Combos</a></li>
-</ul>
-</div>
-</div>
-<!--
- Specifically checks test case in bug:
- <rdar://problem/4244976> reproducible hang at ocharleys.com in VisiblePosition::initDownstream
--->
-<script src="../../resources/js-test.js"></script>
-<script>
-function $(id) { return document.getElementById(id); }
-if (window.internals)
- internals.settings.setEditingBehavior('mac');
-var range = document.createRange();
-range.setStart($("test").querySelectorAll("li")[0], 0);
-var selection = window.getSelection();
-selection.removeAllRanges();
-selection.addRange(range);
-for (var i = 0; i < 6; ++i)
- selection.modify('extend', 'forward', 'word');
-shouldBeEqualToString('selection.type', 'Range');
-shouldBe('selection.anchorNode', '$("test").querySelectorAll("li")[0].childNodes[0]');
-shouldBe('selection.anchorOffset', '0');
-shouldBe('selection.focusNode', '$("test").querySelectorAll("li a")[3].firstChild');
-shouldBe('selection.focusOffset', '4');
-if (window.testRunner)
- $('container').outerHTML = '';
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/selection/extend-by-word-002-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698