Changeset 41895 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Mar 21, 2009, 7:52:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/tests/testapi.c
r41893 r41895 860 860 861 861 string = JSValueToStringCopy(context, function, NULL); 862 assertEqualsAsUTF8String(JSValueMakeString(context, string), "function foo(foo) { \nreturn foo;\n}");862 assertEqualsAsUTF8String(JSValueMakeString(context, string), "function foo(foo) { return foo;\n}"); 863 863 JSStringRelease(string); 864 864 … … 968 968 969 969 char* scriptUTF8 = createStringWithContentsOfFile(scriptPath); 970 if (!scriptUTF8) 970 if (!scriptUTF8) { 971 971 printf("FAIL: Test script could not be loaded.\n"); 972 else { 972 failed = 1; 973 } else { 973 974 script = JSStringCreateWithUTF8CString(scriptUTF8); 974 975 result = JSEvaluateScript(context, script, NULL, NULL, 1, &exception); … … 982 983 CFRelease(exceptionCF); 983 984 JSStringRelease(exceptionIString); 985 failed = 1; 984 986 } 985 987 JSStringRelease(script);
Note:
See TracChangeset
for help on using the changeset viewer.