Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug 246620 - Add line numbers to View Source for Firefox - fix for re…

…ftests; r=smaug
  • Loading branch information...
commit d7c78a168d4277be595a8e38f3d00d83becface9 1 parent 03fde71
Geoff Lankow authored December 28, 2011
51  parser/htmlparser/tests/reftest/bug482921-1-ref.html
... ...
@@ -1,24 +1,27 @@
1  
-<!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">&lt;!DOCTYPE html&gt;</span>
2  
-<span>&lt;<span class="start-tag">html</span>&gt;</span>
3  
-<span>&lt;<span class="start-tag">head</span>&gt;</span>
4  
-<span>&lt;<span class="start-tag">title</span>&gt;</span><span>Title</span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
5  
-<span>&lt;<span class="start-tag">script</span>&gt;</span>
6  
-var lt = "&lt;";
7  
-&lt;!--
8  
-var s = "&lt;script&gt;foo&lt;/script&gt;";
9  
---&gt;
10  
-<span class="end-tag">&lt;/script&gt;</span><span></span><span class="comment">&lt;!-- Not quite optimal highlight there. --&gt;</span>
11  
-<span>&lt;<span class="start-tag">style</span>&gt;</span>
12  
-/* &lt;/foo&gt; */
13  
-<span>&lt;/<span class="end-tag">style</span>&gt;</span>
14  
-<span>&lt;/<span class="end-tag">head</span>&gt;</span>
15  
-<span>&lt;<span class="start-tag">body</span>&gt;</span>
16  
-<span>&lt;<span class="start-tag">p</span>&gt;</span><span>Entity: <span class="entity"><span>&amp;</span>amp; </span></span><span>&lt;/<span class="end-tag">p</span>&gt;</span>
17  
-<span>&lt;<span class="start-tag">iframe</span>&gt;</span>&lt;img&gt;<span>&lt;/<span class="end-tag">iframe</span>&gt;</span>
18  
-<span>&lt;<span class="start-tag">noscript</span>&gt;</span>&lt;p&gt;Not para&lt;/p&gt;<span>&lt;/<span class="end-tag">noscript</span>&gt;</span>
19  
-<span>&lt;<span class="start-tag">svg</span>&gt;</span>
20  
-<span>&lt;<span class="start-tag">title</span>&gt;</span><span></span><span class="cdata">&lt;![CDATA[bar]]&gt;</span><span></span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
21  
-<span>&lt;<span class="start-tag">script</span>&gt;</span><span></span><span class="comment">&lt;!-- this is a comment --&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span>
22  
-<span>&lt;/<span class="end-tag">svg</span>&gt;</span>
23  
-<span>&lt;/<span class="end-tag">body</span>&gt;</span>
24  
-<span>&lt;/<span class="end-tag">html</span>&gt;</span>
  1
+<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="doctype">&lt;!DOCTYPE html&gt;</span>
  2
+<span id></span><span>&lt;<span class="start-tag">html</span>&gt;</span>
  3
+<span id></span><span>&lt;<span class="start-tag">head</span>&gt;</span>
  4
+<span id></span><span>&lt;<span class="start-tag">title</span>&gt;</span><span>Title</span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
  5
+<span id></span><span>&lt;<span class="start-tag">script</span>&gt;</span>
  6
+<span id></span>var lt = "&lt;";
  7
+<span id></span>&lt;!--
  8
+<span id></span>var s = "&lt;script&gt;foo&lt;/script&gt;";
  9
+<span id></span>--&gt;
  10
+<span id></span><span class="end-tag">&lt;/script&gt;</span><span></span><span class="comment">&lt;!-- Not quite optimal highlight there. --&gt;</span>
  11
+<span id></span><span>&lt;<span class="start-tag">style</span>&gt;</span>
  12
+<span id></span>/* &lt;/foo&gt; */
  13
+<span id></span><span>&lt;/<span class="end-tag">style</span>&gt;</span>
  14
+<span id></span><span>&lt;/<span class="end-tag">head</span>&gt;</span>
  15
+<span id></span><span>&lt;<span class="start-tag">body</span>&gt;</span>
  16
+<span id></span><span>&lt;<span class="start-tag">p</span>&gt;</span><span>Entity: <span class="entity"><span>&amp;</span>amp; </span></span><span>&lt;/<span class="end-tag">p</span>&gt;</span>
  17
+<span id></span><span>&lt;<span class="start-tag">iframe</span>&gt;</span>&lt;img&gt;<span>&lt;/<span class="end-tag">iframe</span>&gt;</span>
  18
+<span id></span><span>&lt;<span class="start-tag">noscript</span>&gt;</span>&lt;p&gt;Not para&lt;/p&gt;<span>&lt;/<span class="end-tag">noscript</span>&gt;</span>
  19
