chore: selector@0.0.6

This commit is contained in:
lisonge 2023-09-11 19:19:55 +08:00
parent fbaa26c82f
commit 884d7b044e
3 changed files with 3 additions and 4 deletions

View File

@ -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 {}
}

View File

@ -5,4 +5,4 @@ import kotlin.js.JsExport
@OptIn(ExperimentalJsExport::class)
@JsExport
const val version = "0.0.5"
const val version = "0.0.6"

View File

@ -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