issue #3541 : Fix bugs for test cases.
Merge branch 'NPM' of https://github.com/cocos2d/cocos2d-html5 into iss3541_4_testCase
Merge pull request #1416 from SmallAiTT/iss3541_4_testCase

issue #3541 : Fix bugs for test cases.