blob: fc966f645f28f89fe2358244f2ed663a41c7286a [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../../resources/js-test.js"></script>
<div id="test" contenteditable></div>
<script>
description("Tests queryCommandValue returns empty string for unsupported commands");
var test = document.getElementById('test');
test.focus();
document.execCommand('fontSize', false, 5);
shouldBe("document.queryCommandValue('foofoo')", "''");
shouldBe("typeof document.queryCommandValue('foofoo')", "'string'");
shouldBe("document.queryCommandValue('fontSize')", "'5'");
shouldBe("typeof document.queryCommandValue('fontSize')", "'string'");
</script>
</html>