зеркало из https://github.com/mozilla/pjs.git
Bug 482921 part 12 - Reftests for View Source reimplementation. rs=Olli.Pettay.
This commit is contained in:
Родитель
28dee770d2
Коммит
b72448c92e
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><span class="doctype"><!DOCTYPE html></span>
|
||||
<span><<span class="start-tag">html</span>></span>
|
||||
<span><<span class="start-tag">head</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span>
|
||||
var lt = "<";
|
||||
<!--
|
||||
var s = "<script>foo</script>";
|
||||
-->
|
||||
<span class="end-tag"></script></span><span></span><span class="comment"><!-- Not quite optimal highlight there. --></span>
|
||||
<span><<span class="start-tag">style</span>></span>
|
||||
/* </foo> */
|
||||
<span></<span class="end-tag">style</span>></span>
|
||||
<span></<span class="end-tag">head</span>></span>
|
||||
<span><<span class="start-tag">body</span>></span>
|
||||
<span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span><<span class="start-tag">iframe</span>></span><img><span></<span class="end-tag">iframe</span>></span>
|
||||
<span><<span class="start-tag">noscript</span>></span><p>Not para</p><span></<span class="end-tag">noscript</span>></span>
|
||||
<span><<span class="start-tag">svg</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span></<span class="end-tag">svg</span>></span>
|
||||
<span></<span class="end-tag">body</span>></span>
|
||||
<span></<span class="end-tag">html</span>></span>
|
|
@ -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: & </p>
|
||||
<iframe><img></iframe>
|
||||
<noscript><p>Not para</p></noscript>
|
||||
<svg>
|
||||
<title><![CDATA[bar]]></title>
|
||||
<script><!-- this is a comment --></script>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><span class="pi"><?xml version="1.0" encoding="utf-8"?></span>
|
||||
<span class="pi"><?foo bar?></span>
|
||||
<span><<span class="start-tag">html</span>></span>
|
||||
<span><<span class="start-tag">head</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span>
|
||||
var s = "<span><<span class="start-tag">script</span>></span><span>foo</span><span></<span class="end-tag">script</span>></span>";
|
||||
<span class="comment"><!--
|
||||
var s = "<script>foo</script>";
|
||||
--></span>
|
||||
<span></<span class="end-tag">script</span>></span><span></span>
|
||||
<span><<span class="start-tag">style</span>></span>
|
||||
/* <span><<span class="start-tag">foo</span><span>/</span>></span> */
|
||||
<span></<span class="end-tag">style</span>></span>
|
||||
<span></<span class="end-tag">head</span>></span>
|
||||
<span><<span class="start-tag">body</span>></span>
|
||||
<span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span>
|
||||
<span><<span class="start-tag">iframe</span>></span><span></span><span><<span class="start-tag">img</span>></span><span></<span class="end-tag">iframe</span>></span>
|
||||
<span><<span class="start-tag">noscript</span>></span><span><<span class="start-tag">p</span>></span><span>Not para</span><span></<span class="end-tag">p</span>></span><span></<span class="end-tag">noscript</span>></span>
|
||||
<span><<span class="start-tag">svg</span>></span>
|
||||
<span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span>
|
||||
<span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span>
|
||||
<span></<span class="end-tag">svg</span>></span>
|
||||
<span></<span class="end-tag">body</span>></span>
|
||||
<span></<span class="end-tag">html</span>></span>
|
|
@ -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: & </p>
|
||||
<iframe><img></iframe>
|
||||
<noscript><p>Not para</p></noscript>
|
||||
<svg>
|
||||
<title><![CDATA[bar]]></title>
|
||||
<script><!-- this is a comment --></script>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче