Permalink
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...
1 parent c53325f commit 298f85312b678027e9ca2be1bdd297cb4f136449 @jroper jroper committed Feb 10, 2011
Showing with 61 additions and 0 deletions.
  1. +26 −0 src/parser-tests/superfast/test06.txt
  2. +35 −0 src/parser-tests/superfast/test07.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>
+
@@ -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>
+

0 comments on commit 298f853

Please sign in to comment.