+<span id></span><span>&lt;<span class="start-tag">svg</span>&gt;</span>
  20
+<span id></span><span>&lt;<span class="start-tag">title</span>&gt;</span><span></span><span class="cdata">&lt;![CDATA[bar]]&gt;</span><span></span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
  21
+<span id></span><span>&lt;<span class="start-tag">script</span>&gt;</span><span></span><span class="comment">&lt;!-- this is a comment --&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span>
  22
+<span id></span><span>&lt;/<span class="end-tag">svg</span>&gt;</span>
  23
+<span id></span><span>&lt;/<span class="end-tag">body</span>&gt;</span>
  24
+<span id></span><span>&lt;/<span class="end-tag">html</span>&gt;</span>
  25
+<span id></span>
  26
+</pre>
  27
+<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
53  parser/htmlparser/tests/reftest/bug482921-2-ref.html
... ...
@@ -1,25 +1,28 @@
1  
-<!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">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
2  
-<span class="pi">&lt;?foo bar?&gt;</span>
3  
-<span>&lt;<span class="start-tag">html</span>&gt;</span>
4  
-<span>&lt;<span class="start-tag">head</span>&gt;</span>
5  
-<span>&lt;<span class="start-tag">title</span>&gt;</span><span>Title</span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
6  
-<span>&lt;<span class="start-tag">script</span>&gt;</span>
7  
-var s = "<span>&lt;<span class="start-tag">script</span>&gt;</span><span>foo</span><span>&lt;/<span class="end-tag">script</span>&gt;</span>";
8  
-<span class="comment">&lt;!--
9  
-var s = "&lt;script&gt;foo&lt;/script&gt;";
10  
---&gt;</span>
11  
-<span>&lt;/<span class="end-tag">script</span>&gt;</span><span></span>
12  
-<span>&lt;<span class="start-tag">style</span>&gt;</span>
13  
-/* <span>&lt;<span class="start-tag">foo</span><span>/</span>&gt;</span> */
14  
-<span>&lt;/<span class="end-tag">style</span>&gt;</span>
15  
-<span>&lt;/<span class="end-tag">head</span>&gt;</span>
16  
-<span>&lt;<span class="start-tag">body</span>&gt;</span>
17  
-<span>&lt;<span class="start-tag">p</span>&gt;</span><span>Entity: <span class="entity"><span>&amp;</span>amp; </span></span><span>&lt;/<span class="end-tag">p</span>&gt;</span>
18  
-<span>&lt;<span class="start-tag">iframe</span>&gt;</span><span></span><span>&lt;<span class="start-tag">img</span>&gt;</span><span>&lt;/<span class="end-tag">iframe</span>&gt;</span>
19  
-<span>&lt;<span class="start-tag">noscript</span>&gt;</span><span>&lt;<span class="start-tag">p</span>&gt;</span><span>Not para</span><span>&lt;/<span class="end-tag">p</span>&gt;</span><span>&lt;/<span class="end-tag">noscript</span>&gt;</span>
20  
-<span>&lt;<span class="start-tag">svg</span>&gt;</span>
21  
-<span>&lt;<span class="start-tag">title</span>&gt;</span><span></span><span class="cdata">&lt;![CDATA[bar]]&gt;</span><span></span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
22  
-<span>&lt;<span class="start-tag">script</span>&gt;</span><span></span><span class="comment">&lt;!-- this is a comment --&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span>
23  
-<span>&lt;/<span class="end-tag">svg</span>&gt;</span>
24  
-<span>&lt;/<span class="end-tag">body</span>&gt;</span>
25  
-<span>&lt;/<span class="end-tag">html</span>&gt;</span>
  1
+<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="pi">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
  2
+<span id></span><span class="pi">&lt;?foo bar?&gt;</span>
  3
+<span id></span><span>&lt;<span class="start-tag">html</span>&gt;</span>
  4
+<span id></span><span>&lt;<span class="start-tag">head</span>&gt;</span>
  5
+<span id></span><span>&lt;<span class="start-tag">title</span>&gt;</span><span>Title</span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
  6
+<span id></span><span>&lt;<span class="start-tag">script</span>&gt;</span>
  7
+<span id></span>var s = "<span>&lt;<span class="start-tag">script</span>&gt;</span><span>foo</span><span>&lt;/<span class="end-tag">script</span>&gt;</span>";
  8
+<span id></span><span class="comment">&lt;!--
  9
+<span id></span>var s = "&lt;script&gt;foo&lt;/script&gt;";
  10
+<span id></span>--&gt;</span>
  11
+<span id></span><span>&lt;/<span class="end-tag">script</span>&gt;</span><span></span>
  12
