Drop support for webworkers

Reviewed By: AaaChiuuu

Differential Revision: D4916449

fbshipit-source-id: a447233d3b7cfee98db2ce00f1c0505d513e2429
This commit is contained in:
Pieter De Baets
2017-04-25 05:29:45 -07:00
committed by Facebook Github Bot
parent a20882f62e
commit 34bc6bd2ae
64 changed files with 266 additions and 1639 deletions

View File

@@ -71,14 +71,14 @@ public class BaseJavaModuleTest {
public void testCallMethodWithoutEnoughArgs() throws Exception {
int methodId = findMethod("regularMethod",mMethods);
Mockito.stub(mArguments.size()).toReturn(1);
mWrapper.invoke(null, methodId, mArguments);
mWrapper.invoke(methodId, mArguments);
}
@Test
public void testCallMethodWithEnoughArgs() {
int methodId = findMethod("regularMethod", mMethods);
Mockito.stub(mArguments.size()).toReturn(2);
mWrapper.invoke(null, methodId, mArguments);
mWrapper.invoke(methodId, mArguments);
}
@Test
@@ -86,14 +86,14 @@ public class BaseJavaModuleTest {
// Promise block evaluates to 2 args needing to be passed from JS
int methodId = findMethod("asyncMethod", mMethods);
Mockito.stub(mArguments.size()).toReturn(3);
mWrapper.invoke(null, methodId, mArguments);
mWrapper.invoke(methodId, mArguments);
}
@Test
public void testCallSyncMethod() {
int methodId = findMethod("syncMethod", mMethods);
Mockito.stub(mArguments.size()).toReturn(2);
mWrapper.invoke(null, methodId, mArguments);
mWrapper.invoke(methodId, mArguments);
}
private static class MethodsModule extends BaseJavaModule {