1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-30 04:30:51 +02:00

Commented out debug test

This commit is contained in:
Tim Voronov 2018-10-04 21:38:27 -04:00
parent c650d28b29
commit 99cd9d3f83

View File

@ -1774,29 +1774,29 @@ func TestParam(t *testing.T) {
}) })
} }
func TestHtml(t *testing.T) { //func TestHtml(t *testing.T) {
Convey("Should load a document", t, func() { // Convey("Should load a document", t, func() {
c := compiler.New() // c := compiler.New()
//
out, err := c.MustCompile(` // out, err := c.MustCompile(`
LET doc = DOCUMENT("https://github.com/", true) //LET doc = DOCUMENT("https://github.com/", true)
LET main = ELEMENT(doc, '.application-main') //LET main = ELEMENT(doc, '.application-main')
LET mainTxt = main.innerText //LET mainTxt = main.innerText
//
NAVIGATE(doc, "https://github.com/features") //NAVIGATE(doc, "https://github.com/features")
//
LET features = ELEMENT(doc, '.application-main') //LET features = ELEMENT(doc, '.application-main')
LET featuresTxt = features.innerText //LET featuresTxt = features.innerText
//
LOG("featuresTxt:", featuresTxt) //LOG("featuresTxt:", featuresTxt)
//
RETURN mainTxt == featuresTxt //RETURN mainTxt == featuresTxt
//
//
`).Run(context.Background()) // `).Run(context.Background())
//
So(err, ShouldBeNil) // So(err, ShouldBeNil)
//
So(string(out), ShouldEqual, `"int"`) // So(string(out), ShouldEqual, `"int"`)
}) // })
} //}