Try to preclude flakiness in test.
Try to preclude flakiness in test.

I adjusted the test to not depend on timed waits,
but instead to spin-wait until stable states are
reached.  This test will now fail (slowly) as
though via an infinite loop, if ever the expected
conditions are not met.

It should also run very fast, and succeed quickly
in the expected cases (and usually fail quickly
when there is a minor regression).

Bottom line: Hopefully flakiness is gone.

BUG=10607
r=wtc
Review URL: http://codereview.chromium.org/3462013

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

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