mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
c04027de1e
commit
533bd502aa
@ -44,8 +44,9 @@ class AndroidJsTest {
|
||||
""".trimIndent()
|
||||
val result1 = RhinoScriptEngine.eval(js1)
|
||||
Assert.assertEquals(result1, "未知错误,请联系开发者!")
|
||||
@Language("js")
|
||||
val js2 = """
|
||||
let intent = new android.content.Intent(android.content.Intent.ACTION_VIEW)
|
||||
let x = java.lang.Class.forName('android.app.ActivityThread')
|
||||
""".trimIndent()
|
||||
RhinoScriptEngine.eval(js2)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user