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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/editing/execCommand/non-html-document.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/non-html-document-expected.txt
diff --git a/LayoutTests/editing/execCommand/non-html-document-expected.txt b/LayoutTests/editing/execCommand/non-html-document-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ff6cc0fe8464a03da63ef91ee3e09a543a978263
--- /dev/null
+++ b/LayoutTests/editing/execCommand/non-html-document-expected.txt
@@ -0,0 +1,15 @@
+Non HTMLDocument such as XMLDocument shouldn't support execCommand
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS xmldoc.execCommand('bold') threw exception InvalidStateError: Failed to execute 'execCommand' on 'Document': execCommand is only supported on HTML documents..
+PASS xmldoc.queryCommandEnabled('bold') threw exception InvalidStateError: Failed to execute 'queryCommandEnabled' on 'Document': queryCommandEnabled is only supported on HTML documents..
+PASS xmldoc.queryCommandIndeterm('bold') threw exception InvalidStateError: Failed to execute 'queryCommandIndeterm' on 'Document': queryCommandIndeterm is only supported on HTML documents..
+PASS xmldoc.queryCommandState('bold') threw exception InvalidStateError: Failed to execute 'queryCommandState' on 'Document': queryCommandState is only supported on HTML documents..
+PASS xmldoc.queryCommandSupported('bold') threw exception InvalidStateError: Failed to execute 'queryCommandSupported' on 'Document': queryCommandSupported is only supported on HTML documents..
+PASS xmldoc.queryCommandValue('bold') threw exception InvalidStateError: Failed to execute 'queryCommandValue' on 'Document': queryCommandValue is only supported on HTML documents..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« 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