From 3ecbeb8efc1eae494a470b669c36497c0bf61882 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Wed, 8 Sep 1999 23:27:22 +0000 Subject: [PATCH] Add tests for empty doc, and get doc length in EditorTestSelection. git-svn-id: svn://10.0.0.236/trunk@46443 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/composer/content/EditorCommands.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mozilla/editor/ui/composer/content/EditorCommands.js b/mozilla/editor/ui/composer/content/EditorCommands.js index a570438e843..1e4d6661a81 100644 --- a/mozilla/editor/ui/composer/content/EditorCommands.js +++ b/mozilla/editor/ui/composer/content/EditorCommands.js @@ -1025,7 +1025,18 @@ function EditorTestSelection() dump("====== Selection as HTML ======================\n"); output = editorShell.GetContentsAs("text/html", 1); + dump(output + "\n\n"); + + dump("====== Length and status =====================\n"); + output = "Document is "; + if (editorShell.documentIsEmpty) + output += "empty\n"; + else + output += "not empty\n"; + output += "Document length is " + editorShell.documentLength + " characters"; dump(output + "\n\n"); + + } function EditorTestTableLayout()