Search in sources :

Example 1 with SystemConsole

use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.

the class PromiseUnwrappingTest method setUp.

@Before
public void setUp() throws Throwable {
    assumeTrue("Test disabled", test.isEnabled());
    realm.initialize(new SystemConsole(), test);
    exceptionHandler.setExecutionContext(realm.get().defaultContext());
    async = realm.get().createGlobalProperties(new PromiseAsync(), PromiseAsync.class);
    timers = realm.get().createGlobalProperties(new Timers(), Timers.class);
}
Also used : SystemConsole(com.github.anba.es6draft.util.SystemConsole) Timers(com.github.anba.es6draft.runtime.extensions.timer.Timers) Before(org.junit.Before)

Example 2 with SystemConsole

use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.

the class NativesDefaultTest method setUp.

@Before
public void setUp() throws Throwable {
    assumeTrue("Test disabled", test.isEnabled());
    realm.initialize(new SystemConsole(), test);
    exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
Also used : SystemConsole(com.github.anba.es6draft.util.SystemConsole) Before(org.junit.Before)

Example 3 with SystemConsole

use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.

the class CompilerTest method setUp.

@Before
public void setUp() throws Throwable {
    assumeTrue("Test disabled", test.isEnabled());
    realm.initialize(new SystemConsole(), test);
    exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
Also used : SystemConsole(com.github.anba.es6draft.util.SystemConsole) Before(org.junit.Before)

Example 4 with SystemConsole

use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.

the class PromiseAPlusTest method setUp.

@Before
public void setUp() throws Throwable {
    assumeTrue("Test disabled", test.isEnabled());
    realm.initialize(new SystemConsole(), test);
    exceptionHandler.setExecutionContext(realm.get().defaultContext());
    async = realm.get().createGlobalProperties(new PromiseAsync(), PromiseAsync.class);
    timers = realm.get().createGlobalProperties(new Timers(), Timers.class);
}
Also used : SystemConsole(com.github.anba.es6draft.util.SystemConsole) Timers(com.github.anba.es6draft.runtime.extensions.timer.Timers) Before(org.junit.Before)

Example 5 with SystemConsole

use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.

the class StrictTest method setUp.

@Before
public void setUp() throws Throwable {
    assumeTrue("Test disabled", test.isEnabled());
    realm.initialize(new SystemConsole(), test);
    exceptionHandler.setExecutionContext(realm.get().defaultContext());
}
Also used : SystemConsole(com.github.anba.es6draft.util.SystemConsole) Before(org.junit.Before)

Aggregations

SystemConsole (com.github.anba.es6draft.util.SystemConsole)11 Before (org.junit.Before)10 Timers (com.github.anba.es6draft.runtime.extensions.timer.Timers)3 RuntimeContext (com.github.anba.es6draft.runtime.internal.RuntimeContext)1 ScriptLoader (com.github.anba.es6draft.runtime.internal.ScriptLoader)1 Source (com.github.anba.es6draft.runtime.internal.Source)1 UnhandledRejectionException (com.github.anba.es6draft.runtime.internal.UnhandledRejectionException)1 Test (org.junit.Test)1