Drop support for webworkers

Reviewed By: AaaChiuuu

Differential Revision: D4916449

fbshipit-source-id: a447233d3b7cfee98db2ce00f1c0505d513e2429
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-04-25 05:37:54 -07:00
1 parent a20882f62e
commit 34bc6bd2ae
64 files changed
+266 -1639

No files matched your search

@@ -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 {