Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Various fixes to make super fast page parser work in JIRA

* Implemented body properties support
* Implemented content tag support (only in head section)
* A few trivial changes to ensure it behaved the same as the fast page parser
* Fixed missed flush in getContentLength()
* Added a few new tests to the superfast tests
* Reenabled running tests on all parsers, and made the fast page parser run on the superfast tests
  • Loading branch information...
commit 298f85312b678027e9ca2be1bdd297cb4f136449 1 parent c53325f
@jroper jroper authored
View
26 src/parser-tests/superfast/test06.txt
@@ -0,0 +1,26 @@
+~~~ INPUT ~~~
+
+<html>
+ <head>
+ <content tag="blah">hello</content>
+ </head>
+ <body>
+ <p>This is a pretty simple page.</p>
+ <p>Bye.</p>
+ </body>
+</html>
+
+~~~ TITLE ~~~
+
+~~~ PROPERTIES ~~~
+
+title=
+page.blah=hello
+
+~~~ HEAD ~~~
+
+~~~ BODY ~~~
+
+ <p>This is a pretty simple page.</p>
+ <p>Bye.</p>
+
View
35 src/parser-tests/superfast/test07.txt
@@ -0,0 +1,35 @@
+~~~ INPUT ~~~
+
+<html>
+ <head>
+ <style>
+ body { font-family: arial; }
+ </style>
+ <content tag="blah">
+ <p>Some markup</p>
+ </content>
+ </head>
+ <body>
+ <p>This is a pretty simple page.</p>
+ <p>Bye.</p>
+ </body>
+</html>
+
+~~~ TITLE ~~~
+
+~~~ PROPERTIES ~~~
+
+title=
+page.blah=<p>Some markup</p>
+
+~~~ HEAD ~~~
+
+ <style>
+ body { font-family: arial; }
+ </style>
+
+~~~ BODY ~~~
+
+ <p>This is a pretty simple page.</p>
+ <p>Bye.</p>
+
Please sign in to comment.
Something went wrong with that request. Please try again.