diff --git a/components/turbopower_ipro/test_files/elements.html b/components/turbopower_ipro/test_files/elements.html new file mode 100644 index 0000000000..a11f218507 --- /dev/null +++ b/components/turbopower_ipro/test_files/elements.html @@ -0,0 +1,362 @@ + +
+ + + ++Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt +ut labore et dolore magna aliqua. Sed id semper risus in. Venenatis cras sed felis eget +velit aliquet sagittis. Sagittis vitae et leo duis ut diam quam nulla porttitor. Luctus +accumsan tortor posuere ac ut. Aliquet sagittis id consectetur purus ut faucibus. +
++The following contains program code enclosed in an HTML PRE tag. Please note the more +conventional line spacing (instead of double spacing) used for preformatted content. +Top and bottom margins in CSS are supported for the PRE element. +
++procedure TForm1.ShowHTML(Src: string); +var + ss: TStringStream; + NewHTML: TIpHtml; +begin + ss := TStringStream.Create(Src); + try + NewHTML := TIpHtml.Create; + debugln(['TForm1.ShowHTML BEFORE SETHTML']); + IpHtmlPanel1.SetHtml(NewHTML); + debugln(['TForm1.ShowHTML BEFORE LOADFROMSTREAM']); + NewHTML.LoadFromStream(ss); + finally + ss.Free; + end; +end; ++
+The preceding contains program code enclosed in an HTML PRE tag. +
++The following is an example of the HTML DL tag. Please note the more conventional +line spacing (instead of double spacing) used for the DT and DD elements in the +definition list. +
++The preceding s an example of the HTML DL tag. +
++The following table does not specify margins on any of the edges. There is limited CSS +support for the TABLE element. +
+Column A | +Column B | +Column C | +
---|---|---|
Row 1 Col A | +Row 1 Col B | +Row 1 Col C | +
Row 2 Col A | +Row 2 Col B | +Row 2 Col C | +
Row 3 Col A | +Row 3 Col B | +Row 3 Col C | +
+The following table specifies a margin of 96px on all edges. Only top and bottom margins +actually work. +
+Column A | +Column B | +Column C | +
---|---|---|
Row 1 Col A | +Row 1 Col B | +Row 1 Col C | +
Row 2 Col A | +Row 2 Col B | +Row 2 Col C | +
Row 3 Col A | +Row 3 Col B | +Row 3 Col C | +
+This concludes the TABLE portion of the program. +
++The following contains list items in a HTML UL tag. Please note the more conventional +line spacing (instead of double spacing) used for the LI elements in the list. +Top and bottom margins in CSS are supported for the UL element. +
++The preceding contains list items in a HTML UL tag. +
++The following contains list items in a HTML OL tag. Please note the more conventional +line spacing (instead of double spacing) used for the LI elements in the list. +Top and bottom margins in CSS are supported for the OL element. +
++The preceding contains list items in a HTML OL tag. +
++The WHO was founded in 1948. +
++
+Written by John Doe.+For 60 years, WWF has worked to help +people and nature thrive. As the world's leading conservation organization, +WWF works in nearly 100 countries. At every level, we collaborate with people around +the world to develop and deliver innovative solutions that protect communities, +wildlife, and the places in which they live. ++
+WWF's goal is to: Build a future where people live in harmony with nature.
+
+Bold using the HTML B tag.
+Strong using the HTML STRONG tag.
+Italic using the HTML I tag.
+Emphasis using the HTML EM tag.
+Mark using the HTML MARK tag.
+Small using the HTML SMALL tag.
+Deleted using the HTML DEL tag.
+Superscript using the HTML SUP tag.
+Inserted uing the HTML INS tag.
+Subscript using the HTML SUB tag.
+Variable using the HTML VAR tag.
+
Character | +Entity | +
---|---|
& | +& | +
< | +< | +
> | +> | +
" | +" | +
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt +ut labore et dolore magna aliqua. Sed id semper risus in. Venenatis cras sed felis eget +velit aliquet sagittis. Sagittis vitae et leo duis ut diam quam nulla porttitor. Luctus +accumsan tortor posuere ac ut. Aliquet sagittis id consectetur purus ut faucibus. +
+ + diff --git a/components/turbopower_ipro/test_files/elements_no_css.html b/components/turbopower_ipro/test_files/elements_no_css.html new file mode 100644 index 0000000000..9cc3cd3d8d --- /dev/null +++ b/components/turbopower_ipro/test_files/elements_no_css.html @@ -0,0 +1,256 @@ + + + + ++Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt +ut labore et dolore magna aliqua. Sed id semper risus in. Venenatis cras sed felis eget +velit aliquet sagittis. Sagittis vitae et leo duis ut diam quam nulla porttitor. Luctus +accumsan tortor posuere ac ut. Aliquet sagittis id consectetur purus ut faucibus. +
++The following contains program code enclosed in an HTML PRE tag. Please note the more +conventional line spacing (instead of double spacing) used for preformatted content. +Top and bottom margins in CSS are supported for the PRE element. +
++procedure TForm1.ShowHTML(Src: string); +var + ss: TStringStream; + NewHTML: TIpHtml; +begin + ss := TStringStream.Create(Src); + try + NewHTML := TIpHtml.Create; + debugln(['TForm1.ShowHTML BEFORE SETHTML']); + IpHtmlPanel1.SetHtml(NewHTML); + debugln(['TForm1.ShowHTML BEFORE LOADFROMSTREAM']); + NewHTML.LoadFromStream(ss); + finally + ss.Free; + end; +end; ++
+The preceding contains program code enclosed in an HTML PRE tag. +
++The following is an example of the HTML DL tag. Please note the more conventional +line spacing (instead of double spacing) used for the DT and DD elements in the +definition list. +
++The preceding s an example of the HTML DL tag. +
++The following table does not specify margins on any of the edges. There is limited CSS +support for the TABLE element. +
+Column A | +Column B | +Column C | +
---|---|---|
Row 1 Col A | +Row 1 Col B | +Row 1 Col C | +
Row 2 Col A | +Row 2 Col B | +Row 2 Col C | +
Row 3 Col A | +Row 3 Col B | +Row 3 Col C | +
+The following table specifies a margin of 96px on all edges. Only top and bottom margins +actually work. +
+Column A | +Column B | +Column C | +
---|---|---|
Row 1 Col A | +Row 1 Col B | +Row 1 Col C | +
Row 2 Col A | +Row 2 Col B | +Row 2 Col C | +
Row 3 Col A | +Row 3 Col B | +Row 3 Col C | +
+This concludes the TABLE portion of the program. +
++The following contains list items in a HTML UL tag. Please note the more conventional +line spacing (instead of double spacing) used for the LI elements in the list. +Top and bottom margins in CSS are supported for the UL element. +
++The preceding contains list items in a HTML UL tag. +
++The following contains list items in a HTML OL tag. Please note the more conventional +line spacing (instead of double spacing) used for the LI elements in the list. +Top and bottom margins in CSS are supported for the OL element. +
++The preceding contains list items in a HTML OL tag. +
++The WHO was founded in 1948. +
++
+Written by John Doe.+For 60 years, WWF has worked to help +people and nature thrive. As the world's leading conservation organization, +WWF works in nearly 100 countries. At every level, we collaborate with people around +the world to develop and deliver innovative solutions that protect communities, +wildlife, and the places in which they live. ++
+WWF's goal is to: Build a future where people live in harmony with nature.
+
+Bold using the HTML B tag.
+Strong using the HTML STRONG tag.
+Italic using the HTML I tag.
+Emphasis using the HTML EM tag.
+Mark using the HTML MARK tag.
+Small using the HTML SMALL tag.
+Deleted using the HTML DEL tag.
+Superscript using the HTML SUP tag.
+Inserted uing the HTML INS tag.
+Subscript using the HTML SUB tag.
+Variable using the HTML VAR tag.
+
Character | +Entity | +
---|---|
& | +& | +
< | +< | +
> | +> | +
" | +" | +
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt +ut labore et dolore magna aliqua. Sed id semper risus in. Venenatis cras sed felis eget +velit aliquet sagittis. Sagittis vitae et leo duis ut diam quam nulla porttitor. Luctus +accumsan tortor posuere ac ut. Aliquet sagittis id consectetur purus ut faucibus. +
+ +