Граф коммитов

55 Коммитов

Автор SHA1 Сообщение Дата
Serge Gautherie ae207fcd3a Bug 369034 - TestTXMgr has error and leaks object; (Ev1) Whitespace cleanup, Var declaration reordering++.
r=ehsan a=(test only).
DONTBUILD
2010-12-10 04:27:43 +01:00
Serge Gautherie d0d2a8b36c Bug 615045 - [SeaMonkey] check: TestTXMgr.cpp (nsITransactionManager tests) intermittently times out in "Aggregate Transaction Stress Test"; (Av1) Add a trivial feedback not to let the user think the test is stuck.
r=ehsan a=(test only).
2010-12-10 01:47:54 +01:00
Serge Gautherie 278c34aa8a Bug 369034 - TestTXMgr has error and leaks object; (Dv1) Fix and reorder printf()s.
r=peterv.
2010-03-10 21:03:23 +01:00
Serge Gautherie b83082ba43 Bug 369034 - TestTXMgr has error and leaks object; (Cv1) Functional cleanup and documentation; r=peterv 2009-06-08 21:38:35 +02:00
L. David Baron ec753f00c6 Make transaction manager unit test's output give the correct function name. 2009-05-08 21:59:26 -07:00
Serge Gautherie 1ad6893b8b Bug 369034 - TestTXMgr has error and leaks object; (Av1a) Add mgr->Clear(), use ScopedXPCOM() and run this test; r=benjamin 2009-05-06 01:11:14 +02:00
bsmedberg%covad.net 60f66dbc64 From bug 305949 - txmgr tests should use the glue, r=darin 2005-11-18 19:35:01 +00:00
darin%meer.net 96c79cea45 eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg 2004-11-01 18:50:36 +00:00
gerv%gerv.net 6f486a3c92 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
dbaron%dbaron.org 93497517b6 Remove include of stdio.h from nsTraceRefcnt.h. b=227074 r=dougt sr,a=brendan 2003-12-12 23:02:12 +00:00
dbaron%dbaron.org e686da6f3c Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 19:51:43 +00:00
dougt%netscape.com c5e8f896cd 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dbaron%fas.harvard.edu d376f6e5e2 Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag 2002-02-16 16:18:13 +00:00
timeless%mac.com 711739d601 Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
gerv%gerv.net a6cbe5b4e0 License changes, take 2. Bug 98089. mozilla/editor/. 2001-09-25 22:53:13 +00:00
gerv%gerv.net 2a80f3fea9 Oops. 2001-09-20 00:02:59 +00:00
scc%mozilla.org 63e86dc84f bug #98089: ripped new license 2001-09-19 20:09:47 +00:00
dbaron%fas.harvard.edu 716f9f4695 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797 2001-08-21 01:48:11 +00:00
kin%netscape.com 6501ce84d9 Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  editor/txmgr/src/nsTransactionItem.h
  editor/txmgr/src/nsTransactionList.cpp
  editor/txmgr/src/nsTransactionList.h
  editor/txmgr/src/nsTransactionManager.cpp
  editor/txmgr/src/nsTransactionManager.h
  editor/txmgr/src/nsTransactionManagerFactory.cpp
  editor/txmgr/src/nsTransactionStack.cpp
  editor/txmgr/src/nsTransactionStack.h
  editor/txmgr/tests/TestTXMgr.cpp
  editor/ui/composer/content/EditorCommandsDebug.js
  editor/ui/composer/content/editorOverlay.xul
  editor/ui/composer/locale/en-US/editorOverlay.dtd
  mailnews/base/src/nsMessenger.cpp
  mailnews/base/util/nsMsgTxn.cpp
  mailnews/base/util/nsMsgTxn.h
  mailnews/imap/src/nsImapMailFolder.cpp
  mailnews/imap/src/nsImapUndoTxn.cpp
  mailnews/imap/src/nsImapUndoTxn.h
  mailnews/local/src/nsLocalMailFolder.cpp
  mailnews/local/src/nsLocalUndoTxn.cpp
  mailnews/local/src/nsLocalUndoTxn.h
