[app] Move global vars to transcript view
[abstract.git] / abstract / xpunit / nsITestRunner.idl
blob5d9535055f6c16b308a6cae78cf6af8dd0303a46
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */
3 /*
4 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #include "nsISupports.idl"
25 interface nsIDOMWindow;
26 interface nsITest;
29 * The nsITestRunner interface
30 * @status UNSTABLE
33 [scriptable, uuid(81db3a76-28c9-4b17-aee5-879e175adeb1)]
34 interface nsITestRunner : nsISupports
36 void markTestStart();
37 void addFailure(in string aFile, in unsigned long aLine, in string aText);
38 void addJSFailure(in string aText);
40 const unsigned long errorNoError = 0x0;
41 const unsigned long errorLoad = 0x1;
42 const unsigned long errorJS = 0x2;
43 const unsigned long errorWindow = 0x3;
44 const unsigned long errorTimeout = 0x4;
45 void addError(in unsigned long aCode, in string aComment);
47 void markTestEnd(in nsITest aTest);
49 readonly attribute nsIDOMWindow testWindow;
50 attribute nsIDOMWindow watchWindow;
51 void armTimer();
52 void doCommand(in DOMString aCommand);