mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
chore: selector@0.0.6
This commit is contained in:
parent
fbaa26c82f
commit
884d7b044e
|
@ -12,8 +12,7 @@ kotlin {
|
|||
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#kotlin-types-in-javascript
|
||||
js(IR) {
|
||||
binaries.executable()
|
||||
// useEsModules()
|
||||
// bug example kotlin CharSequence.contains(char: Char) not work with js string.includes(string)
|
||||
useEsModules()
|
||||
generateTypeScriptDefinitions()
|
||||
browser {}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@ import kotlin.js.JsExport
|
|||
|
||||
@OptIn(ExperimentalJsExport::class)
|
||||
@JsExport
|
||||
const val version = "0.0.5"
|
||||
const val version = "0.0.6"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package li.songe.selector
|
||||
|
||||
import junit.framework.TestCase.assertTrue
|
||||
import kotlinx.serialization.decodeFromString
|
||||
import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.json.JsonNull
|
||||
import kotlinx.serialization.json.booleanOrNull
|
||||
|
@ -17,6 +16,7 @@ class ParserTest {
|
|||
fun test_expression() {
|
||||
println(ParserSet.expressionParser("a>1&&b>1&&c>1||d>1", 0).data)
|
||||
println(Selector.parse("View[a>1&&b>1&&c>1||d>1&&x^=1] > Button[a>1||b*='zz'||c^=1]"))
|
||||
println(Selector.parse("[id=`com.byted.pangle:id/tt_splash_skip_btn`||(id=`com.hupu.games:id/tv_time`&&text*=`跳过`)]"))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue
Block a user