Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jun 14, 2023
1 parent c04027d commit 533bd50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/androidTest/java/io/legado/app/AndroidJsTest.kt
Expand Up @@ -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)
}
Expand Down

0 comments on commit 533bd50

Please sign in to comment.