[Webkit-unassigned] [Bug 36683] For compatibility, execCommand should support deprecated 'useCSS' alias for 'styleWithCSS'
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 13 00:51:47 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=36683
--- Comment #25 from Ryosuke Niwa <rniwa at webkit.org> 2011-09-13 00:51:47 PST ---
(From update of attachment 107131)
View in context: https://bugs.webkit.org/attachment.cgi?id=107131&action=review
Let's add tests for queryCommandState/queryCommandValue and then land this patch.
> LayoutTests/editing/execCommand/style-with-css.html:1
> +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Can we use new style? (i.e. <!DOCTYPE html>)
> LayoutTests/editing/execCommand/style-with-css.html:21
> + {
> + testPassed('styleWithCSS changed the state successfully');
> + } else {
> + testFailed('styleWithCSS failed with the argument ' + styleArg);
> + }
No curly brackets around single line statements.
> LayoutTests/editing/execCommand/use-css.html:1
> +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Ditto.
> LayoutTests/editing/execCommand/use-css.html:25
> + {
> + testPassed('useCSS changed the state successfully');
> + } else {
> + testFailed('useCSS failed with the argument ' + styleArg);
> + }
Ditto.
> LayoutTests/editing/execCommand/use-css.html:38
> + if (testContainer.innerHTML === expectedContents) {
> + testPassed("one " + toggleCommand + " command converted " + initialContents + " to " + expectedContents);
> + } else {
> + testFailed("one " + toggleCommand + " command converted " + initialContents + " to " + testContainer.innerHTML + ", expected " + expectedContents);
> + }
Ditto.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list