+<span id></span><span>&lt;<span class="start-tag">style</span>&gt;</span>
  13
+<span id></span>/* <span>&lt;<span class="start-tag">foo</span><span>/</span>&gt;</span> */
  14
+<span id></span><span>&lt;/<span class="end-tag">style</span>&gt;</span>
  15
+<span id></span><span>&lt;/<span class="end-tag">head</span>&gt;</span>
  16
+<span id></span><span>&lt;<span class="start-tag">body</span>&gt;</span>
  17
+<span id></span><span>&lt;<span class="start-tag">p</span>&gt;</span><span>Entity: <span class="entity"><span>&amp;</span>amp; </span></span><span>&lt;/<span class="end-tag">p</span>&gt;</span>
  18
+<span id></span><span>&lt;<span class="start-tag">iframe</span>&gt;</span><span></span><span>&lt;<span class="start-tag">img</span>&gt;</span><span>&lt;/<span class="end-tag">iframe</span>&gt;</span>
  19
+<span id></span><span>&lt;<span class="start-tag">noscript</span>&gt;</span><span>&lt;<span class="start-tag">p</span>&gt;</span><span>Not para</span><span>&lt;/<span class="end-tag">p</span>&gt;</span><span>&lt;/<span class="end-tag">noscript</span>&gt;</span>
  20
+<span id></span><span>&lt;<span class="start-tag">svg</span>&gt;</span>
  21
+<span id></span><span>&lt;<span class="start-tag">title</span>&gt;</span><span></span><span class="cdata">&lt;![CDATA[bar]]&gt;</span><span></span><span>&lt;/<span class="end-tag">title</span>&gt;</span>
  22
+<span id></span><span>&lt;<span class="start-tag">script</span>&gt;</span><span></span><span class="comment">&lt;!-- this is a comment --&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span>
  23
+<span id></span><span>&lt;/<span class="end-tag">svg</span>&gt;</span>
  24
+<span id></span><span>&lt;/<span class="end-tag">body</span>&gt;</span>
  25
+<span id></span><span>&lt;/<span class="end-tag">html</span>&gt;</span>
  26
+<span id></span>
  27
+</pre>
  28
+<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
30  parser/htmlparser/tests/reftest/bug535530-2-ref.html
... ...
@@ -1,13 +1,17 @@
1  
-<!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">&lt;!DOCTYPE html&gt;</span>
2  
-XX<span class="error">&amp;</span>XX
3  
-XX<span class="error">&amp;</span>nXX
4  
-XX<span class="error">&amp;</span>noXX
5  
-XX<span class="error entity">&amp;not</span>XX
6  
-XX<span class="error entity">&amp;noti</span>XX
7  
-XX<span class="error entity">&amp;notin</span>XX
8  
-XX<span class="error">&amp;</span>;XX
9  
-XX<span class="error">&amp;</span>n;XX
10  
-XX<span class="error">&amp;</span>no;XX
11  
-XX<span class="entity">&amp;not;</span>XX
12  
-XX<span class="error entity">&amp;noti</span>;XX
13  
-XX<span class="entity">&amp;notin;</span>XX
  1
+<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="doctype">&lt;!DOCTYPE html&gt;</span>
  2
+<span id></span>XX<span class="error">&amp;</span>XX
  3
+<span id></span>XX<span class="error">&amp;</span>nXX
  4
+<span id></span>XX<span class="error">&amp;</span>noXX
  5
+<span id></span>XX<span class="error entity">&amp;not</span>XX
  6
+<span id></span>XX<span class="error entity">&amp;noti</span>XX
  7
+<span id></span>XX<span class="error entity">&amp;notin</span>XX
  8
+<span id></span>XX<span class="error">&amp;</span>;XX
  9
+<span id></span>XX<span class="error">&amp;</span>n;XX
  10
+<span id></span>XX<span class="error">&amp;</span>no;XX
  11
+<span id></span>XX<span class="entity">&amp;not;</span>XX
  12
+<span id></span>XX<span class="error entity">&amp;noti</span>;XX
  13
+<span id></span>XX<span class="entity">&amp;notin;</span>XX
  14
+<span id></span>
  15
+<span id></span>
  16
+</pre>
  17
+<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->
5  parser/htmlparser/tests/reftest/bug704667-1-ref.html
... ...
@@ -1 +1,4 @@
1  
-<!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="error comment">&lt;!--&gt;</span> <span class="error comment">&lt;!X&gt;</span>
  1
+<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><pre id><span class="error comment">&lt;!--&gt;</span> <span class="error comment">&lt;!X&gt;</span>
  2
+<span id></span>
  3
+</pre>
  4
+<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. -->

0 notes on commit d7c78a1

Please sign in to comment.
Something went wrong with that request. Please try again.