WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
125607
Test new JSContext name APIs
https://bugs.webkit.org/show_bug.cgi?id=125607
Summary
Test new JSContext name APIs
Joseph Pecoraro
Reported
2013-12-11 17:47:40 PST
I should have written a test when I added these APIs. Better late then never.
Attachments
[PATCH] Add Test
(7.69 KB, patch)
2013-12-11 17:48 PST
,
Joseph Pecoraro
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2013-12-11 17:48:44 PST
Created
attachment 219021
[details]
[PATCH] Add Test
Darin Adler
Comment 2
2013-12-12 00:28:06 PST
Comment on
attachment 219021
[details]
[PATCH] Add Test View in context:
https://bugs.webkit.org/attachment.cgi?id=219021&action=review
> Source/JavaScriptCore/API/tests/testapi.c:1089 > + JSGlobalContextRef context = JSGlobalContextCreate(0);
nullptr
> Source/JavaScriptCore/API/tests/testapi.c:1092 > + result &= assertTrue(!str, "Default context name is NULL");
Not sure we should capitalize NULL just because there’s a C macro that we never use by that name. I think the word null is fine without shouting.
> Source/JavaScriptCore/API/tests/testapi.mm:1203 > + JSContext *context = [[JSContext alloc] init]; > + checkResult(@"default context.name is nil", context.name == nil); > + context.name = @"Foo"; > + checkResult(@"set context.name is expected", [context.name isEqualToString:@"Foo"]);
Why less testing here? Why not replicate the “two names” thing you did in the C test?
> Source/JavaScriptCore/ChangeLog:9 > + * API/JSContext.h: > + * API/JSContextRef.h:
Really ought to say why you touched these files. Obviously not to “test new JSContext name APIs”.
> Tools/ChangeLog:8 > + Test new JSContext name APIs > +
https://bugs.webkit.org/show_bug.cgi?id=125607
> + > + Reviewed by NOBODY (OOPS!). > + > + * Scripts/run-javascriptcore-tests:
Change has nothing to do with the bug title.
Joseph Pecoraro
Comment 3
2013-12-13 15:05:33 PST
Landed
r160494
: <
http://trac.webkit.org/changeset/160494
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug