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 @@ + + + + + +

H1 Heading

+

H2 Heading

+

H3 Heading

+

H4 Heading

+
H5 Heading
+
H6 Heading
+

+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. +

+

PRE Element

+

+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. +

+

DL Element

+

+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. +

+
+
Item A
+
Info for Item A
+
Item B
+
Info for Item B
+
Item C
+
Info for Item C
+
+

+The preceding s an example of the HTML DL tag. +

+

TABLE Element

+

+The following table does not specify margins on any of the edges. There is limited CSS +support for the TABLE element. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table A Caption
Column AColumn BColumn C
Row 1 Col ARow 1 Col BRow 1 Col C
Row 2 Col ARow 2 Col BRow 2 Col C
Row 3 Col ARow 3 Col BRow 3 Col C
+

+The following table specifies a margin of 96px on all edges. Only top and bottom margins +actually work. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table B Caption
Column AColumn BColumn C
Row 1 Col ARow 1 Col BRow 1 Col C
Row 2 Col ARow 2 Col BRow 2 Col C
Row 3 Col ARow 3 Col BRow 3 Col C
+

+This concludes the TABLE portion of the program. +

+

UL Element

+

+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. +

+

OL Element

+

+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. +

+
    +
  1. List Item A
  2. +
      +
    1. List Item AA
    2. +
    3. List Item AB
    4. +
    5. List Item AC
    6. +
    +
  3. List Item B +
      +
    1. List Item B1
    2. +
    3. List Item B2
    4. +
    5. List Item B3
    6. +
    7. List Item B4
    8. +
    9. List Item B5
    10. +
    11. List Item B6
    12. +
    13. List Item B7
    14. +
    15. List Item B8
    16. +
    17. List Item B9
    18. +
    19. List Item B10
    20. +
    +
  4. +
  5. List Item C
  6. +
+

+The preceding contains list items in a HTML OL tag. +

+
+

ABBR Element

+

+The WHO was founded in 1948. +

+

ADDRESS Element

+

+

+Written by John Doe.
+Visit us at:
+https://example.com
+P.O. Box 564, Disneyland
+USA +
+

+

A Element

+

+Visit W3Schools.com! +

+

BLOCKQUOTE Element

+
+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. +
+

Q Element

+

+WWF's goal is to: Build a future where people live in harmony with nature. +

+

Phrasing Elements

+

+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. +

+ +

Named Character Entities

+ + + + + + + + + + + + + + + + + + + + + +
CharacterEntity
&&
<&lt;
>&gt;
"&quot;
+

+

Tempor Incididunt

+

+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 @@ + + + + +

H1 Heading

+

H2 Heading

+

H3 Heading

+

H4 Heading

+
H5 Heading
+
H6 Heading
+

+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. +

+

PRE Element

+

+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. +

+

DL Element

+

+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. +

+
+
Item A
+
Info for Item A
+
Item B
+
Info for Item B
+
Item C
+
Info for Item C
+
+

+The preceding s an example of the HTML DL tag. +

+

TABLE Element

+

+The following table does not specify margins on any of the edges. There is limited CSS +support for the TABLE element. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table A Caption
Column AColumn BColumn C
Row 1 Col ARow 1 Col BRow 1 Col C
Row 2 Col ARow 2 Col BRow 2 Col C
Row 3 Col ARow 3 Col BRow 3 Col C
+

+The following table specifies a margin of 96px on all edges. Only top and bottom margins +actually work. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table B Caption
Column AColumn BColumn C
Row 1 Col ARow 1 Col BRow 1 Col C
Row 2 Col ARow 2 Col BRow 2 Col C
Row 3 Col ARow 3 Col BRow 3 Col C
+

+This concludes the TABLE portion of the program. +

+

UL Element

+

+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. +

+

OL Element

+

+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. +

+
    +
  1. List Item A
  2. +
      +
    1. List Item AA
    2. +
    3. List Item AB
    4. +
    5. List Item AC
    6. +
    +
  3. List Item B +
      +
    1. List Item B1
    2. +
    3. List Item B2
    4. +
    5. List Item B3
    6. +
    7. List Item B4
    8. +
    9. List Item B5
    10. +
    11. List Item B6
    12. +
    13. List Item B7
    14. +
    15. List Item B8
    16. +
    17. List Item B9
    18. +
    19. List Item B10
    20. +
    +
  4. +
  5. List Item C
  6. +
+

+The preceding contains list items in a HTML OL tag. +

+
+

ABBR Element

+

+The WHO was founded in 1948. +

+

ADDRESS Element

+

+

+Written by John Doe.
+Visit us at:
+https://example.com
+P.O. Box 564, Disneyland
+USA +
+

+

A Element

+

+Visit W3Schools.com! +

+

BLOCKQUOTE Element

+
+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. +
+

Q Element

+

+WWF's goal is to: Build a future where people live in harmony with nature. +

+

Phrasing Elements

+

+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. +

+ +

Named Character Entities

+ + + + + + + + + + + + + + + + + + + + + +
CharacterEntity
&&amp;
<&lt;
>&gt;
"&quot;
+

+

Tempor Incididunt

+

+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. +

+ +