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

Side by Side Diff: LayoutTests/editing/execCommand/non-html-document-expected.txt

Issue 1155353002: Throw DOMException when invoked Document::execCommand on non-{X,}HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert accidental edit Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/editing/execCommand/non-html-document.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Non HTMLDocument such as XMLDocument shouldn't support execCommand
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS xmldoc.execCommand('bold') threw exception InvalidStateError: Failed to exe cute 'execCommand' on 'Document': execCommand is only supported on HTML document s..
7 PASS xmldoc.queryCommandEnabled('bold') threw exception InvalidStateError: Faile d to execute 'queryCommandEnabled' on 'Document': queryCommandEnabled is only su pported on HTML documents..
8 PASS xmldoc.queryCommandIndeterm('bold') threw exception InvalidStateError: Fail ed to execute 'queryCommandIndeterm' on 'Document': queryCommandIndeterm is only supported on HTML documents..
9 PASS xmldoc.queryCommandState('bold') threw exception InvalidStateError: Failed to execute 'queryCommandState' on 'Document': queryCommandState is only supporte d on HTML documents..
10 PASS xmldoc.queryCommandSupported('bold') threw exception InvalidStateError: Fai led to execute 'queryCommandSupported' on 'Document': queryCommandSupported is o nly supported on HTML documents..
11 PASS xmldoc.queryCommandValue('bold') threw exception InvalidStateError: Failed to execute 'queryCommandValue' on 'Document': queryCommandValue is only supporte d on HTML documents..
12 PASS successfullyParsed is true
13
14 TEST COMPLETE
15
OLDNEW
« no previous file with comments | « LayoutTests/editing/execCommand/non-html-document.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698