author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 20:26:44 +0200
changeset 104557 162130598df094e19b044610902abecd403278d3
parent 101917 4e24278d2273dac7a5f8a681e078e207d09da12a
child 106112 a16372ce30b5f6b747246b01fcd215a4bf3b6342
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __TextEditorTest_h__
#define __TextEditorTest_h__

#include "nscore.h"
#include "prtypes.h"

class nsIEditor;
class nsIPlaintextEditor;
#ifdef DEBUG

#include "nsCOMPtr.h"

class TextEditorTest

  void Run(nsIEditor *aEditor, PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);


  /** create an empty document */
  nsresult InitDoc();

  nsresult RunUnitTest(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed);

  nsresult TestInsertBreak();

  nsresult TestTextProperties();

  nsCOMPtr<nsIPlaintextEditor> mTextEditor;
  nsCOMPtr<nsIEditor> mEditor;

#endif /* DEBUG */