Issue #3427: modify accelerometer register codes with new event manager
Issue #3427: add an "onExit" function to EventTest
Merge branch 'tests_js_3.0' of https://github.com/cocos2d/cocos2d-js-tests into Iss3427_NewEventDispatcher
Merge pull request #333 from dingpinglv/Iss311_RestoreOpenGLTest

Issue #3427: modify accelerometer register codes with new event manager