mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Fix passing of some DukeScript tests
This commit is contained in:
parent
3a475d8726
commit
71343b910e
|
@ -370,7 +370,7 @@ public class TeaVMTestTool {
|
||||||
innerWriter.append("\n");
|
innerWriter.append("\n");
|
||||||
innerWriter.append("\nJUnitClient.run();");
|
innerWriter.append("\nJUnitClient.run();");
|
||||||
if (sourceMapsGenerated) {
|
if (sourceMapsGenerated) {
|
||||||
String sourceMapsFileName = targetName + ".map";
|
String sourceMapsFileName = targetName.substring(targetName.lastIndexOf('/') + 1) + ".map";
|
||||||
innerWriter.append("\n//# sourceMappingURL=").append(sourceMapsFileName);
|
innerWriter.append("\n//# sourceMappingURL=").append(sourceMapsFileName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -100,6 +100,7 @@
|
||||||
</transformers>
|
</transformers>
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
<debugInformationGenerated>true</debugInformationGenerated>
|
||||||
<sourceMapsGenerated>true</sourceMapsGenerated>
|
<sourceMapsGenerated>true</sourceMapsGenerated>
|
||||||
|
<sourceFilesCopied>true</sourceFilesCopied>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
|
@ -164,10 +164,12 @@ public final class KnockoutFXTest extends KnockoutTCK implements Transfer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void loadJSON(JSONCall call) {
|
public void loadJSON(JSONCall call) {
|
||||||
|
if (call.isJSONP()) {
|
||||||
|
throw new IllegalArgumentException("This mock does not support JSONP calls");
|
||||||
|
}
|
||||||
String url = call.composeURL(null);
|
String url = call.composeURL(null);
|
||||||
String data = urlMap.get(url);
|
String data = urlMap.get(url);
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
data = "[" + data + "]";
|
|
||||||
try {
|
try {
|
||||||
call.notifySuccess(toJSON(new ByteArrayInputStream(data.getBytes())));
|
call.notifySuccess(toJSON(new ByteArrayInputStream(data.getBytes())));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user