3 <script src=
"../../resources/js-test.js"></script>
4 <div id=
"test" contenteditable
></div>
6 description("Tests queryCommandValue returns empty string for unsupported commands");
8 var test
= document
.getElementById('test');
10 document
.execCommand('fontSize', false, 5);
11 shouldBe("document.queryCommandValue('foofoo')", "''");
12 shouldBe("typeof document.queryCommandValue('foofoo')", "'string'");
13 shouldBe("document.queryCommandValue('fontSize')", "'5'");
14 shouldBe("typeof document.queryCommandValue('fontSize')", "'string'");