From 38ece6386aefb2c2aaad53b950a1e56635335a85 Mon Sep 17 00:00:00 2001 From: bnu Date: Sun, 14 Jun 2009 10:36:15 +0000 Subject: [PATCH] =?UTF-8?q?r6537=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6538 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- tests/modules/module/opage.test.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/modules/module/opage.test.php b/tests/modules/module/opage.test.php index 3fd6b762f..eb9282ff3 100644 --- a/tests/modules/module/opage.test.php +++ b/tests/modules/module/opage.test.php @@ -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);