[WASM] Use native string conversion for TestCaseLogger, remove calls to `fromJsString`/`toJsString`
*/
package com.google.j2cl.junit.integration.testing.testlogger;
-import static jsinterop.annotations.JsPackage.GLOBAL;
-
import jsinterop.annotations.JsMethod;
/** Calling stub for window.console. */
public class TestCaseLogger {
- @JsMethod(namespace = GLOBAL, name = "goog.testing.TestCase.saveMessage")
- public static native void saveMessage(String.NativeString message);
+ @JsMethod(namespace = "goog.testing.TestCase")
+ public static native void saveMessage(String message);
public static void log(String message) {
- saveMessage(("[java_message_from_test] " + message).toJsString());
+ saveMessage("[java_message_from_test] " + message);
}
}
