Bug 923986 - Wait for navigator online event instead of sleeping in b2g tests;r=wlach