diff --git a/tests/main.go b/tests/main.go
index 8d82c10..9fc4c67 100644
--- a/tests/main.go
+++ b/tests/main.go
@@ -18,2 +18 @@ func main() {
- window.Path("./src/superselector.html")
- document := window.Document()
+ window.Path("./src/index.html")
@@ -21 +20,3 @@ func main() {
- qsa := document.QuerySelectorAll(`body:has(h1.class + h1)> h1[attr="test"]#id.class:has(input:is(input[type="text"]) + div),a`)
+ document := window.Document
+
+ fmt.Println(document.QuerySelector(":nth-child(1)"))
@@ -23,4 +23,0 @@ func main() {
- for _, v := range *qsa {
- fmt.Println("qsa: ", v.Properties.Id)
- }
- // body:has(h1.class + h1)> h1[attr="test"]#id.class:has(input:is(input[type="text"]) + div),a {
package main
import (
"fmt"
"grim"
"grim/adapters/raylib"
)
// go tool pprof --pdf ./main ./cpu.pprof > file.pdf && open file.pdf
// go tool pprof --pdf ./main ./mem.pprof > file.pdf && open file.pdf
func main() {
// defer profile.Start(profile.ProfilePath(".")).Stop() // CPU
// defer profile.Start(profile.MemProfile, profile.ProfilePath(".")).Stop() // Memory
// defaults read ~/Library/Preferences/.GlobalPreferences.plist
// !ISSUE: Flex2 doesn't work anymore
window := grim.New(raylib.Init())
window.Path("./src/superselector.html")
document := window.Document()
qsa := document.QuerySelectorAll(`body:has(h1.class + h1)> h1[attr="test"]#id.class:has(input:is(input[type="text"]) + div),a`)
for _, v := range *qsa {
fmt.Println("qsa: ", v.Properties.Id)
}
// body:has(h1.class + h1)> h1[attr="test"]#id.class:has(input:is(input[type="text"]) + div),a {
grim.Open(&window, 850, 400)
}