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 |
+ |