mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
TCK passes some more tests
This commit is contained in:
parent
ce4f6dc5d5
commit
cc8d2b8903
|
@ -21,7 +21,7 @@ $rt_compare = function(a, b) {
|
|||
return a > b ? 1 : a < b ? -1 : 0;
|
||||
}
|
||||
$rt_isInstance = function(obj, cls) {
|
||||
return obj != null && $rt_isAssignable(obj.constructor, cls);
|
||||
return obj != null && obj.constructor.$meta && $rt_isAssignable(obj.constructor, cls);
|
||||
}
|
||||
$rt_isAssignable = function(from, to) {
|
||||
if (from === to) {
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
*/
|
||||
package org.teavm.html4j.test;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
|
@ -166,7 +167,12 @@ public final class KnockoutFXTest extends KnockoutTCK implements Transfer {
|
|||
String url = call.composeURL(null);
|
||||
String data = urlMap.get(url);
|
||||
if (data != null) {
|
||||
call.notifySuccess(data);
|
||||
data = "[" + data + "]";
|
||||
try {
|
||||
call.notifySuccess(toJSON(new ByteArrayInputStream(data.getBytes())));
|
||||
} catch (IOException e) {
|
||||
call.notifyError(e);
|
||||
}
|
||||
} else {
|
||||
call.notifyError(new IllegalStateException());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user