1 <pre id="sh_004_url_parsing" class="brush: as3;">
3 * Please see <http://www.alexgorbatchev.come/?test=1&y=2>
5 var home = "http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;";
6 // < http://www.gnu.org/licenses/?test=1&y=2 >.
8 // Test embedded URLs that terminate at a left angle bracket.
9 // See bug #28: http://bitbucket.org/alexg/syntaxhighlighter/issue/28/
10 "<location>http://www.example.com/song2.mp3</location>";
13 <script type="text/javascript">
18 module('004_url_parsing');
20 test('check that urls are present', function()
22 $sh = $('#sh_004_url_parsing');
29 'http://www.alexgorbatchev.come/?test=1&y=2',
30 'http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;',
31 'http://www.gnu.org/licenses/?test=1&y=2',
32 'http://bitbucket.org/alexg/syntaxhighlighter/issue/28/',
33 'http://www.example.com/song2.mp3'
36 $sh.find('td.code a').each(function(index)
38 equal($(this).attr('href'), expected[index], 'href');
39 equal($(this).text(), expected[index], 'text');