/[jscoverage]/trunk/tests/http-server-charset.c
ViewVC logotype

Diff of /trunk/tests/http-server-charset.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 255 by siliconforks, Sun Oct 5 18:08:00 2008 UTC revision 256 by siliconforks, Sun Oct 5 18:10:38 2008 UTC
# Line 115  Line 115 
115                  "var s = 'e';\n"                  "var s = 'e';\n"
116                  "var r = /e/;\n";                  "var r = /e/;\n";
117      }      }
118        else if (strcmp(url, "http://127.0.0.1:8000/bogus.js") == 0 || strcmp(url, "/bogus.js") == 0) {
119          message = "HTTP/1.1 200 OK\r\n"
120                    "Connection: close\r\n"
121                    "Content-type: text/javascript; charset=BOGUS\r\n"
122                    "\r\n"
123                    "var s = 'e';\n"
124                    "var r = /e/;\n";
125        }
126        else if (strcmp(url, "http://127.0.0.1:8000/malformed.js") == 0 || strcmp(url, "/malformed.js") == 0) {
127          message = "HTTP/1.1 200 OK\r\n"
128                    "Connection: close\r\n"
129                    "Content-type: text/javascript; charset=UTF-8\r\n"
130                    "\r\n"
131                    "var s = 'e';\n"
132                    "var r = /e/;\n";
133        }
134      else {      else {
135        abort();        abort();
136      }      }

Legend:
Removed from v.255  
changed lines
  Added in v.256

  ViewVC Help
Powered by ViewVC 1.1.24