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

Unified Diff: LayoutTests/editing/execCommand/indent-images-3.html

Issue 231933004: Fix a broken test which calls Selection.setPosition(null). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify typo Created 6 years, 8 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 | LayoutTests/editing/execCommand/indent-images-3-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/indent-images-3.html
diff --git a/LayoutTests/editing/execCommand/indent-images-3.html b/LayoutTests/editing/execCommand/indent-images-3.html
index 12f9adbbd2e64af3749d163f62b27f94f1fb31d0..08799bce1421abcc99589206ac5bf50737724616 100644
--- a/LayoutTests/editing/execCommand/indent-images-3.html
+++ b/LayoutTests/editing/execCommand/indent-images-3.html
@@ -10,11 +10,11 @@ if (window.testRunner)
while (script = document.querySelector('script'))
script.parentNode.removeChild(script);
-getSelection().setPosition(document.getElementsByTagName('div')[0], 2);
+getSelection().setPosition(document.getElementsByTagName('span')[0], 2);
document.execCommand('indent');
Markup.description('This test indents insides a document with exactly two image elements.\n'
-+ 'Indentation should fail because the root editable element is inline.');
++ 'Indentation should succeed even if the root editable element is inline.');
Markup.dump(document.body);
</script>
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/indent-images-3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698