From b72448c92e202a943906c879cb266b52ac4fe75d Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Tue, 1 Nov 2011 13:33:11 +0200 Subject: [PATCH] Bug 482921 part 12 - Reftests for View Source reimplementation. rs=Olli.Pettay. --- .../tests/reftest/bug482921-1-ref.html | 24 ++++++++++++++++++ .../htmlparser/tests/reftest/bug482921-1.html | 24 ++++++++++++++++++ .../tests/reftest/bug482921-2-ref.html | 25 +++++++++++++++++++ .../tests/reftest/bug482921-2.xhtml | 25 +++++++++++++++++++ parser/htmlparser/tests/reftest/reftest.list | 2 ++ 5 files changed, 100 insertions(+) create mode 100644 parser/htmlparser/tests/reftest/bug482921-1-ref.html create mode 100644 parser/htmlparser/tests/reftest/bug482921-1.html create mode 100644 parser/htmlparser/tests/reftest/bug482921-2-ref.html create mode 100644 parser/htmlparser/tests/reftest/bug482921-2.xhtml diff --git a/parser/htmlparser/tests/reftest/bug482921-1-ref.html b/parser/htmlparser/tests/reftest/bug482921-1-ref.html new file mode 100644 index 00000000000..60d310a8a75 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-1-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> +<head> +<title>Title</title> +<script> +var lt = "<"; +<!-- +var s = "<script>foo</script>"; +--> +</script><!-- Not quite optimal highlight there. --> +<style> +/* </foo> */ +</style> +</head> +<body> +<p>Entity: &amp; </p> +<iframe><img></iframe> +<noscript><p>Not para</p></noscript> +<svg> +<title><![CDATA[bar]]></title> +<script><!-- this is a comment --></script> +</svg> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug482921-1.html b/parser/htmlparser/tests/reftest/bug482921-1.html new file mode 100644 index 00000000000..f42b888ea21 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-1.html @@ -0,0 +1,24 @@ + + + +Title + + + + +

Entity: &

+ + + +bar + + + + diff --git a/parser/htmlparser/tests/reftest/bug482921-2-ref.html b/parser/htmlparser/tests/reftest/bug482921-2-ref.html new file mode 100644 index 00000000000..1734e15d02a --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-2-ref.html @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<?foo bar?> +<html> +<head> +<title>Title</title> +<script> +var s = "<script>foo</script>"; +<!-- +var s = "<script>foo</script>"; +--> +</script> +<style> +/* <foo/> */ +</style> +</head> +<body> +<p>Entity: &amp; </p> +<iframe><img></iframe> +<noscript><p>Not para</p></noscript> +<svg> +<title><![CDATA[bar]]></title> +<script><!-- this is a comment --></script> +</svg> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug482921-2.xhtml b/parser/htmlparser/tests/reftest/bug482921-2.xhtml new file mode 100644 index 00000000000..4d3f0b6a73c --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-2.xhtml @@ -0,0 +1,25 @@ + + + + +Title +"; + + + + + +

Entity: &

+ + + +bar + + + + diff --git a/parser/htmlparser/tests/reftest/reftest.list b/parser/htmlparser/tests/reftest/reftest.list index 3e97f0100a1..cb26d7686dc 100644 --- a/parser/htmlparser/tests/reftest/reftest.list +++ b/parser/htmlparser/tests/reftest/reftest.list @@ -4,6 +4,8 @@ == bug582940-1.html bug582940-1-ref.html == bug592656-1.html bug592656-1-ref.html == bug608373-1.html bug608373-1-ref.html +== view-source:bug482921-1.html bug482921-1-ref.html +== view-source:bug482921-2.xhtml bug482921-2-ref.html == view-source:bug673094-1.html view-source:bug673094-1-ref.html == bug696651-1.html bug696651-1-ref.html == bug696651-2.html bug696651-2-ref.html