Auto-generate the JS bindings for WebKitTestRunner's script objects. It will make it easier to add more.
Created attachment 61922 [details] Patch
Attachment 61922 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKitTools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 61922 [details] Patch I really like the idea behind this patch. I wanted to review it, but it was made of Perl. :)
Comment on attachment 61922 [details] Patch It looks like _nullStringPolicy isn't needed. It's only called in one place, and its result is never used. It looks like _monthDayYearString isn't needed. What about Windows? Maybe JSWrapper should be a namespace rather than a class? r=me other than those concerns.
Comment on attachment 61922 [details] Patch Also, have you thought about hooking this into the test system in WebCore/bindings/scripts/test?
Created attachment 61992 [details] Patch 2
Attachment 61992 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebKitTools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 61992 [details] Patch 2 r=me
Comment on attachment 61922 [details] Patch Cleared Adam Roben's review+ from obsolete attachment 61922 [details] so that this bug does not appear in http://webkit.org/pending-commit.