mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-28 03:56:45 +02:00
Commented out debug test
This commit is contained in:
parent
c650d28b29
commit
99cd9d3f83
@ -1774,29 +1774,29 @@ func TestParam(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestHtml(t *testing.T) {
|
||||
Convey("Should load a document", t, func() {
|
||||
c := compiler.New()
|
||||
|
||||
out, err := c.MustCompile(`
|
||||
LET doc = DOCUMENT("https://github.com/", true)
|
||||
LET main = ELEMENT(doc, '.application-main')
|
||||
LET mainTxt = main.innerText
|
||||
|
||||
NAVIGATE(doc, "https://github.com/features")
|
||||
|
||||
LET features = ELEMENT(doc, '.application-main')
|
||||
LET featuresTxt = features.innerText
|
||||
|
||||
LOG("featuresTxt:", featuresTxt)
|
||||
|
||||
RETURN mainTxt == featuresTxt
|
||||
|
||||
|
||||
`).Run(context.Background())
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(string(out), ShouldEqual, `"int"`)
|
||||
})
|
||||
}
|
||||
//func TestHtml(t *testing.T) {
|
||||
// Convey("Should load a document", t, func() {
|
||||
// c := compiler.New()
|
||||
//
|
||||
// out, err := c.MustCompile(`
|
||||
//LET doc = DOCUMENT("https://github.com/", true)
|
||||
//LET main = ELEMENT(doc, '.application-main')
|
||||
//LET mainTxt = main.innerText
|
||||
//
|
||||
//NAVIGATE(doc, "https://github.com/features")
|
||||
//
|
||||
//LET features = ELEMENT(doc, '.application-main')
|
||||
//LET featuresTxt = features.innerText
|
||||
//
|
||||
//LOG("featuresTxt:", featuresTxt)
|
||||
//
|
||||
//RETURN mainTxt == featuresTxt
|
||||
//
|
||||
//
|
||||
// `).Run(context.Background())
|
||||
//
|
||||
// So(err, ShouldBeNil)
|
||||
//
|
||||
// So(string(out), ShouldEqual, `"int"`)
|
||||
// })
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user