use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class NativesMozillaTest method setUp.
@Before
public void setUp() throws Throwable {
assumeTrue("Test disabled", test.isEnabled());
realm.initialize(new SystemConsole(), test);
exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class NativesV8Test method setUp.
@Before
public void setUp() throws Throwable {
assumeTrue("Test disabled", test.isEnabled());
realm.initialize(new SystemConsole(), test);
exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class NodeLoaderTest method setUp.
@Before
public void setUp() throws Throwable {
assumeTrue("Test disabled", test.isEnabled());
realm.initialize(new SystemConsole(), test);
exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class ScriptTest method setUp.
@Before
public void setUp() throws Throwable {
assumeTrue("Test disabled", test.isEnabled());
realm.initialize(new SystemConsole(), test);
exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class UnhandledRejectionTest method setUp.
@Before
public void setUp() throws Throwable {
assumeTrue("Test disabled", test.isEnabled());
realm.initialize(new SystemConsole(), test);
exceptionHandler.setExecutionContext(realm.get().defaultContext());
timers = realm.get().createGlobalProperties(new Timers(), Timers.class);
if (test.negative) {
expected.expect(Matchers.either(Matchers.instanceOf(UnhandledRejectionException.class)).or(Matchers.instanceOf(MissingRejectionException.class)));
} else {
errorHandler.match(StandardErrorHandler.defaultMatcher());
exceptionHandler.match(ScriptExceptionHandler.defaultMatcher());
}
}
Aggregations