2001-03-09 14:23:59 +00:00
warren%netscape.com 1c8511e78c Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
mjudge%netscape.com 6622635cab making string conversions explicit. scc 2000-04-26 01:13:55 +00:00
dmose%mozilla.org 8535dda53e updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
kin%netscape.com 2644c77120 Fix for bug #9826: [malloc] memory allocation problems - editor tests
Added checks for NULL everywhere new and create are called.
1999-07-14 17:27:34 +00:00
mcafee%netscape.com a2ab4aad4f Adding coment for BeOS. 1999-06-25 14:33:31 +00:00
warren%netscape.com aaf94a8b04 Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams. 1999-06-08 20:57:32 +00:00
briano%netscape.com e9e302b454 Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
warren%netscape.com 447b069ddb IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom). 1999-06-03 21:50:47 +00:00
kin%netscape.com afd2019922 Changed GetUndoString() and GetRedoString() to use nsString *. 1999-05-27 20:50:05 +00:00
kin%netscape.com 60e201e0a7 Added support for nsITransactionListener.
Cleaned up includes in header files.
1999-05-26 21:16:25 +00:00
warren%netscape.com 329d00e493 Added Write(nsIInputStream) and Flush to nsIOutputStream. 1999-04-22 07:31:03 +00:00
kin%netscape.com 3854e3bfb8 Changed all occurences of NS_TRANSACTION_MANAGER_FACTORY_CID
and kCTransactionManagerFactoryCID to NS_TRANSACTIONMANAGER_CID
and kCTransactionManagerCID.
1999-03-10 21:27:02 +00:00
warren%netscape.com c50687b845 nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
mcmullen%netscape.com c33ff414ca Adapt to new stream interfaces some more. 1999-03-06 02:12:52 +00:00
mcmullen%netscape.com 9d78b925a1 Adapt to new stream interfaces 1999-03-06 00:29:58 +00:00
cmanske%netscape.com a63bfb277f Fixed mismatched declarations/implementations 1999-03-02 07:13:45 +00:00
ebina%netscape.com 0893363a0b Changing RegisterFactory to use the new API. 1999-02-26 15:59:52 +00:00
kin%netscape.com 85e03c9154 Removed all references to ServiceManager, we now rely on nsRepository directly. 1999-02-12 16:57:55 +00:00
kin%netscape.com c9a53a0cec Added test cases for TransactionManager's BeginBatch() and EndBatch() methods. 1999-02-08 17:30:30 +00:00
kin%netscape.com d951c82601 Added calls to nsServiceManager::ShutdownService() to get the tests working
again.  Fixed some compiler warnings.
1999-02-04 17:35:04 +00:00
kin%netscape.com 816295ccfd Backout previous changes to fix build bustage. 1998-12-16 18:52:23 +00:00
mjudge%netscape.com 8988ae7888 write now takes ints instead of unsigned ints 1998-12-16 18:43:13 +00:00
warren%netscape.com 1e3dc5f779 Fixed some unsigned problems for the Mac. 1998-12-16 08:03:53 +00:00
kin%netscape.com 0ea8f2a88a Added tests for SetMaxTransactionCount(). 1998-12-15 02:11:53 +00:00
kin%netscape.com 13cd7486c5 Added TestTransactionFactory classes. Got rid of duplicate test/stress
functions.
1998-12-14 23:50:27 +00:00
mjudge%netscape.com 128339a0fd txmgr changes not built yet 1998-12-14 18:46:13 +00:00
kin%netscape.com db8ec0bba1 Modified tests to call nsServiceManager::GetService() to create an
nsITransactionManager.
1998-12-11 00:25:33 +00:00
kin%netscape.com 316b36e4af Added aggregation_test(), stress_test(), and aggregation_stress_test(). 1998-12-09 19:28:58 +00:00
kin%netscape.com f565acea97 Added transient and coalescing test cases. 1998-12-05 01:15:40 +00:00
kin%netscape.com 221f99c6eb Added support for nsITransaction::GetIsTransient() method. 1998-12-04 23:09:55 +00:00
kin%netscape.com 5960c06d30 Added test case for error during a redo. Added checks to make sure all
transaction destruction happens in the order we expect.
1998-12-04 21:32:47 +00:00