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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html

Issue 1960553002: Do not ignore the text style properties when checking styles in EditingStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use w3c test harness 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/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html b/third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html
new file mode 100644
index 0000000000000000000000000000000000000000..c21b6f54a8e148d4fd10fe78e2179ef1f62c60ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html
@@ -0,0 +1,19 @@
+<!doctype HTML>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div contenteditable="true">
+<img src="../resources/abe.png">
+</div>
+<script>
+test(function() {
+ document.getSelection().removeAllRanges();
+ var range = document.createRange();
+ range.selectNode(document.querySelector('img'));
+ document.getSelection().addRange(range);
+
+ assert_equals(document.queryCommandState('bold'), false);
+ assert_equals(document.queryCommandState('italic'), false);
+ assert_equals(document.queryCommandState('underline'), false);
+ assert_equals(document.queryCommandState('strikethrough'), false);
+}, 'run queryCommandState() on the selected img element');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698