2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2011-12-30 12:57:34 -08:00
|
|
|
|
2013-11-07 08:18:51 -08:00
|
|
|
package org.mozilla.gecko;
|
2011-12-30 12:57:34 -08:00
|
|
|
|
|
|
|
public interface Assert {
|
2012-02-15 06:56:20 -08:00
|
|
|
void dumpLog(String message);
|
2012-03-27 13:16:13 -07:00
|
|
|
void dumpLog(String message, Throwable t);
|
2012-02-15 06:56:20 -08:00
|
|
|
void setLogFile(String filename);
|
|
|
|
void setTestName(String testName);
|
2012-08-09 06:06:19 -07:00
|
|
|
void endTest();
|
2011-12-30 12:57:34 -08:00
|
|
|
|
2012-02-15 06:56:20 -08:00
|
|
|
void ok(boolean condition, String name, String diag);
|
|
|
|
void is(Object a, Object b, String name);
|
|
|
|
void isnot(Object a, Object b, String name);
|
|
|
|
void todo(boolean condition, String name, String diag);
|
|
|
|
void todo_is(Object a, Object b, String name);
|
|
|
|
void todo_isnot(Object a, Object b, String name);
|
|
|
|
void info(String name, String message);
|
2012-01-30 19:46:13 -08:00
|
|
|
|
2012-02-15 06:56:20 -08:00
|
|
|
// robocop-specific asserts
|
|
|
|
void ispixel(int actual, int r, int g, int b, String name);
|
2012-12-13 23:29:17 -08:00
|
|
|
void isnotpixel(int actual, int r, int g, int b, String name);
|
2011-12-30 12:57:34 -08:00
|
|
|
}
|