Changeset 20027
- Timestamp:
- 09/27/08 13:28:46 (5 years ago)
- Location:
- lang/cplusplus/llv8call/trunk
- Files:
-
- 1 modified
- 1 moved
-
ext/curl/curl.cc (modified) (1 diff)
-
t/020_ext/02_curl.js (moved) (moved from lang/cplusplus/llv8call/trunk/t/020_ext/02_urlfetch.js) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/curl/curl.cc
r19912 r20027 220 220 Handle<Object> obj = Object::New(); 221 221 obj->Set(v8::String::New("urlfetch"), v8::FunctionTemplate::New(UrlFetch)->GetFunction()); 222 obj->Set(v8::String::New("Version"), String::New(curl_version())); 222 223 return obj; 223 224 } -
lang/cplusplus/llv8call/trunk/t/020_ext/02_curl.js
r19912 r20027 3 3 Test.More.plan({tests:1}); 4 4 5 check_lib("org.coderepos.curl"); 5 6 6 check_lib("org.coderepos.curl");7 Test.More.like(org.coderepos.curl.Version, /^libcurl\/[0-9.]+/, org.coderepos.curl.Version); 7 8 8 9 var t = org.coderepos.curl.urlfetch("http://search.cpan.org/").responseText;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)