From 8812a62c9cd99276c394c7f88192b9c115825ef9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Jul 2013 16:42:48 +0200 Subject: [PATCH] Test for JS comments --- src/test_filter_rewrite.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test_filter_rewrite.cpp b/src/test_filter_rewrite.cpp index 6a81559..00065a4 100644 --- a/src/test_filter_rewrite.cpp +++ b/src/test_filter_rewrite.cpp @@ -84,6 +84,9 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) " \n" " \n" " \n" + " \n" + " \n" + " \n" " \n" "\n" ; @@ -307,11 +310,11 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_2 ) "my.location = 'http://targetsite/images/bg.png';\n" "my.other = \"http://targetsite/images/fg.png\";\n" "my.thrd = \"other\";\n" - "// http://targetsite/images/bg.png\n"; + "// \"http://targetsite/images/bg.png\n"; const char *resp_expected = "HTTP/1.1 200 OK\r\n" - "Content-Length: 194\r\n" + "Content-Length: 195\r\n" "Content-Type: application/javascript\r\n" "Link: ; rel=absolute\r\n" "Link: ; rel=relative\r\n" @@ -320,7 +323,7 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_2 ) "my.location = 'http://proxyhost/proxypath/targetsite/images/bg.png';\n" "my.other = \"http://proxyhost/proxypath/targetsite/images/fg.png\";\n" "my.thrd = \"other\";\n" - "// http://targetsite/images/bg.png\n"; + "// \"http://targetsite/images/bg.png\n"; Z_GDU *gdu_res; mp::odr dec(ODR_DECODE); -- 1.7.10.4