mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Syntax highlighting.
This commit is contained in:
parent
c11be25ff8
commit
6b7427454a
105 changed files with 17571 additions and 91 deletions
43
sh/tests/cases/004_url_parsing.html
Normal file
43
sh/tests/cases/004_url_parsing.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<pre id="sh_004_url_parsing" class="brush: as3;">
|
||||
/**
|
||||
* Please see <http://www.alexgorbatchev.come/?test=1&y=2>
|
||||
*/
|
||||
var home = "http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;";
|
||||
// < http://www.gnu.org/licenses/?test=1&y=2 >.
|
||||
|
||||
// Test embedded URLs that terminate at a left angle bracket.
|
||||
// See bug #28: http://bitbucket.org/alexg/syntaxhighlighter/issue/28/
|
||||
"<location>http://www.example.com/song2.mp3</location>";
|
||||
</pre>
|
||||
|
||||
<script type="text/javascript">
|
||||
queue(function()
|
||||
{
|
||||
var $sh;
|
||||
|
||||
module('004_url_parsing');
|
||||
|
||||
test('check that urls are present', function()
|
||||
{
|
||||
$sh = $('#sh_004_url_parsing');
|
||||
|
||||
ok_sh($sh);
|
||||
ok_toolbar($sh);
|
||||
ok_code($sh);
|
||||
|
||||
var expected = [
|
||||
'http://www.alexgorbatchev.come/?test=1&y=2',
|
||||
'http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;',
|
||||
'http://www.gnu.org/licenses/?test=1&y=2',
|
||||
'http://bitbucket.org/alexg/syntaxhighlighter/issue/28/',
|
||||
'http://www.example.com/song2.mp3'
|
||||
];
|
||||
|
||||
$sh.find('td.code a').each(function(index)
|
||||
{
|
||||
equal($(this).attr('href'), expected[index], 'href');
|
||||
equal($(this).text(), expected[index], 'text');
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue