mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
r6537 테스트 코드 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6538 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3cc3b8cc39
commit
38ece6386a
1 changed files with 8 additions and 5 deletions
|
|
@ -22,7 +22,7 @@
|
|||
$this->assertEqual($expected_result, $result);
|
||||
|
||||
$content = 'src="../images/foo.jpg"';
|
||||
$expected_result = 'src="http://domain.com/images/foo.jpg"';
|
||||
$expected_result = 'src="http://domain.com/test_path/../images/foo.jpg"';
|
||||
$result = $oController->replaceSrc($content, $path);
|
||||
$this->assertEqual($expected_result, $result);
|
||||
|
||||
|
|
@ -31,8 +31,10 @@
|
|||
$result = $oController->replaceSrc($content, $path);
|
||||
$this->assertEqual($expected_result, $result);
|
||||
|
||||
// 프로토콜
|
||||
// http, https, ftp, telnet, mailto, mms
|
||||
/*
|
||||
* 프로토콜
|
||||
* http, https, ftp, telnet, mailto, mms
|
||||
*/
|
||||
$content = 'href="https://domail.com/"';
|
||||
$expected_result = $content;
|
||||
$result = $oController->replaceSrc($content, $path);
|
||||
|
|
@ -50,8 +52,9 @@
|
|||
|
||||
// + 포트번호
|
||||
$path = 'http://domain.com:123/test_path/opage.php';
|
||||
$content = './images/foo.jpg';
|
||||
$expected_result = 'http://domain.com:123/test_path/images/foo.jpg';
|
||||
|
||||
$content = 'src="./images/foo.jpg"';
|
||||
$expected_result = 'src="http://domain.com:123/test_path/images/foo.jpg"';
|
||||
$result = $oController->replaceSrc($content, $path);
|
||||
$this->assertEqual($expected_result, $result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue