Restructure the keyboard test_shell test to properly init event names for all tests.  Otherwise, depending on which tests ran and in which order, EventNames::init() would not get called.  I lost a couple hours last night debugging to figure this out.  :(
Restructure the keyboard test_shell test to properly init event names
for all tests.  Otherwise, depending on which tests ran and in which order,
EventNames::init() would not get called.  I lost a couple hours last night
debugging to figure this out.  :(

While I was at it, I rearranged the test functions for cleanliness and fixed
some minor style bits.

Review URL: http://codereview.chromium.org/10213


git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@5019 0039d316-1c4b-4281-b951-d872f2087c98

Just-D/chromium-1,M4sse/chromium.src,robclark/chromium,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,ondra-novak/chromium.src,dednal/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,timopulkkinen/BubbleFish,anirudhSK/chromium,Just-D/chromium-1,dushu1203/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk,patrickm/chromium.src,rogerwang/chromium,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,dednal/chromium.src,mogoweb/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,rogerwang/chromium,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,keishi/chromium,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,anirudhSK/chromium,axinging/chromium-crosswalk,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,markYoungH/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,ltilve/chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,fujunwei/chromium-crosswalk,Just-D/chromium-1,ltilve/chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,robclark/chromium,hgl888/chromium-crosswalk,rogerwang/chromium,ChromiumWebApps/chromium,keishi/chromium,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,robclark/chromium,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,rogerwang/chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,rogerwang/chromium,bright-sparks/chromium-spacewalk,Chilledheart/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,jaruba/chromium.src,rogerwang/chromium,timopulkkinen/BubbleFish,robclark/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,anirudhSK/chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,Just-D/chromium-1,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,dushu1203/chromium.src,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,Just-D/chromium-1,fujunwei/chromium-crosswalk,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,rogerwang/chromium,chuan9/chromium-crosswalk,M4sse/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,Chilledheart/chromium,markYoungH/chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,ltilve/chromium,Jonekee/chromium.src,dednal/chromium.src,robclark/chromium,dednal/chromium.src,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,Just-D/chromium-1,axinging/chromium-crosswalk,littlstar/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,jaruba/chromium.src,patrickm/chromium.src,dednal/chromium.src,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,dednal/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,keishi/chromium,dednal/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk,keishi/chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,patrickm/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,littlstar/chromium.src,keishi/chromium,Fireblend/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,keishi/chromium,nacl-webkit/chrome_deps,ltilve/chromium,ltilve/chromium,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,fujunwei/chromium-crosswalk,dednal/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,M4sse/chromium.src,axinging/chromium-crosswalk,anirudhSK/chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,rogerwang/chromium,Just-D/chromium-1,hujiajie/pa-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,robclark/chromium,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,fujunwei/chromium-crosswalk,M4sse/chromium.src,robclark/chromium,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,keishi/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,keishi/chromium,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,keishi/chromium,ondra-novak/chromium.src,anirudhSK/chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,robclark/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,keishi/chromium,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,anirudhSK/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,robclark/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,Chilledheart/chromium,dushu1203/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,robclark/chromium,patrickm/chromium.src,markYoungH/chromium.src,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,anirudhSK/chromium