| 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>
|
|
|